After modding data Campaign CTD

Post bug reports and ask for help with technical issues here.
Post Reply
VonKlench
Posts: 4
Joined: Wed Dec 24, 2008 5:47 pm

After modding data Campaign CTD

Post by VonKlench »

Hi,

I couldn't see this mentioned anywhere else, when I tried altering team sizes I found that I got regular CTDs in campaign play on single player. Usually these were on the first or second battle of the turn. The crash appears to happen at anytime during a battle but normally coincides with the first exchanges of fire or a few moments after. The only data I've altered is in the teams files, soldier types, classes and numbers in the team all add up. Is there something else I'm forgetting to do?
User avatar
Andrew Williams
Posts: 3862
Joined: Mon Jan 08, 2001 10:00 am
Location: Australia
Contact:

RE: Campaign CTD

Post by Andrew Williams »

Post all your changes here and , if we have time, we can take a look.

Did you use the workbook that has error checking included?
ImageImage
User avatar
Senior Drill
Posts: 199
Joined: Tue Nov 20, 2007 11:16 pm
Location: Quantico

RE: Campaign CTD

Post by Senior Drill »

VonKlench, a CTD after the game begins and as you stated "coincides with the first exchange of gunfire" is always due to a soldier in a team having an illegal soldier class number. He is trying to fire a weapon that the game cannot find.

There are three ways this error in the data files can occur that I can think of offhand. One is a typo in the Soldier Type columns of the *Teams.txt file assigning a weapon number that is higher than the total class numbers in the Soldiers.txt file (i.e. Soldier A goes to fire primary weapon class number 92, when the Soldier.txt file only lists 82 weapon classes.) The solution for this is to search the Soldier Type columns for numbers higher than the row count number of the Soldier.txt file.

The second is that the Soldiers.txt file does have 93 rows of data and weapons classed 0 to 92, but the total rows of data in cell A1 at the top left corner of the file when viewed as a spreadsheet is a number less than 93. This can happen when a soldier class is added, but one forgets to increase the row number in the Soldiers.txt file. That number tells the .EXE how many rows to use. Everything after that will be ignored. The solution here is to insure that the row count number is +1 of the highest Class number.

And third is similar, but with the Weapons.txt file. The Soldiers.txt file Crew Served, Primary or Secondary weapons columns contain a Weapons.txt file class number that is higher than the Weapons.txt file row count number in cell A1 or does not exist. The solution is to ensure that the row count number of the Weapons.txt file is +1 of the highest Class number and that the numbers used in the Soldiers.txt file Crew Served, Primary and Secondary weapons columns do not exceed that number.

One other area that might be an issue (yeah, ok, four things I can think of...) is the *Teams.txt "Team Size" column. The total number of soldiers in a team must agree between the entries in the Soldier Type, Soldier List and Team Size columns. One less or one more in any of the columns can also lead to an in-game crash.

There could well be other issues involved, since you say that the CTD's can happen any time, but in my experience, CTD's at the time of first exchanges of fire always due to a data error derived from Weapons.txt to Soldiers.txt to *Teams.txt weapon class number dependencies.

The problem is in your data files. Happy Hunting and Merry Christmas!

C'est magnifique, mais ce n'est pas la guerre.
VonKlench
Posts: 4
Joined: Wed Dec 24, 2008 5:47 pm

RE: Campaign CTD

Post by VonKlench »

Hi,

Thanks for getting back to me so fast, here is the allied teams txt. file...
Attachments
alsteams.txt
(16.37 KiB) Downloaded 8 times
VonKlench
Posts: 4
Joined: Wed Dec 24, 2008 5:47 pm

RE: Campaign CTD

Post by VonKlench »

... and here is the axis teams file. Whatever the mistake I made was its in one of these as the game only crashes when these files are altered. Alterations in other files don't seem to have an effect. I haven't made any alterations to the soldiers or weapons files, these remain the same and most of the alterations I made in teams are either adding or subtracting one or two soldiers from a team. I checked for typos but I couldn't spot any. All the weapons and soldier types tally with the values in the other files and all the teams have the correct number of soldiers listed in the appropriate column. The crash doesn't happen every battle and it doesn't seem to have to be an altered unit doing the shooting when the crash happens. The last two were incidents with tanks firing and I haven't changed them at all. The crash doesn't seem to crop up in battles with the same battle group unless they continue on the same map. As for the workbook I've downloaded it but I can't see any teams tabs only those for the other files in the base folder. If I'm just not getting this please let me know.

Thankyou for all your help

Merry Christmas and best wishes
Attachments
axsteams.txt
(26.07 KiB) Downloaded 2 times
User avatar
Andrew Williams
Posts: 3862
Joined: Mon Jan 08, 2001 10:00 am
Location: Australia
Contact:

RE: Campaign CTD

Post by Andrew Williams »

Alsteams

Engineer Team Class 9 you have mismatched team sizes.

7 IN THE SOLDIER LIST 6 IN THE SOLDIER TYPE AND TEAM SIZE =7

fix these sorts of errors using the work book.



Image
Attachments
errors.jpg
errors.jpg (259.89 KiB) Viewed 171 times
ImageImage
VonKlench
Posts: 4
Joined: Wed Dec 24, 2008 5:47 pm

RE: Campaign CTD

Post by VonKlench »

Many Thanks and Profuse Apologies for being such a blind fool. If I'd bothered to find the teams tabs on the workbook I'd never have made this mistake. Actually I'm quite embarrassed.

Merry Christmas and thanks for the dedication
User avatar
Senior Drill
Posts: 199
Joined: Tue Nov 20, 2007 11:16 pm
Location: Quantico

RE: Campaign CTD

Post by Senior Drill »

No problem, Mate. Been there, done that, got the 1000 cell spreadsheet stare. I've overlooked a column or two on more occasions than I prefer to remember.

Out of curiosity, what changes did you make and why did you make them? Curious modders want to know!
C'est magnifique, mais ce n'est pas la guerre.
Post Reply

Return to “Tech Support”