Posted » Thu Jan 13, 2011 2:25 am
Let's do a short tutorial on the use of Building Blocks.
First the name, Building Blocks. Each separate Mod is a Building Block of it's own. But one, unedited, may depend on others. The Iron Mine depends on two other Building Blocks, Iron Ore and Iron Ore Car. The Iron Mine itself actual consists of two separate Building Blocks, an Industry and an Annex. Four Building Block that go in four separate XMLs.
Let's add an Iron Mine.
You have the first step correct, build your map. Next you save it and get out of the editor. Gather the the XMLs and files/folders you need for the Building Blocks you are using. One note here, you do not need to use CustomAssets for a map. Create a folder in UserMaps and call it (Map Name)_Warehouse for now. Place all files and folders from Building Blocks into this. (not the XMLs or JPGs tho) Since the game does not add the Depots XML to a map you will have to add it yourself. Rename it to match the rest of your XML files, the addition of the map name. Then go into the Scenario XML and find the line ' <DepotsXMLFile>RRT_Depots.xml</DepotsXMLFile> ' and edit this to match. Save it.
Now to the XMLs.
Let's start with the Industries XML. Copy the Industry section out of the Building Block and place it into the Industries XML and save. Next open the Depots XML and add the Annex part of the Industry and save. That second part will not be needed for In-City Industries.
Goods is next. Open your Goods XML and add in the Good(s) needed for the Industry. Save it.
The last is the one many people seem to forget, the TrainCars XML. The map will crash without them, dispatch just does not know what to do without a car to ship the stuff in. Open the TrainCars XML and add the car(s) needed for the Good(s) you added. Save it.
Now you can run the Editor and place the Industry you just added.
One important thing here, install one Industry Mod at a time! There have been people in the past who have added several in order to save time and ended up starting from scratch because the map kept crashing at startup or during play for no apparent reason. A few even gave up and posted what they had and never came back out of frustration.
As to your test map, as I see it, RRT_Goods_Test.xml appears OK. RRT_Industries_Test.xml looks OK also. You do not have it placed, but I believe that is because of the missing Iron Ore Car, the Editor was crashing because of this. RRT_Depots.xml could cause a problem, as named. If you add an XML into a map, always add the name of the map to it, and edit the Scenario file to show this change as explained above.
I do believe if you simply add the Building Block for the TrainCar to your map, it should let you place the Iron Mine.
One other thing, when you play with these XMLs, put your Mods either at the bottom of the section they go in, or at the top in all of the XMLs. And always do the 'Pretty Print (XML only - with line breaks) ' when you are messing with them. It makes them easier to read and edit.
I NEVER MAKE MISTEAKS