Crashing

Moderator: Jason Petho

Post Reply
Spartan7
Posts: 46
Joined: Fri Oct 06, 2017 6:02 pm

Crashing

Post by Spartan7 »

Modifying a scenario. In the process of modifying the order of battle.
When I go into the editor or to play the game it crashes when I go from 3D to 2D.
An issue with my admittedly weak skills at modifying an Org?
All other scenarios work fine. Any quick thoughts as I don't want to consume a lot of your time.
User avatar
Jason Petho
Posts: 17619
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Crashing

Post by Jason Petho »

Delete your log files (from the Logs folder).

Relaunch the editor (I presume you're in the editor) until the crash happens.

Zip up your logs and the files related to the what you are doing and post them here.

I suspect it is a 3D graphic that is MIA.

Spartan7
Posts: 46
Joined: Fri Oct 06, 2017 6:02 pm

RE: Crashing

Post by Spartan7 »

Did as you suggested. Only generated an edit file (attached)
Attachments
edit.zip
(21.86 KiB) Downloaded 17 times
Spartan7
Posts: 46
Joined: Fri Oct 06, 2017 6:02 pm

RE: Crashing

Post by Spartan7 »

The scn file I was hacking up
Attachments
Chinese.zip
(5.01 KiB) Downloaded 17 times
User avatar
Jason Petho
Posts: 17619
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Crashing

Post by Jason Petho »

I only see the ORG File in that last zip file? I will need the ORG, SCN and MAP files at least.
Spartan7
Posts: 46
Joined: Fri Oct 06, 2017 6:02 pm

RE: Crashing

Post by Spartan7 »

SCN file
Attachments
Chinese1.zip
(10.31 KiB) Downloaded 15 times
Spartan7
Posts: 46
Joined: Fri Oct 06, 2017 6:02 pm

RE: Crashing

Post by Spartan7 »

Map
Attachments
chinese2.zip
(8.91 KiB) Downloaded 15 times
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Crashing

Post by berto »

ORIGINAL: Spartan7

Modifying a scenario. In the process of modifying the order of battle.
When I go into the editor or to play the game it crashes when I go from 3D to 2D.
An issue with my admittedly weak skills at modifying an Org?
The fundamental problem is that in your modded Chinese 1.scn file, the unit trackids are all screwed up:

rober@Rob10rto /cygdrive/i/BACKUP/Games Rob10rto 20180331/Matrix Games/Middle East/middle_east BACKUP 20180316
$ diff Scenarios/'Chinese 1.scn' Mods/'Bug Fix Spartan7'/Scenarios/'Chinese 1 FIX.scn' | head -n 60
22,55c22,55
< 0 0 23 P232048 11004 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 0 23 P232048 11005 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 0 23 P232048 11006 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 0 24 P233004 10908 2 1 3 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 0 24 P234006 11133 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 23 P232048 11022 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 23 P232048 11023 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 23 P232048 11024 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 24 P233006 11002 2 1 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 24 P234001 14573 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 1 24 P231006 11033 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 22 P230025 11055 2 1 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 22 P230024 11056 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 22 P230024 11057 2 32 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 22 P230024 11058 2 8 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 23 P232062 11031 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 23 P239033 11035 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 24 P232048 11013 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 24 P232048 11014 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 2 24 P232048 11015 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 22 P233007 11048 2 1 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 22 P234006 11140 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 22 P230025 11139 2 2 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 23 P230025 11050 2 1 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 23 P230024 11051 2 4 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 23 P230024 11052 2 32 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 3 23 P230024 11053 2 8 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 11 5 P238031 14582 8 8 3 0 0 100 5 0 0 0 3 3 3 3 0 0 -1 -1
< 0 16 3 P238034 14585 8 8 1 0 0 100 5 0 0 0 3 3 3 3 0 0 -1 -1
< 0 21 3 P238031 14579 8 8 3 0 0 100 5 0 0 0 3 3 3 3 0 0 -1 -1
< 0 21 8 P238032 14581 8 8 2 0 0 100 5 0 0 0 3 3 3 3 0 0 -1 -1
< 0 26 21 P232048 10930 8 8 3 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 26 21 P232048 10931 8 16 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
< 0 26 21 P232048 10932 8 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
---
> 0 0 23 P232048 -1 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 0 23 P232048 -1 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 0 23 P232048 -1 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 0 24 P233004 -1 2 1 3 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 0 24 P234006 -1 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 23 P232048 -1 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 23 P232048 -1 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 23 P232048 -1 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 24 P233006 -1 2 1 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 24 P234001 -1 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 1 24 P231006 -1 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 22 P230025 -1 2 1 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 22 P230024 -1 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 22 P230024 -1 2 32 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 22 P230024 -1 2 8 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 23 P232062 -1 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 23 P239033 -1 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 24 P232048 -1 2 2 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 24 P232048 -1 2 1 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 2 24 P232048 -1 2 4 4 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 3 22 P233007 -1 2 1 2 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 3 22 P234006 -1 2 4 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 3 22 P230025 -1 2 2 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
> 0 3 23 P230025 -1 2 1 1 0 0 100 4 0 16384 0 3 3 3 3 0 0 -1 -1
...

That highlighted -1, and the fifth field in all lines that follow (in your modded .scn file), all such fields also being -1 -- those are bogus, and will indeed cause the game engine (and scen editor) to crash.

And other issues. It's not clear to me how these issues could have come about. Don't ask, don't tell? [8|]
All other scenarios work fine. Any quick thoughts as I don't want to consume a lot of your time.
Yes, I am afraid that in order to debug this, it would require much back and forth and much time. Which I/we don't have much of (given how we are devoted now to developing CS Vietnam).
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Post Reply

Return to “Tech Support”