Map editor guestions.

Discuss maps, trains and other modding topics
Post Reply
User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Map editor guestions.

Post by Jancsika » Sun Dec 24, 2006 5:37 am

I have made my first map. The editor worked pretty well, but....

1, The cities have no demand for end products, that is food, manufactured goods, automobiles.

2, I have tried to edit the "Cities" XML file, using good old Notepad.
The file is one long line, a mile long. It is practically impossible to find the right entry. So mistakes are being made and the game crashes.
It woul be nice to have some breaks like in the original game files.

3. In the editor's submenu (Terrain map editor, + some others) icons there is an icon called "Guide", looks like a Tic-tac-toe. What is it for? It does not do anything. Supposed to be a locator??

4, Also in the Menu icons, Edit Entities submenu, there is a "Fix World"
icon. (Looks like a wrench) What does it supposed to do. Mine was not doing anything.
J.B.

User avatar
atani
Posts: 293
Joined: Tue Dec 19, 2006 5:01 pm
Contact:

Re: Map editor guestions.

Post by atani » Sun Dec 24, 2006 6:19 am

Jancsika wrote: 2, I have tried to edit the "Cities" XML file, using good old Notepad.
The file is one long line, a mile long. It is practically impossible to find the right entry. So mistakes are being made and the game crashes.
It woul be nice to have some breaks like in the original game files.
Use an XML editor like XMLSpy which allows you to view the XML file as a node tree. This will also help you ensure that you are writing a valid XML file.
Jancsika wrote: 4, Also in the Menu icons, Edit Entities submenu, there is a "Fix World"
icon. (Looks like a wrench) What does it supposed to do. Mine was not doing anything.
Raise/Lower your terrain around/under a town and you could end up with a town floating in mid air or under ground. Clicking this button will find and fix these type of errors (and probably other errors, but this is the one of the issues it does fix).

Mike

User avatar
d53642
Posts: 171
Joined: Thu Oct 26, 2006 7:27 pm
Location: Halifax NS

Post by d53642 » Sun Dec 24, 2006 12:46 pm

4, Also in the Menu icons, Edit Entities submenu, there is a "Fix World"
icon. (Looks like a wrench) What does it supposed to do. Mine was not doing anything.
J.B.


Also if you place an industry and it doesn't draw in right this will also fix the ground for it or draw it in properly. This is an option I do every map before I close my editor.

That option has never worked from the early days of me using the editor, I think its suppose to draw like a grid across the map like some other game editors do but I never pressed Dan about what it was for. The early editor had a lot of useless commands in it that were removed because they did nothing or very little to be there.

As for number two I have voiced my complaints about that before. I have PXE editor and use the tree mode in it a lot but for all the other xmls (retail ones) I use notepad cause I am just as fast at use that as I am using PXE.

User avatar
Gackbeard
Posts: 34
Joined: Wed Nov 24, 2004 3:57 pm
Location: Austin, TX
Contact:

Post by Gackbeard » Sun Dec 24, 2006 4:19 pm

The guide button should have been removed in one or two tool menus, but I just forgot in the holiday rush :(

Fix World basically updates the graphics for most of the world entities after you've modified them. It's a very CPU expensive job to re-build all these things that normally don't move once they're generated, which is why we don't do it in real-time as you move or modify things.

For example, wheat fields won't move on the screen when you move or rotate a grain farm, but when you Fix World, it will rebuild all the wheat fields in the world and make sure they are in the correct place.

If you are interested in quickly setting positions and don't care about everything looking like it will in-game, you can just move/rotate things, save, and exit, and not even bother with Fix World.

User avatar
Gackbeard
Posts: 34
Joined: Wed Nov 24, 2004 3:57 pm
Location: Austin, TX
Contact:

Post by Gackbeard » Sun Dec 24, 2006 4:21 pm

As for the linefeeds in the generated XML, that's one of those things that is actually more of a pain than you would think, and since there are plenty of freeware and commercial XML editors that can read those files in and write them out with the linefeeds and tab indentation, we didn't focus on that.

User avatar
OzoB
Posts: 97
Joined: Fri Dec 01, 2006 12:59 pm

Post by OzoB » Sun Dec 24, 2006 4:24 pm

I use .xml notepad and its free just google it...

And thax to you guy's for releasing these things to us.
And the holiday senerio is a great tut. for makeing senerios
Since we can see exactly what to do.....Great

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Thanks.

Post by Jancsika » Sun Dec 24, 2006 6:56 pm

Thanks for the quick replies. They were all very helpful.
I have downloaded the XML Notepad, and I suppose will have to edit the food,automobiles and manufactured goods into the XML files.
Now we can open the Christmas presents and enjoy the holiday.
Merry Christmas to all.
J.B. :D

User avatar
d53642
Posts: 171
Joined: Thu Oct 26, 2006 7:27 pm
Location: Halifax NS

Post by d53642 » Sun Dec 24, 2006 7:11 pm

Gackbeard wrote:As for the linefeeds in the generated XML, that's one of those things that is actually more of a pain than you would think, and since there are plenty of freeware and commercial XML editors that can read those files in and write them out with the linefeeds and tab indentation, we didn't focus on that.
Actually Dan the easiest way I found around that is using the Windows XP XML Editor which is more like a veiwer than anything. Anyways I load them in that and press Crtl A to select all then Crtl C to Copy then paste them over the XML and then just remove all the _ symbols in front of them. Takes me like 1 min to clean the XMLs up to look easier and nicer to read.

Daryl

Post Reply