Page 1 of 1

Wierd Crashes

Posted: Sat Aug 30, 2025 1:55 am
by FunPolice749
Hello all, this has recently come up after westwall released but it seems like it has somehow completely messed up my balance mod. Namely it seems that campaigns with US units simply crash outright. At first I figured I had fat fingered some input as I have before. However, I double checked everything and there was no mistake.
Then I went on to revert to an older version of Units.csv that I know for certain was fully functional before Westwall. That still crashed.
So I opened the editor just to manually load units one at a time to see what was causing the crash. Yet I can perfectly open any scenario and load any unit without any crashes.
Then I realized it's only certain campaigns that are crashing on me. Namely Italy 1943 and Westwall seem to be the 2 that currently hard crash on me.

I am quite stumped on wtf is going on because I don't understand how loading up Italy 1943 from the main menu doesn't work yet opening Sicily from the editor works without issue. If anyone else has encountered this issue or knows maybe a couple ways to fix it please let me know as it's currently got numerous campaigns outright unplayable which sucks.

I will add that I use google sheets to edit Units.csv, I do save the document in .CSV format, and have done this for years at this point with frequent updates. That is why I am here because I'm kinda unsure of what could even be the issue.

Re: Wierd Crashes

Posted: Sat Aug 30, 2025 10:44 am
by bebro
If you modded units before -- is there a chance you continue modding on data files from before Westwall?

WW did change entries for accepted transports/transport class on some previously existing US inf to make them work with the new Dodge truck. Also, in WW some of the new units are either present on maps or get spawned by trigger.

As posted in the other thread, WW includes changes on both units.csv and transportclass.csv. So this may cause probs if the data files in use are outdated, or other modded stuff is active.

If you want you can also your attach you unit file here, then I'll have a look

Re: Wierd Crashes

Posted: Sat Aug 30, 2025 5:47 pm
by FunPolice749
bebro wrote: Sat Aug 30, 2025 10:44 am If you modded units before -- is there a chance you continue modding on data files from before Westwall?

WW did change entries for accepted transports/transport class on some previously existing US inf to make them work with the new Dodge truck. Also, in WW some of the new units are either present on maps or get spawned by trigger.

As posted in the other thread, WW includes changes on both units.csv and transportclass.csv. So this may cause probs if the data files in use are outdated, or other modded stuff is active.

If you want you can also your attach you unit file here, then I'll have a look
I went through and updated what I thought were the US units needing that new infantry tag. Maybe I've missed one but it is strange that would be causing me crashing on only a couple things (and only through the main menus and not editor). Is there anything in Transportclass.csv that needs changing because I haven't messed with that really.

I've attached the Units.csv I've been working on to see if something stands out. All the custom units work fine since outside of the seemingly something US related.

Re: Wierd Crashes

Posted: Sun Aug 31, 2025 12:12 pm
by bebro
Had a look. However, first I checked the vanilla Italy cam using the official units file to make sure it runs well -- it did.

Your transportclass file should be fine if you didn't touch it after updating to WW (so v.1.16.03).

Your US infantry edits look ok to me re the LightInfantry entry. Beyond the US 57mm towed AT was changed to LightGun in WW, but using the old MediumGun entry should not cause a crash.

However there seem to be quite some other issues in the file attached.

Some of the most recent additions seem not to be in, like Dragon's Teeth, which need several entries since there are different elements. There might be more missing, like the new Pillbox (2 entries, one for the empty version), maybe more I didn't spot.

There's modded entries which might be problematic because of the naming. I would not use spaces, and stay away from characters the vanilla entries in that first column don't use, like "." or "/".

I'm not sure atm if every one of them is crash-worthy, but better be safe than sorry. Also for some of the switch units, esp. air, there seem inconsistent entries for the unit name, and/or the switch entry which a particular unit is pointing to.

In general, I'd recommend a few things, but unfortunately they would need extra effort:

1. With that many changes, it's hard to pinpoint a particular prob. It might be best to go back to a clean units.csv (so v.1.16.03). to make sure every thing is present. I'd add new entries afterwards, not all at once, but a couple, and test frequently.

2. Overall it may be better to change the approach and to start editing the equipment file first. Because you can always generate a units.csv from the equipment file in the editor, but not the other way around.

Pls. see here:
viewtopic.php?f=597&t=97739

Bear in mind the differences:

..\Steam\steamapps\common\Panzer Corps 2\PanzerCorps2\Content\Data
Units.csv (UTF-8, separated by comma)

..\Steam\steamapps\common\Panzer Corps 2\PanzerCorps2\Content\Editor\Data
Equipment.pzeqp is actually tsv (UTF-16, separated by tabulator)

This will cause quite some work at this stage, but may be better in the long run.

Re: Wierd Crashes

Posted: Sun Aug 31, 2025 3:43 pm
by FunPolice749
bebro wrote: Sun Aug 31, 2025 12:12 pm Had a look. However, first I checked the vanilla Italy cam using the official units file to make sure it runs well -- it did.

Your transportclass file should be fine if you didn't touch it after updating to WW (so v.1.16.03).

Your US infantry edits look ok to me re the LightInfantry entry. Beyond the US 57mm towed AT was changed to LightGun in WW, but using the old MediumGun entry should not cause a crash.

However there seem to be quite some other issues in the file attached.

Some of the most recent additions seem not to be in, like Dragon's Teeth, which need several entries since there are different elements. There might be more missing, like the new Pillbox (2 entries, one for the empty version), maybe more I didn't spot.

There's modded entries which might be problematic because of the naming. I would not use spaces, and stay away from characters the vanilla entries in that first column don't use, like "." or "/".

I'm not sure atm if every one of them is crash-worthy, but better be safe than sorry. Also for some of the switch units, esp. air, there seem inconsistent entries for the unit name, and/or the switch entry which a particular unit is pointing to.

In general, I'd recommend a few things, but unfortunately they would need extra effort:

1. With that many changes, it's hard to pinpoint a particular prob. It might be best to go back to a clean units.csv (so v.1.16.03). to make sure every thing is present. I'd add new entries afterwards, not all at once, but a couple, and test frequently.

2. Overall it may be better to change the approach and to start editing the equipment file first. Because you can always generate a units.csv from the equipment file in the editor, but not the other way around.

Pls. see here:
viewtopic.php?f=597&t=97739

Bear in mind the differences:

..\Steam\steamapps\common\Panzer Corps 2\PanzerCorps2\Content\Data
Units.csv (UTF-8, separated by comma)

..\Steam\steamapps\common\Panzer Corps 2\PanzerCorps2\Content\Editor\Data
Equipment.pzeqp is actually tsv (UTF-16, separated by tabulator)

This will cause quite some work at this stage, but may be better in the long run.
Ok so I didn't realize how badly it seems an update or something messed up the file. I don't know why a bunch of the switch units got messed up but went through and updated them. Also added the dragonteeth and similar that I thought were there but weren't. Seemingly now I can load any campaign expect for Italy 1943 still
Which means whatever remaining issue is related to that scenario. Hard part that remains is that I can still load Sicily totally fine in the editor but can't load through the menu. Would you happen to know why that would be the case?

The only thing I can think of is something like the switching fighter bombers seem to not be able to switch in the scenario which I'm unsure of why they can't.

Also I would really prefer to not mess with the equipment file at this point. As it would require changing every single unit almost. And I just don't have nearly as much motivation to mod as I did previously.

Re: Wierd Crashes

Posted: Sat Sep 27, 2025 2:43 pm
by FunPolice749
Will do a quick reply as I finally got around to fixing whatever the issue was. It was something related to aircraft and their switching modes that the mod added. I ended up cutting them entirely because I was also kinda split on if I should have them and the constant bugs they made eventually made me feel like they were not worth it. Just making this last post so people know this at least got fixed.

Re: Wierd Crashes

Posted: Mon Sep 29, 2025 11:05 am
by bebro
Thanks for the headsup. Good that you resolved the issue.

I never tested air switches myself, since air units are tied to airfields so I dunno how that affects them.