OK this isn't actually a question - but it's not a tutorial either and I wanted to get it into the answers database..... The post is based on this original article - please excuse the lecture but hopefully it's useful - if not jump toCommon Causes of Problems
Why Doesn't my Campaign Map Load?
One of most frequently asked questions by new modders is "Why doesn't my campaign map load?"
below is some self-help advice; on how to mod efficiently; and for when it goes wrong, what to check and how to ask question on forums so other people can actually help you.
General Modding Advice
Always use -show_err on your shortcut. If campaign loads but you get a message when you exit, fix what it is complaining about or you might not get new message when you have more serious error.
Remember to delete the map.rwm file every time you make a change. Deletion is not strictly needed for some aspects like moving armies around but it is much better to get in habit of doing it each time then forget when it is relevant.
Do one thing at a time - e.g. do not try to create entire map complete with rivers, forests, 10 factions and resources before checking that stripped down map loads. If re-assigning settlements or adding regions do one or two at a time.
Keep back ups - make sure you have a back up of all vanilla files before you start. Each time you make a change and it works in game make a back up copy of all the files involved in that as well. If you get to point that does not work revert to your back up copy (making sure you copy it again first) and try making same changes again, in case problem was just down to mistyping etc.
Read Tutorials - yes I know it is boring to read the instructions but it really does help! For most things mapping make sure you have read this tutorial.
Map Editors - If using a map editor do not forget that all the above rules still apply, you need to understand which files are being altered and still do things one step at a time.
When Stuck
Well you know what you did last (''don't you?'') check all the changes you just made for; typo's, wrong colours etc. Some files including descr_strat.txt are quite sensitive to wrong formating, missing tabs, spaces or line breaks etc. Most things in RTW/BI text files are also case sensitive so check capital letters are used in correct places. Make sure you remembered to delete the map.rwm file.
If you can't find anything obvious revert to a new copy of your back-up files prior to the change you just made and re-do your changes again. Still not working? See next section...
When Really, Really, Stuck
Now is time to ask a question on the forums or ask another modder for help.
To ask questions on RTW/BI game post a thread in Modding Questions or post a reply at the end of this thread.
To avoid your question just being met with more questions you should supply the following information in your post:
What game are you modding? (RTW or BI) Which patch version? (eg 1.2 or 1.5)
Are you modding a released mod that you have downloaded? If so please state which.
Explain what you did last, eg. added region, removed faction, made complete new map etc.
Confirm that you have -show_err on your shortcut and state if it is giving a message or not.
If you are getting a message please quote it.
Also explain in detail the nature of your crash / problem. For campaign map problems that can be;
KTM = Kick-Back to Menu, you try and load campaign but get sent back to previous menu instead.
CTD = Crash to Desktop, if that is what you get please state what screen / stage of loading bar you where in when it crashed.
Other = loads map but with distorted graphics, loads map but crashes on scrolling.
05-24-2007, 17:51
Makanyane
Re: Campaign Map Not Loading....
Common Causes of Problems
The same sort of error will normally produce the same crash / message at the same point in the loading process. Where problem occurs in loading process is therefore important to bug hunting. Common problems are listed below in order of 'crash' occurrence.
Where error messages are mentioned they are only obtained if you have -show_err enabled. NOTES: This list is very unlikely to cover everything please note any more you find in replies. The initial tests for this were conducted under BI. There may be variations with RTW if found please advise. Most of these error messages also occur in M2TW but they will be found in the error log file and not via. the -show_err system.
Please also refer to a Modders Guide to CTD's
This section is based on wiki page here which may/may not be more up-to-date.
Symptom: Game CTD's with no message when arrow is clicked to start campaign - no map.rwm generated.
Landmass Crash - actually caused by having too large an individual sea area.
Too large an area of impassable terrain - actually same bug as above (if area doesn't work as sea it won't work as mountain or dense forest either).
Rivers incorrectly drawn in map_features.tga. Possibly also river without ford completely dividing a region.
Incorrect height or width listed in descr_terrain.txt - dimensions must match map_regions.tga
More than 200 total 'regions' - note regions include different colours used for individual seas, so you can have 199 land regions and 1 sea, or 198 land regions and 2 different coloured seas in map_regions.tga etc...
Symptom: Game Freezes after arrow is clicked to start campaign - new map.rwm is generated but loading bar is not reached.
Problems with large areas of impassable ground type in conjunction with lack of land area on a large complex map (map.rwm size approx 13MB) see here.
Symptom: Game CTD's with no message shortly after arrow is clicked to start campaign - new map.rwm is generated.
Width or height of map exceeds maximum. (Maximum = 510pixels map_regions, 1021pixels map_heights size.
Misspelt character name in descr_strat.txt, or use of name which doesn't belong to faction you have assigned it to - check in data/descr_names.txt for faction specific names.
An elephant or chariot unit which is included in the descr_strat.txt file has an 'officer' assigned to it in export_descr_units.txt. Those types of units cannot have an officer and unlike other unit related bugs this one causes CTD on trying to load campaign.
Having the Romans able to horde "and" have the senate as their super-faction. (under BI.exe)
Symptom: Game CTD's with no message about 3/4's way through campaign loading bar.
Having a radar_map1.tga which is too large, the radar_maps should be in same proportions as map_regions.tga to avoid a stretched effect, but making them same size as the map_regions.tga for a larger map causes crash.
Symptom: Game CTD's with no message at the end of the campaign loading bar.
Using a rebel type in descr_regions.txt that does not have proper entries in data/descr_rebel_factions.txt and data/text/rebel_faction_descr.txt
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. Expected faction - must add at least two factions to the world
Most varieties of typing error above the level of the second faction in descr_strat.txt - the game stops reading the descr_strat file when it meets an error so doesn't get as far as reading second faction. If error message gives line number look it up using 'edit' 'go to' function in Notepad.
Having the win_conditions section from a v 1.2 descr_strat file at the top of a descr_strat.txt file you are trying to run under v 1.5 also gives this error.
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx
Mis-match between colour on map_regions.tga and colour listed in descr_regions.txt for affected settlement.
Using identical colour for two different regions.
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. You have chosen an invalid tile(0,0)for the settlement of If line xxx is the bottom of the descr_strat file and the settlement name is not specified.
Pixels on map_regions.tga of a colour that do not belong to any region colour specified in descr_regions.txt - watch out for merged colours when editing map_regions.tga as that is usual cause.
If settlement is named and line xxx is it's listing in descr_strat.txt
Settlement is actually placed on invalid terrain. This may include being over river location, over impassable forest, or mountain ground types, or being over area marked as sea in map_heights.tga. The last includes areas of 'land' which are true black RGB 0,0,0 as the game takes them as sea unless a map_heights.hgt is created.
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. You are trying to place zzzz in this region(yyyy), but it already has a settlement(zzzz).
Using an almost black pixel for the effected cities location on the map_regions.tga - the pixel must be RGB 0,0,0
It Loads But...
So you saw the map come up and thought all your problems were over? Not quite:
Symptom: Strange overlay effect when viewing parts of campaign map, often including diagonal lines across map.
Too few regions on a large map, or excessively large single regions can cause this. Some graphics cards tolerate the problem and display it, on other computers it can cause CTD at end of loading bar. May only occur in one area of map - so may explain CTD when loading with faction centred in the effected area.
Symptom: Bright pink / purple areas on map
Using invalid colour in map_ground_types.tga
Misnaming or pathing of texture files referenced in descr_aerial_map_ground_types.txt so texture is not found.
Symptom: CTD without message immediately after pressing end turn button for first time.
Having a faction included in descr_strat.txt which has 'shadowed' line in descr_sm_factions.txt and not also including the corresponding shadowing faction.
Setting too high a starting number of movement points (eg 300) in descr_character.txt
Having a faction as faction-creator in descr_regions and not having it in descr_strat. (if it lets you get that far - this can give a KTM with message instead)
Bad character name file. To check for this, try Saving before End Turn. If it crashes then it is the bad name file as it creates an error during creation of a saved game and End Turn is (on default) auto-saved.
05-24-2007, 18:02
Myrddraal
Re: Campaign Map Not Loading....
Thanks a lot Mak. I think this deserves a sticky.
05-24-2007, 20:03
Red Spot
Re: Campaign Map Not Loading....
been able to pin this down a bit better, perhaps you might want it said over here as well ..
when your map.rwm is in the 12-13mb range be very carefull!!
your heading towards some form of the landmass-bug
if your game generates a map.rwm but than CTD's but loads just fine the next time, go back!!
your already in the area of some form of landmass-bug
if your game generates a map.rwm but whatever you do the loadingscreen never appears as your game freezes when it should start showing it, your in trouble!!
remove some mountains in map_groundtypes and/or add more land in map_heights, though editing map_groundtypes might only be a temp. solution as at any given time it could start again, but adding more land(heights) and no new rocks(groundtypes) always seems to work ..
anyway the relation between the map_heights and map_groundtypes is what causes these issues, I never had it happen after an edit in map_heights, but an edit in map_heights generally does solve it ...
it does however ony happen if your map_heights is already "very very very" close to triggering the landmass-bug
G
05-24-2007, 20:38
Makanyane
Re: Campaign Map Not Loading....
Thanks Red Spot, umm I was sort of ignoring your freeze problem as I didn't understand it enough to summarise it!
Hadn't realised before you meant that freeze was before you got to loading bar? So you click arrow after faction selection, get map.rwm generated and then never go any further, is that right? I thought initially you meant you got into map and then hung...
I think the map.rwm file size is only indirectly relevent (as it means you have larger map), a map with 1021 map_heights.tga will normally generate a 13mb map.rwm, but I've had quite a few maps based on that before without meeting your freeze problem. (reminds me need to put in max map size) I assume your problem is more to do with really pushing the limits for the amount / arrangement of water you can get in and hence, as you say, being very close to triggering landmass bug problem.... If you had only a small amount of water on same sized map I don't think you'd have issue.
05-24-2007, 22:27
Red Spot
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Makanyane
Hadn't realised before you meant that freeze was before you got to loading bar? So you click arrow after faction selection, get map.rwm generated and then never go any further, is that right?
yep, thats it
push it a little further and you get a map.rwm generated and than a CTD before the loading screen pops up, push it even further and your at the landmass bug ...
also I dont have a good idea whats up with the map.rwm file but it surelly isnt directly tied to map size, my map at start always generated 3mb size files at start, as I added more variaty to map_groundtypes it started to sometimes generate a 12/13mb file, as I added more to the groundtypes file the map.rwm become generally at a 12mb size and only very randomly give me a 3mb size file, now that my groundtypes file is done I cant anything less than 12mb-ish size
I can directly influence the file a bit, but its more a "it works most of the time" method, wich is by reducing sea in map_heights
(I know it all doesnt add up or make any sence, all I do know its flucuation in size is direct relation with map_heights and map_groundtypes)
Edit;
a few more things I've experienced ..
for under;CTD without message immediately after pressing end turn button for first time.
Having a faction as faction-creator in descr_regions and not having it in descr_strat.
(perhaps) under; Strange overlay effect when viewing parts of campaign map, often including diagonal lines across map.
Incorrect color use in map_groundtypes can cause "purple spots".
/edit
G
05-28-2007, 09:18
wlesmana
Re: Campaign Map Not Loading....
Another cause of CTD during first time End Turn button:
- Bad character name file. To check, try Saving before End Turn. If it crashed then, then it is the bad name file as it creates an error during creation of a saved game and End Turn is (on default) auto-saved.
05-28-2007, 09:42
Dol Guldur
Re: Campaign Map Not Loading....
I believe this is one of the reasons devs usually disable the save-game preference. It's still disabled in the release of Fourth Age :)
05-30-2007, 18:28
Makanyane
Re: Campaign Map Not Loading....
Thanks chaps, updated 2nd post.
Quote:
Originally Posted by Red Spot
for under;CTD without message immediately after pressing end turn button for first time.
* Having a faction as faction-creator in descr_regions and not having it in descr_strat.
I put that in but with a note, I'm sure that's meant to give you a KTM with a message rather than let you in to campaign. It does for me but that might be a difference between BI and RTW, will check if that is case when I get time.
(if it's not the difference between the games then you've just taken over from me for habit of getting weird errors! :laugh4: )
06-12-2007, 18:19
Ramashan
Re: Campaign Map Not Loading....
Great resource for mapping problems. This will become my go to trouble shooting reference.
One thing that has bit me several times when resizing map_regions, simply because I am making changes and testing too quickly, is forgetting to change 'bicubic' to 'nearestneighbor' in the image resize tool.
This will cause a CTD and not create a rwm file.
06-13-2007, 07:42
Makanyane
Re: Campaign Map Not Loading....
Ramashan, good point will try and add something to top post about that. I've also accidentally done that to map_regions in PaintShopPro, that one needs Pixel Resize instead of Smart Size.
I was trying to work out why that CTD'd without message whereas having pixels of extra colours (which is effectively what you get) in small area gives you a KTM with message. Just realised it is probably because you've got so many extra colours that it is reading as being over the 200 region limit....
Using the wrong re-size method also messes up the other files though normally with odd graphic effects rather than CTD - for ground_types you'll get lots of pink areas where colour is invalid, for climates you'll have default climate appearing where you have the unknown colour, map_heights you get odd 'mountains' around coast where you've merged land and sea.
06-30-2007, 21:01
Makanyane
Re: Campaign Map Not Loading....
hmmmpf - will test a bit more to define at some stage and add but - CTD 2/3rds way along campaign loading bar
- caused by large mismatch between regions in descr_regions and
the ones listed in data/text/campaign_name_regions_and_settlements.txt (I think if you're only one region out you get an error message but will check that)
this can be caused, for instance, by using an old regions and settlements.txt file by mistake - making this mistake simultaneously with trying to move mod to new mod-folder can result in spending whole afternoon trying to work out why campaign won't load anymore......:wall:
06-30-2007, 22:25
Warluster
Re: Campaign Map Not Loading....
I don't know if you have this listed but:
WHen all the game runs perfectly (it loads,etc)
Then you go into the Imperial Campaign Menu, and press a faction, then press thje arrow, and it goes back to the Main Menu?
THat happens when you've modded/edited with one of the Data/World files, or when you've downloaded a mod which does.
This applies to RTW and M2TW
06-30-2007, 23:01
Makanyane
Re: Campaign Map Not Loading....
Warluster, what you are describing is a KTM (Kick back To Menu) there are a few possible ones in the list look for the ones starting: Symptom: KTM's with message on exit
You should get message when you quit the game if you are using -show_err on your shortcut. There is at least one cause where you don't get message (unfortunately I can't remember what it is and haven't come across it recently).
09-25-2007, 00:51
Kurulham
Re: Campaign Map Not Loading....
Morning all,
I've been getting a problem that's not a CTD, nor really a KTM; rather, it's a failure for the campaign map to even BEGIN loading.
The problem comes when I try to add support for night battles; from everything I've read, I just change the descr_strat to include the options bi and night_battles_enabled tags (and use the BI exe, of course).
Problem is, when I do this, descr_strat no longer parses properly. If I try to load the campaign I get a "Please select an item from the menu" message. The starting time always shows up as 1 AD, and when I close RTW again, I get a descr_strat error that it couldn't find the campaign start date (which is very definitely still there).
Removing the options bi tag and just leaving in the night_battles_enabled tag causes a CTD; removing both tags causes night battles to not work.
Any thoughts/ideas?
09-25-2007, 08:39
Makanyane
Re: Campaign Map Not Loading....
could you copy and paste the top of the file in a reply here, from top to part that includes those lines - it sounds like you have the wording or placement slightly wrong, it does indeed stop parsing file if it hits something it doesn't recognise (might be the order you've put them in if not spelling etc)
09-25-2007, 15:45
Squid
Re: Campaign Map Not Loading....
Also you don't need the BI exe to have nightbattles. If you're using the BI exe the changes you're making for nightbattles are unnecessary.
09-25-2007, 18:05
Red Spot
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Squid
Also you don't need the BI exe to have nightbattles. If you're using the BI exe the changes you're making for nightbattles are unnecessary.
you may not need to run it to be able to trigger them, but I've been unable to get the AI to trigger a nightbattle using the Rome .exe
so afaik you do need it if you want the AI to trigger them as well (cant say I've seen them do it in BI but I havent tested that ...)
G
09-25-2007, 21:02
Makanyane
Re: Campaign Map Not Loading....
SSJVegetaTrunks seemed to have got night battles working in RTW see: https://forums.totalwar.org/vb/showthread.php?t=89367
did you mean you couldn't get them at all or just that AI didn't opt for them? And are you sure their generals have the required trait? Relevant trait/attribute is definitely needed in all versions.
Vanilla BI has
Quote:
campaign barbarian_invasion options bi
playable
huns
........
not sure if it is strictly necessary or not but it doesn't seem to hurt...
09-26-2007, 05:21
Kurulham
Re: Campaign Map Not Loading....
Okay, I'm a moron. *headdesk*
Forgot that my copy of RTW Gold is one of the ones that lacks the 1.6 patch when I reinstalled it.
Patched to 1.6 and working like a charm now with options bi and night_battles_enabled. Plus the all the ancillary whoozis (traits, lighting, whatnot, but already had that).
09-26-2007, 06:55
Red Spot
Re: Campaign Map Not Loading....
Makanyane ..
to get nightbattles in RTW isnt an issue, its easy, but I've been unable to get the AI to trigger one
they have the traits (both nightbattlecapable and nocto-something ...) and they attack me, never have I fought a nightbattle that was triggered by the AI (also have set "options BI" and "nightbattle enabled" in descr_strat)
not saying it isnt possible, just that at least I cant get them to show up as an AI-feature
btw I've read the topic you linked but besides that he makes the statement that he has nightbattles in RTW, he doesnt state that the AI actually triggers them ...
G
09-30-2007, 15:46
Red Spot
Re: Campaign Map Not Loading....
for under;
Symptom: Game CTD's with no message shortly after arrow is clicked to start campaign - new map.rwm is generated.
Having the Romans able to horde "and" have the senate as their super-faction.
The game kept crashing as if I didnt have some names set in the apropriate files, in the end turned out that the ability of the romans to horde didnt work to well with them also belonging to the senate
***note; this was running Rome with the BI-exe***
G
09-30-2007, 21:09
Makanyane
Re: Campaign Map Not Loading....
thanks RedSpot, added.
will nominate you "Deputy Finder of Little Oddities" :beam:
EDIT; actually I nominate you "Superior Finder of Little Oddities" just realised you probably explained why I could never get superfaction function to work in my mod !
10-04-2007, 11:03
Seth Krn3ll
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Makanyane
Common Causes of Problems
Symptom: Game CTD's with no message when arrow is clicked to start campaign - no map.rwm generated.
Landmass Crash - actually caused by having too large an individual sea area.
Too large an area of impassable terrain - actually same bug as above (if area doesn't work as sea it won't work as mountain or dense forest either).
Rivers incorrectly drawn in map_features.tga. Possibly also river without ford completely dividing a region.
Incorrect height or width listed in descr_terrain.txt - dimensions must match map_regions.tga
More than 200 total 'regions' - note regions include different colours used for individual seas, so you can have 199 land regions and 1 sea, or 198 land regions and 2 different coloured seas in map_regions.tga etc...
Wonderful guide, Makanyane, it helped my a lot adding the first two regions to the map, but now at the third region I'm stuck and can't find what's wrong.
Symptom: Game CTD's with no message when arrow is clicked to start campaign - no map.rwm generated.
But: [*]Landmass Crash - actually caused by having too large an individual sea area.
- I did not touch sea areas adding the last region[*] Too large an area of impassable terrain - actually same bug as above (if area doesn't work as sea it won't work as mountain or dense forest either).
- I did not add any impassable terrain[*] Rivers incorrectly drawn in map_features.tga. Possibly also river without ford completely dividing a region.
- I did not modify map_features. rivers are not completely dividing the neew region, nor they touch the settlement[*] Incorrect height or width listed in descr_terrain.txt - dimensions must match map_regions.tga
- I didn't touch descr_terrain.txt[*] More than 200 total 'regions' - note regions include different colours used for individual seas, so you can have 199 land regions and 1 sea, or 198 land regions and 2 different coloured seas in map_regions.tga etc...
- number of actual regions is 48, the new one wich causes the crash is number 49.
If i remove the new region from the map_regions.tga and its refs from:
- descr_strat.txt, descr_regions.txt
-**regions_and_settlement_names.txt
-**regions_and_settlement_names_lookup.txt
It all works fine, so its really just the new region making a problem. But again. I already added two of them and they give no troubles.. just this one!
My tries:
- i re-checked all regions in the map to have their precise colors (tolerance0)
- checked the map_heigths.tga : no areas in black (RGB 0,0,0)
- i moved the settlement to different locations, checking each time was not touching the border of the region, not occupied by mountains, rivers, sea, lakes or other map objects, same CTD
- i changed color of the new region ten times, same CTD
- i moved the region to another totally different area of the map, same CTD
So I'm stuck here: any idea what else to try?
10-04-2007, 11:11
Seth Krn3ll
Re: Campaign Map Not Loading....
Another try I made with no effect:
- i changed shape of the new region three times, same CTD
Guess I need some help here :(
10-04-2007, 11:40
Seth Krn3ll
Re: Campaign Map Not Loading....
:dizzy2:
Ok i find a clue, not sure if it may help YOU to understand what's wrong here, sure its not helping ME :(
I changed once more the color of the new region, but i forget to add the right RGB colors in descr_regions.txt.
So I had this symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx
And it makes sense.
If I add the right RGB values, I get again the same old CTD with no map.rvm generation.
The hint is, the error causing my CTD is something the program reads AFTER checking descr_regions.txt
Can't go much far
10-04-2007, 12:54
Makanyane
Re: Campaign Map Not Loading....
Nothing obvious is coming to mind on your problem. Not getting a map.rwm when you were before and all you've done is add region is rather strange. Have you done anything different on the 3rd region in terms of the faction or rebel type it uses in descr_regions, or for the faction creator in descr_strat??
It sounds like you've investigated most possible causes, if all else fails zip the campaign folder together with the ..._regions_and_settlements.txt file from data/text and upload it somewhere so other people can see if they can spot problem.
10-04-2007, 13:21
Seth Krn3ll
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Makanyane
Nothing obvious is coming to mind on your problem. Not getting a map.rwm when you were before and all you've done is add region is rather strange. Have you done anything different on the 3rd region in terms of the faction or rebel type it uses in descr_regions, or for the faction creator in descr_strat??
It sounds like you've investigated most possible causes, if all else fails zip the campaign folder together with the ..._regions_and_settlements.txt file from data/text and upload it somewhere so other people can see if they can spot problem.
What sounds MORE wierd to me is that if i write the wrong RGB values for the last region in descr_regions, then the map.rvm IS generated! But if I put the correct values, then is NOT. I mean, I supposed the map was generated AFTER reading a funcional descr_regions file! Guess I was wrong then.
On the 3rd region:
- faction or rebel type modded, exactly like the ones for the other two new (working) regions (I add the descr_rebel_factions file in the zip to see)
- faction creator in descr_strat same as the other two new (working) regions
Inside there are:
- the whole modded campaign middle_earth folder (only modded campaign inside, removed all others)
- descr_rebel_factions.txt
- middle_earth_regions_and_settlement_names.txt
Just consider that its part of a serverely modded version of RTW v1.1, so you will not be able to just put it in campaign folder and play it. If you think it will help I could zip the whole data directory.
I'm out of ideas here, hope in some good hints :(
10-04-2007, 13:36
Seth Krn3ll
Re: Campaign Map Not Loading....
BTW:
the 3d region giving the error is METW_Region_49 named Minhiriat, with its settlement {METW_Settlement_49} named Tharbad
In the zip files you'll find a commented METW_Region_50 named Quazzurlia, with its settlement {METW_Settlement_50} named Quazzotown but I've never activated them, they were a try to see if was just the names causing the CTD.
Just ignore them or remove them, in map_regions.tga they are not present.
10-04-2007, 16:28
Makanyane
Re: Campaign Map Not Loading....
well I looked and I can't spot anything - am hoping someone else might have a go - as I haven't got a working version that's at 1.1 or the METW data, I'd need to unravel a lot to give it any chance to load, then wouldn't know if it was those changes or something else!
Don't know - I'd opt for superstitious approach - go back to last working version and add completely different region... you've got some un-used region names in the text file like
{METW_Region_09}
you could try adding that into descr_regions and see if that works. You seem to be heading beyond anything there is logical explanation for (at least that I can see) so you might as well try something different!
10-28-2007, 12:04
Red Spot
Re: Campaign Map Not Loading....
yet another ...
the naming bug (having a character in descr_strat named without a correct entry in descr_names) can show itself in more than 1 way it seems
I modded the last non-Romans in my game to be Roman so the last 5 factions at the bottom of descr_strat(just above slave) where transformed to Romans in name as well incl. descr_names, I just forgat to copy the last file over to my actual game-folder
the result was that I first got an error saying it "couldnt create settlement at line xxx" wich was the very first settlement in Julii(Local) hands
not understanding what was up(errr ...) I removed the super_faction line from the Julii to trigger the known CTD
seems that "somehow" the game is able to swallow an incorrect name and only give an(incorrect) show_err error if there is enough data between the error and start of the 1st faction
cant reproduce it though .....
Originally posted by Makanyane
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx
Mis-match between colour on map_regions.tga and colour listed in descr_regions.txt for affected settlement.
Using identical colour for two different regions.
Quote:
Originally posted by Red Spot
the result was that I first got an error saying it "couldnt create settlement at line xxx" wich was the very first settlement in Julii(Local) hands
not understanding what was up(errr ...) I removed the super_faction line from the Julii to trigger the known CTD
seems that "somehow" the game is able to swallow an incorrect name real error and only give incorrect show_err error
Yeah-yea, there must be something else...
I've checked this and still get KTM with "script error..blah blah...could not create settlement at script line xxx"
First settlement in descr_strat. Note that I' haven't yet moved characters to apopriate positions, no resources in descr_regions and d_strat, all vanilla factions are presented, AND... have region names like Etruria_1 and Etruria_1s. Maybe number causes this? Now going to continue search...
Update::whip: the problem was caused by map_regions with 1 region! Somehow edited map was placed in temp folder, while this one martyrized me!
After replacement first time game crushed shortly before showing map; I have chosed Julli, so I thought that I might be doomed with always-crashing rome :wall: , but next time when loaded as seleucids, it (unbelievable) did not crash on a rome view... I 've succesfully scrolled entire map (almost), but it crashes at the end of ai turn (сука). :shrug:
So now i'm going to sort that crap (off-top here)....
btw,
having lines in RTW descr_strat
Quote:
marian_reforms_enabled
gladiator_uprising_enabled
causes ktm with "Expected faction - must add at least two factions to the world". I'm sure everyone knows it, but..
11-06-2007, 19:00
Makanyane
Re: Campaign Map Not Loading....
Thanks for the reminder on the marian_reforms bit, did discover that but think I forgot to mention it anywhere you should be able to have
marian_reforms_disabled
if you want, if you want them active though just don't use the line at all.
It will give you the must add two factions comment if it falls over anything it doesn't recognise before the factions section.
If you're getting an error on the first city in descr_strat its likely to be a fundamental problem with the files and not related to that city particularly.
The file with the region names in data/text is often a problem but I don't know if it will cause that particular problem. It should not mind the number in the region name, I've definitely used numbers before I decided on region names.
If you get stuck I don't mind having a look, PM me with link to files if you want...
11-07-2007, 12:02
Charge
Re: Campaign Map Not Loading....
Just sorted problem with romans and not having settlements Apollonia, Segesta, Syracuse; it connected with senate missions, as you all know. I spotted it firstly in eb forums, haven't tested how much it dependant of senate presence. It should be added to Symptom: Game CTD's with no message at the end of the campaign loading bar *with romans*.
btw, strange thing - if I had "Rome" in strings, it shows as "Rom". If I type "Romee" it shows properly :).
11-07-2007, 14:49
Makanyane
Re: Campaign Map Not Loading....
Is Rome the last line in the regions and settlements file? If so put an empty line below if and you'll see last letter.
Re: the Senate mission thing, are you using patch 1.5? For some reason I thought that didn't have problem, but then again I was probably using without senate version... :dizzy2:
11-07-2007, 15:46
Charge
Re: Campaign Map Not Loading....
Quote:
Is Rome the last line in the regions and settlements file?
Yep,
Quote:
the Senate mission thing, are you using patch 1.5?
Yep.
And problem with slave-turn also fixed..
11-08-2007, 17:36
ovidius
Re: Campaign Map Not Loading....
Hello to everybody.
I was trying to create an new map for SQPR mod, but I've run in to some trouble. The game crashes at the end of the loading bar. I know that this crash is asociated with whrong rebel faction used in descr_regions.txt witch is not added in descr_rebel_factions.txt and rebel_factions.txt. But I've checked all those files 3 times, and those are OK. Do u know another bug that cause this CTD? Or there is anybody who can have an look at my files, maybe he can spot errors that I don't. I will be verry thankful if u can help because I am trying to solve this problem for 3 days and have run out of ideea of where to look tor the bug. Thankyou verry much.
Have you guys ever had a KTM, which generated new map.rwm, but didn't show an error message (yes, I have the show_err line and I deleted the map.rwm) ?
I've had lots of KTMs but they all triggered an error message so far...
12-16-2007, 22:24
Makanyane
Re: Campaign Map Not Loading....
I don't suppose "yes I have, but can't remember cause".... constitutes a useful response! (sorry)
12-18-2007, 16:20
WImPyTjeH
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Makanyane
I don't suppose "yes I have, but can't remember cause".... constitutes a useful response! (sorry)
Never mind. ;) It's a strange error though. There's a KTM which generates a new map.rwm, but it doesn't trigger an error report...
I'll guess I'll strip or redo it :wink:
01-08-2008, 04:49
Burns
Re: Campaign Map Not Loading....
Just throwing something in here which was really annoying today and produced no errors until I redid a region: Cities which may have a port building in descr_strat but no actual port on map_regions will KTM the game.
01-15-2008, 21:13
Aradan
Re: Campaign Map Not Loading....
We're getting a very unusual error on the METW map. When scrolling over a region of the map, it CTDs, but not immediately and not over the same area. The resources are all in order, the names, regions and settlements are ok, there are no double colours in map_regions and the colour assignments are correct. Toggling fow off solves it, but as soon as fog is lifted again, CTD.
Any suggestions?
01-15-2008, 21:40
Makanyane
Re: Campaign Map Not Loading....
The immediate bit may mean its not this; but RTW had some combinations of faction creator in strat versus regions file it didn't get on with, try switching those around (I think that is more immediate and at same place though)
Putting a rebel which is sub_faction of a faction that is not in the descr_strat file will CTD when you get in range to view the rebel (if they are moving that might explain variability) - something else dodgy in the rebel set up might do the same.
01-16-2008, 00:04
Burns
Re: Campaign Map Not Loading....
Right now there is only 1 active rebel army on the map and I dont presume this has the same effect on unoccupied rebel settlements. If the faction creator for each region is equal to that of the entry in regions does it not mean that the problem wouldnt exist?
01-16-2008, 09:44
Makanyane
Re: Campaign Map Not Loading....
No it won't be that then, and I just remembered you're on BI and I don't think that has problems with the faction creator (RTW just got funny on certain factions sometimes).
I've seem some mods withdraw or give alternative strat map models because they caused crashes on some but not all computers, do you have anything unusual on those?
Is it the MetW map WImPyTjeH got loading that's doing it, if so maybe me/others could look and see if it CTD's for us too.
01-16-2008, 12:36
Aradan
Re: Campaign Map Not Loading....
Yep, it's that map, but after I fixed it Burns added more regions, some of them in that crashy region of the map too. Which files would you like me to upload? The entire campaign folder along with rebel factions and region/settlement names?
01-16-2008, 15:30
Red Spot
Re: Campaign Map Not Loading....
do you use the faction that was once the Senate, and if so do you have rebels connected to them ?? ...
I had some rebels linked to the Senate and got nothing but CTD's when I scrolled over slave terf. (only when visible, so with no FOW or moving in spies), I changed the slaves to be linked to the Julii and the map worked at least without CTD's ... (now my faction-creator is always Julii and the slaves sub-factions are distributed across the 3 main Romans)
I'd say try linking all rebels to a "regular" faction and see if it happens again ..
(I know Mak. said the rebel-problem isnt in BI, it does look very similair to the problem I had)
G
01-16-2008, 16:11
Aradan
Re: Campaign Map Not Loading....
Nope, no senate in there, just BI factions. And I think all the rebels are regular factions (could being Ostrogoths have any weird affect??)
02-08-2008, 00:33
Birdman2008
Re: Campaign Map Not Loading....
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx
* Mis-match between colour on map_regions.tga and colour listed in descr_regions.txt for affected settlement.
* Using identical colour for two different regions.
I ve double, tripple checked both. It must be another thing. The screen ALMOST loads ( the loading bar DOESNT appear, but nevertheless, i dont get kicked to the previous menu straight away, a black screen appears for a second and then i m kicked to the previous menu.
any thoughts?
if i make a breakthrough here i might start something bigger sometime :P
Ive copy pasted my own post since this might help others with the same problem eventually i think.
06-16-2008, 22:15
DoctorChe
Re: Campaign Map Not Loading....
I have experienced the same error
Quote:
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx
I checked both and the error was not 1 of these
Quote:
* Mis-match between colour on map_regions.tga and colour listed in descr_regions.txt for affected settlement.
* Using identical colour for two different regions.
What solve the problem was that i changed the color of the 3 regions in map_regions.tga (and the descr_regions) from 255 0 0 to 254 0 0, 0 255 0 to 0 254 0 and 0 0 255 to 0 0 254. I was using GIMP 2 to paint the tga file and running the map in RTW patch 1.5.
Maybe that your problem Birdman2008, that your using invalid colors.
06-18-2008, 04:21
Squid
Re: Campaign Map Not Loading....
Umm, DoctorChe, your error was the second one from the list, you used the same colour in map_regions.tga for three (not the two specified in the error) regions.
06-18-2008, 20:49
DoctorChe
Re: Campaign Map Not Loading....
is 255 0 0 completly red equal to 0 255 0 completly green or 0 0 255 completly blue
12-23-2008, 17:34
SotK
Re: Campaign Map Not Loading....
Hi.
I'm modding new regions into my BI, and added one in Northern Ireland. It worked fine with no garrison, but as soon as I added a garrison I got a CTD, specifically this one:
Quote:
Symptom: Game CTD's with no message at the end of the campaign loading bar.
Except the solution in this thread had no effect. Any ideas?
12-24-2008, 17:38
Aradan
Re: Campaign Map Not Loading....
Make sure the name of the garirson's captain is available for his (sub-)faction and that the unit is also available to the faction.
12-24-2008, 20:24
Motep
Re: Campaign Map Not Loading....
I created a new map for a mod I am making and cant get it to work.
Symptom: Game CTD's with no message shortly after arrow is clicked to start campaign - new map.rwm is generated.
Width or height of map exceeds maximum. (Maximum = 510pixels map_regions, 1021pixels map_heights size.
It is much smaller
Misspelt character name in descr_strat.txt, or use of name which doesn't belong to faction you have assigned it to - check in data/descr_names.txt for faction specific names.
didnt mess with character names yet
An elephant or chariot unit which is included in the descr_strat.txt file has an 'officer' assigned to it in export_descr_units.txt. Those types of units cannot have an officer and unlike other unit related bugs this one causes CTD on trying to load campaign.
Didnt touch elephants or chariots
Having the Romans able to horde "and" have the senate as their super-faction. (under BI.exe)
Im using rome
Could it possibly be an errant pixel? I looked again and again, but found nothing.
12-27-2008, 09:03
Motep
Re: Campaign Map Not Loading....
Added more factions, found a few errant pixels, and decided to rework the regions tga once more. Still doesnt work...and I am at a loss as to what to do now. If it helps, I have uploaded the aryth campaign file.
Why would you add more factions, when the previous amount didn't work?
01-10-2009, 02:58
Motep
Re: Campaign Map Not Loading....
I was bored. Anywho, I am still stuck on this...
01-10-2009, 13:27
Aradan
Re: Campaign Map Not Loading....
Back up your .tga map files and then use 1 climate, 1 ground type, no features, etc (ie make the map as simple as possible) and see if it loads.
01-10-2009, 21:27
Makanyane
Re: Campaign Map Not Loading....
map is quite simple already - do double check that when you delete the map.rwm that you get a new one...
only thing you didn't post in your earlier upload was the campaign_name_regions_and_settlements.txt
file that you should have altered to match your new region and city names in data/text/...
did you change that file? and does its name match the folder name for your campaign?
in the folder you posted you have egypt as the default faction for all your regions in descr_regions.txt --- but you can't actually use them there as they are not one of the factions included in your descr_strat.txt, that should give an error message if you didn't have a larger problem its meeting first.
02-23-2009, 20:47
PopePopo
Re: Campaign Map Not Loading....
Extremely useful guide .. Thx makanyane !
One question though :
Which 'character files' are the cause of the CTD with no message if you save ? are these names.txt or descr_charatcers or ..
02-24-2009, 09:20
Makanyane
Re: Campaign Map Not Loading....
Quote:
Originally Posted by PopePopo
Which 'character files' are the cause of the CTD with no message if you save ? are these names.txt or descr_charatcers or ..
Having a name in descr_names.txt which doesn't have the correct look up in names.txt
(I think...... it wasn't me that first reported that one)
02-24-2009, 17:59
PopePopo
Re: Campaign Map Not Loading....
Alright thanks !
Problem solved ! Many thx makanyane :D
02-28-2009, 19:02
JoristhePagan
Re: Campaign Map Not Loading....
'Script error in .../descr_strat.txt, at line xxx, column x. could not create settlement at script line xxx'
You also get this error when you change the name of a city in descr_regions and imperial_campaign_regions_and_settlement_names, but not in descr_strat. Something you might add to your guide, I made that mistake
03-13-2009, 19:53
PopePopo
Re: Campaign Map Not Loading....
A new error / sloution , although it's not really a big problem , but i think it's still worth to mention :
KTM with error : Could not create settlement xxx on x xxx , y xxx - when the region is correct in descr_regions and map_regions and the region is placed on a valid place
-Region acutally exists but you forgot to delete map.rwm
03-22-2009, 17:11
PopePopo
Re: Campaign Map Not Loading....
What's the best way to solve the error of mixed clours ? I hope not checking every pixel myself ..
03-27-2009, 20:37
PopePopo
Re: Campaign Map Not Loading....
hey makanyane , a new error :
Symptom: KTM's with message on exit: 'Script error in .../descr_strat.txt, at line xxx, column x. You are trying to place zzzz in this region(yyyy), but it already has a settlement(zzzz).
* Using a color for the region that looks the same like the real one , but is still different . (so for instance , the normal/vanilla RGB value is 45 , 120 , 85 ; but a part of that region is 50 , 119 , 58 ..)
05-30-2009, 14:15
JoristhePagan
Re: Campaign Map Not Loading....
New error you might be interested in:
When a slave army has no "sub_faction facton name" in descr_strat as first the game will have a CTD ATM you click on start campaign, new map.rmw is generated.
05-30-2009, 16:34
Makanyane
Re: Campaign Map Not Loading....
Quote:
Originally Posted by JoristhePagan
New error you might be interested in:
When a slave army has no "sub_faction facton name" in descr_strat as first the game will have a CTD ATM you click on start campaign, new map.rmw is generated.
did you use a character name from the 'slave' section of descr_names.txt? if not it might just be a name error - symptom is the same.... if you could let me know on that I'll try and get round to updating the main post soon - cheers :thumbsup:
06-11-2009, 12:59
JoristhePagan
Re: Campaign Map Not Loading....
I used the name Sautes, which also appears under the slave faction in descr_names.txt
06-21-2009, 12:01
Praefectus praetorio
Re: Campaign Map Not Loading....
Hi, can you add another fix for symptom: "Game CTD's with no message at the end of the campaign loading bar."
This can happen also if you have unit in data/descr_rebel_factions.txt that does not exist in export_descr_unit.txt. I had this problem and took me a while before I found the solution.
06-26-2009, 07:08
lim_lucky
Re: Campaign Map Not Loading....
I currently have a problem with the campaign map, so I'm wondering whether you have encountered such an error before. My campaign map managed to load, but only the slave faction controlled cities are having an error: The buildings in the cities and units anywhere on the map are not present at all.
The files which I edited are
1) EXPORT_DESCR_BUILDINGS.TXT to add new buildings
2) EXPORT_BUILDINGS.TXT to add new descriptions
3) DESCR_REGIONS.TXT to add new hidden resources
4) descr_strat.txt to add new buildings
I would just like to know which of the files are the ones that could have contributed to this error. I did have a back up, but it was before all the changes were done, so I was hoping to identify the faulty file and minimize all the checks.
06-26-2009, 07:21
Makanyane
Re: Campaign Map Not Loading....
@Praefectus praetorio - thanks will add
@lim_lucky
descr_strat
it stops reading it when it meets certain types of error like a
`
instead of a tab.... then all towns below that point come out as villages and garrisons etc below that are ignored (check if you're actually also missing any factions) read down file and compare with map till you find last town that's working OK error should be just after that.
06-26-2009, 10:04
lim_lucky
Re: Campaign Map Not Loading....
=D I have found the error using a text comparator, its in desc_strat. The error is due to only one of the settlements having 2 simultaneous curly brackets, i.e. } }
07-08-2010, 20:09
magpie
Re: Campaign Map Not Loading....
Just a small question. Hight maps. Is the max hight for a mountain 200 pixel value? thanks in advance, magpie
07-09-2010, 02:38
Myrddraal
Re: Campaign Map Not Loading....
Hi magpie, I can't remember there being any limit, but it's been a while...
07-09-2010, 06:22
magpie
Re: Campaign Map Not Loading....
Quote:
Originally Posted by Myrddraal
Hi magpie, I can't remember there being any limit, but it's been a while...
Thanks for your reply Myrddraal, I was just checking a few maps like the big MM which I have used, all versions! seems the pixel value for max hight was kept at 200,200,200, just wondered if there was a reason?
I am working on a brand new map with Haeressiarch 510x337 for RotN . haer created the outline from satellite images I am filling in the details, The Alps ect can be tricky to get a good result. regards, mags
07-11-2010, 07:22
magpie
Re: Campaign Map Not Loading....
Hi, Just a question on coast lines, Is it essential to have beaches or cliffs along the whole map coast line.
By the way thanks for this thread Makanyane ! regards, mags