Log in

View Full Version : Creating a brand new map



Neekeri
02-24-2008, 19:08
As the title says, I'm on my way to creating a completely new map, just to learn the basics. Being new to map modding I'm having both alot of fun and alot of trouble succeeding. The newest error I've encountered is the following:

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. Line xxx is indeed at the bottom of descr_strat.

As far as I can tell, I don't have any non-specified pixel colours. All I've got is 21 regions, sea and settlements, totaling 23 unique colours according to Irfanview.

The cause doesn't seem to be the one stated as the most common, and being a novice at this I have no idea on how to proceed. A hint at what to look at would be great, if anyone has a clue.

Aradan
02-24-2008, 20:04
You should have 24 colours: 21 regions, 1 for sea, 1 for settlements and 1 for ports. Unless you don't have any ports.

Neekeri
02-24-2008, 20:11
Ye, I haven't added any ports, I'm just trying to actually get a map to work at this point, no matter how simple.

Thor the Bassist
02-24-2008, 22:25
Just a silly guess but is there a closing bracket missing in the script because it could be expecting an unnamed settlement placed with no co-ordinates so settlement name "" co-ordinates "(0,0)". Try adding a } to the end of the script. This has happened a couple of times to me as well as getting too many closing brackets.

Just a thought.

Neekeri
02-25-2008, 09:40
This doesn't seem to be the case.

Makanyane
02-25-2008, 10:09
as you've only got 21 regions try going through checking you actually have the exact correct colour for each - compared against the RGB colour listed in descr_regions file. Look out for having same colour copied twice in the text file....

Also check your city colour is pure black 0,0,0, and that your sea region colour is the same as one of the colours used on the vanilla map. If you used a different blue for that it might be thinking its a land not sea region....

Neekeri
02-25-2008, 10:56
The sea was the problem, I actually got the campaign to load. Big thanks!

A minor issue now is that for some reason the family members of certain factions have switched places. For example, the greek faction leader is, according to descr_strat, at 21, 41, but he is actually standing at 20, 21, which is where the egyptian faction leader should be. The egyptian leader is in fact located at 21, 41. The same has happened with other factions/characters too, although not all. What might be the cause of that?

Red Spot
02-25-2008, 12:47
Just guessing here; did you get co-ords in Photoshop ?? ...

The game flips one of the axes, what y is in Photshop isnt y in the game, flip your map over in PS so top is bottem and you can take the co-ords in PS ..


G

Neekeri
02-25-2008, 13:33
Yes, that seems to be the cause. Thanks :beam: