PDA

View Full Version : number of units in vanilla export_descr_unit



jcd1993
08-16-2009, 19:46
I am getting annoyed now. I have spent ages trying to get this god damned mod to work properly, which it still isn't, and I have run into a CTD of unknown origin (lol). My thinking for this is that I have exceeded the 500 unit limit in the EDU, however I value my life too much to count each and every unit in there, only to find out that I haven't reached 500. Anyway, I was just wondering if there is anyway to find out, or if anyone already knows. This would be REALLY helpful.
Thanks

Dol Guldur
08-16-2009, 20:58
You could just do a global replace of a common term (that appears once in each unit block), replacing it of course with the same term. The editor should tell you how many instances were "replaced". Note that the header and commented-out blocks will add to this number however.

Most new modders take a year or two to get things working so don't stress out if you've just started. A good idea is to download some respected mods and see how they do things. This, along with tutorials, will help a lot. :yes:

jcd1993
08-17-2009, 11:08
Ah, I am going to try that now :).
I just find it annoying as I spend ages creating new units, factions, settlements etc. Then I change something that causes a CTD and I don't know why :thumbsdown:

Thanks though

EDIT: Hmmm, how does one go about this global replace of a common term? I have tried "find and replace" in notepad but it didn't tell me how many instances where replaced

EDIT2: Nevermind, did it in word, 273 units, its not the EDU. Although I have gathered that the CTD is caused by something campaign based, as battles work fine... except for the wrong generals/captains :@... but at least battles load and play fine. If anyone has any suggestions/techniques that I could use to work through the files and identify what is causing the CTD, that would be great

Dol Guldur
08-17-2009, 17:38
You really have to code very very carefully. Make changes one step at a time and then you can will know what has caused the CTD.

jcd1993
08-18-2009, 12:10
Right-o, I'm off to do that