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] Quick Battle A2A BVR Duel, 1975, 1985, 1995: Error related to ScenEdit_SetTime

 
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] Quick Battle A2A BVR Duel, 1975, 1985, 1995: Error related to ScenEdit_SetTime Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Logged] Quick Battle A2A BVR Duel, 1975, 1985, 1995: E... - 4/2/2021 9:14:40 PM   
Uzabit

 

Posts: 77
Joined: 7/13/2018
Status: offline
Seems these are new quick battle options in the menu that I wanted to try out. I noticed the LUA function ScenEdit_SetTime is fed with a format that isn't supported (anymore) - at least with the current CMO version.

The option forms use MM.DD.YYYY & HH.MM.SS but 1147.18 only supports MM:DD:YYYY & HH:MM:SS without returning an error message on my system.

Can you look into that?

< Message edited by Rory Noonan -- 4/8/2021 7:11:16 PM >
Post #: 1
RE: Build 1147.18: Quick Battle A2A BVR Duel, 1975, 198... - 4/3/2021 8:42:51 PM   
boogabooga

 

Posts: 306
Joined: 7/18/2018
Status: offline
I followed the documentation:

http://commandlua.github.io/#ScenEdit_SetTime

quote:


The desired UTC datetime as a table in MM:DD:YYYY & HH:MM:SS or MM.DD.YYYY & HH.MM.SS format


Why do you think that HH.MM.SS isn't supported anymore?

I do NOT get any error, so I'm wondering if this is another regional setting problem? See here: http://www.matrixgames.com/forums/fb.asp?m=4902675

Try the English (US) setting if that is not what you are using. The time value is just coming from the html forms. You could open those up, find this:

	   <p>The UTC Time is
                <select name="TimeUTC">
                    <option value="12.00.00">1200</option>
		    <option value="00.00.00">0000</option>
                    <option value="06.00.00">0600</option>
                    <option value="18.00.00">1800</option>
                </select>
            </p>



Replace with this:

	   <p>The UTC Time is
                <select name="TimeUTC">
                    <option value="12:00:00">1200</option>
		   <option value="00:00:00">0000</option>
                    <option value="06:00:00">0600</option>
                    <option value="18:00:00">1800</option>
                </select>
            </p>


etc.

(in reply to Uzabit)
Post #: 2
RE: Build 1147.18: Quick Battle A2A BVR Duel, 1975, 198... - 4/3/2021 10:52:34 PM   
Uzabit

 

Posts: 77
Joined: 7/13/2018
Status: offline
I already changed the code and that made those quick battles work on my machine before I posted the issue here on the forum. I'm running CMO on a laptop with German localization. But I suppose this should not influence behavior of LUA code execution. If this is causing the problem then I think this should be considered a bug.

This is the error message CMO gives me when trying to start a battle (with HH.MM.SS format):




Attachment (1)

(in reply to boogabooga)
Post #: 3
RE: Build 1147.18: Quick Battle A2A BVR Duel, 1975, 198... - 4/3/2021 11:37:48 PM   
boogabooga

 

Posts: 306
Joined: 7/18/2018
Status: offline
I don't get that error unless I change my regional setting to a European one...

I'm not sure if the error is in Lua or HTML?

(in reply to Uzabit)
Post #: 4
RE: Build 1147.18: Quick Battle A2A BVR Duel, 1975, 198... - 4/8/2021 7:12:07 PM   
WSBot

 

Posts: 182
Joined: 1/17/2021
Status: offline
0014478

(in reply to boogabooga)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Logged] Quick Battle A2A BVR Duel, 1975, 1985, 1995: Error related to ScenEdit_SetTime 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.139