Farsight
Aug 21, 2009, 11:27 AM
Hey, everyone. I tried to edit the map for my mod in Notepad++ so that it would include the civs I've added. Unfortunately, it just crashes on loading (after I've picked the civs). Is there anything I can do about this?
The_J
Aug 21, 2009, 07:12 PM
Did you add new unitArtStyles, or did you remove units?
JEELEN
Aug 21, 2009, 08:27 PM
A CTDing map means you did something incorrect. Try adding the civs you want in one at a time (and check your map after each addition.) It's tedious, but it's sometimes necessary.
primordial stew
Aug 21, 2009, 09:38 PM
Once it works at all keep backups in order to diff against to see what changed since the last working version.
Till then.. does the map render at all? The sequence seems to be: civs -> plots -> cities -> units. So if not even a part of the map gets created then it's likely a civ problem. Could be a problem(s) anywhere prior to the map definition. Some erroneous or missing data, or even a missing civ. Just last night I was editing a map and had purged some civs from being alive, but hadn't changed ownership of their cities or units yet. The map rendered till it reached a city owned by a civ that no longer existed. Thus it was easy to see where the stoppage was being generated.
vim is a really handy editor for wbs files. Some examples)
1) remove all units is:
:g/beginunit/:.,/endunit/d
This is really handy where there is a unit with missing art somewhere.
2) change a civ's units + cities to be barbarians
:%s/owner=5$/Owner=48
3) delete all buildings:
:g/buildingtype/d
Useful for checking to see if bad building art is causing a CTD
Farsight
Aug 22, 2009, 11:00 AM
I actually seemed to have done everything right: I can get to the point where I can select the civs, but after that, it crashes.
primordial stew
Aug 22, 2009, 02:37 PM
Can you select every civ? If a leaderhead is missing this will show up when you try to select that civ.
So no map at all, just the civ selection screen? If the civs are ok, but no map at all then try comparing the map size section.
How many civs are there in the dll you are using? 18 is the default, but many mods use more and each slot has some lines needed in the wbs file. So if you took an 18civ map into a mod that uses 34 civs you'd need to add entries for all of the new civ slots. Bring up a known working map and compare structure vs that.
strategyonly
Aug 22, 2009, 02:48 PM
Hey, everyone. I tried to edit the map for my mod in Notepad++ so that it would include the civs I've added. Unfortunately, it just crashes on loading (after I've picked the civs). Is there anything I can do about this?
If its under 18 civs, put a copy of it here, that way someone Maybe might take a look at it.