Page 1 of 1

Crash while testing Nato Counters

Posted: Fri Feb 22, 2013 10:06 pm
by ernieschwitz
I was testing the nato counters, because well, i needed something with a different subpart that 11, 13, 14, 15 and 16 to show up on the side of a unit. That is, it was neither, artillery, panzer, nor parts I-III of an infantry/cavalry division.

So knowing that probably somebody else was going to make a nato counter, sooner or later, and not wanting mine to be overwritten by theirs, i chose a high number, 400, to make the nato counter from.

Well, as soon as the map got to the place where this unit with the new subpart was supposed to be, i got an index out of range error.

So obviously 400 must be too high a number. What number should one set, to avoid someone else overwriting it with a different natocounter later?

RE: Crash while testing Nato Counters

Posted: Mon Feb 25, 2013 10:40 am
by Vic
The bug is very probably caused because the game code stops reading nato graphic files when it cannot find the next number. So you'll have to add all those in between as placeholders to make this approach work.

However there is a different work around. You could copy the dcwtpmodgraphics directories and rename them to something like erniemodgraphics directories and then set the modgraphics (stng tab in editor) to "erniemodgraphics". It will then read the nato counters from this dir. At the same time this approach will allow you replace any systemgraphics file you would like with your own by placing it from the "systemgraphics/" path inside your "erniemodgraphics/" path.

Hope this helps.

best,
Vic




RE: Crash while testing Nato Counters

Posted: Mon Feb 25, 2013 1:07 pm
by ernieschwitz
Thanks for the reply, i might just do that :)