[Fixed]Scenario stops

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
ltrdfx
Posts: 5
Joined: Thu Aug 18, 2022 12:18 pm

[Fixed]Scenario stops

Post 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.
Attachments
Scenario Saves.zip
(7.71 MiB) Downloaded 15 times
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Scenario stops

Post 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.
Michael
ltrdfx
Posts: 5
Joined: Thu Aug 18, 2022 12:18 pm

Re: Scenario stops

Post 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.
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Scenario stops

Post 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.
Michael
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Scenario stops

Post by michaelm75au »

If you correct the Lua script, does it lock up later?

Trying to eliminate known errors to get to a solution.
Michael
morphin
Posts: 723
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

Re: Scenario stops

Post 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
ltrdfx
Posts: 5
Joined: Thu Aug 18, 2022 12:18 pm

Re: Scenario stops

Post 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.
FifthDomain
Posts: 485
Joined: Wed Aug 05, 2020 7:39 pm
Location: United Kingdom

Re: Scenario stops

Post 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.
Dimitris
Posts: 15223
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: Scenario stops

Post by Dimitris »

Is this still happening under B1328.9 ?
ltrdfx
Posts: 5
Joined: Thu Aug 18, 2022 12:18 pm

Re: Scenario stops

Post 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.
Post Reply

Return to “Tech Support”