Page 1 of 1
[Fixed]Scenario stops
Posted: Sat Aug 26, 2023 12:27 am
by ltrdfx
I am having an issue in a scenario where the game is fully responsive (moving map, opening menus, etc) but the scenario just stops. Pressing the pause/play button has no effect. There is no "Scenario Ended" pop-up.
Command v1.06 Build 1328.8
Windows 10 x64
I am playing the "Bear Island" scenario from the community scenario pack after a rebuild to most current DB version.
The issue always occur after Russia becomes hostile.
I have included an autosave from right before the issue occurred as well as a scenario save of right after Russia becomes hostile but a little over an hour in-game before the issue occurs "Bear Island, 2022 MOD C0 AAR LAUNCHED". I have also included the rebuilt scenario at start "Bear Island, 2022 MOD"
Thanks in advance.
Re: Scenario stops
Posted: Sat Aug 26, 2023 6:28 am
by michaelm75au
Are there any errors showing in the ExceptionLog.txt during the run??
I was showing Lua exceptions; continual errors could slow the game down while running.
Re: Scenario stops
Posted: Sat Aug 26, 2023 6:53 am
by ltrdfx
michaelm75au wrote: Sat Aug 26, 2023 6:28 am
Are there any errors showing in the ExceptionLog.txt during the run??
I was showing Lua exceptions; continual errors could slow the game down while running.
Not in ExceptionLog.text, but there are errors showing up in LuaHistory.txt. The same error continuously repeating itself:
Code: Select all
Exception: Invalid arguments to method call
Stack Trace: at NLua.Lua.ThrowExceptionFromError(Int32 oldTop)
at NLua.Lua.DoString(String chunk, String chunkName)
at tTXC54wCRf4nHDanjCCS.aL91JkX33c3(Object , String , String , tTXC54wCRf4nHDanjCCS )
at Command_Core.Lua.LuaSandBox.RunScript(String str, Boolean RunInteractively, String script, String fullPath)
The session doesn't really run slow - it runs fine up until the entire thing stops.
Re: Scenario stops
Posted: Sat Aug 26, 2023 7:00 am
by michaelm75au
The script to turn off 'Bear Island' zone has an error in it; the zone type parameter is a number as shown in the Docs, but the script has it as a string. That is failing every 15 seconds and writing to the logs.
It should be
Code: Select all
ScenEdit_SetZone('NATO', 0, {description='Bear Island', isactive='false'})
The example in the Docs for the function shows correctly
Code: Select all
local zone = ScenEdit_SetZone( 'sideA', 0, { rename = 'new zone', affects = {'ship', 'submarine'} } )
but the writeup actually said it was a string. This is probably where it went wrong.
I have corrected the parameter to say it is a number.
Re: Scenario stops
Posted: Sat Aug 26, 2023 7:03 am
by michaelm75au
If you correct the Lua script, does it lock up later?
Trying to eliminate known errors to get to a solution.
Re: Scenario stops
Posted: Mon Aug 28, 2023 9:29 am
by morphin
I have also problems with 64 Bit (Scenario stops for over a minute, textures does not load)
I'm going back to 32 BIT Version
Re: Scenario stops
Posted: Tue Aug 29, 2023 10:08 am
by ltrdfx
michaelm75au wrote: Sat Aug 26, 2023 7:03 am
If you correct the Lua script, does it lock up later?
Trying to eliminate known errors to get to a solution.
Sorry for the delay. Not sure exactly how to correct it - but I deleted the action and event and the scenario still locks up at the same time.
Re: Scenario stops
Posted: Tue Aug 29, 2023 5:52 pm
by FifthDomain
I have also experienced this, I captured it in a save but I’ve had to post in the Desert Falcon beta section as that’s what I was using at the time it’s under a post labeled as Error in Exception Handler.
Re: Scenario stops
Posted: Wed Aug 30, 2023 12:38 pm
by Dimitris
Is this still happening under B1328.9 ?
Re: Scenario stops
Posted: Wed Aug 30, 2023 8:55 pm
by ltrdfx
Dimitris wrote: Wed Aug 30, 2023 12:38 pm
Is this still happening under B1328.9 ?
Doesn't appear to be. I was able to launch the scenario from the same place I left off and play another ~30 hours in game time (it typically froze after 2-3) with no issues.