Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[Logged] SetScore function weirdness

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Logged] SetScore function weirdness Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Logged] SetScore function weirdness - 12/6/2019 4:10:30 AM   
Whicker

 

Posts: 656
Joined: 6/20/2018
Status: offline
in the lua console if you do:

ScenEdit_SetScore('Blue',100)

it works fine.

if you do anything else after that you will get an error - so even:

ScenEdit_SetScore('Blue',0)
local a = 2

will give an error: ERROR: [string "Console"]:2: unexpected symbol near ''No reason given''

if you add a reason it gives: ERROR: [string "Console"]:2: unexpected symbol near ')'

no save, fairly sure this is universal, Gunner has same issue. Open a scen, go to the lua console and use that function and then anything on line 2, even an empty line and you should get the error. I tested in CMANO and sort of saw the same thing but it seemed to work a little better - sort of confused now as to what worked and what didn't though.

The reason is optional right? didn't see anything saying it is, but I think it is.

the code seems like it may still work in the game but I am not positive. In the console it gives an error for sure.









Attachment (1)

< Message edited by apache85 -- 12/9/2019 2:43:03 AM >
Post #: 1
RE: SetScore function weirdness - 12/8/2019 2:04:42 AM   
michaelm75au


Posts: 12682
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Logged

_____________________________

Michael

(in reply to Whicker)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Logged] SetScore function weirdness Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.105