.SMR_Scenario

Discuss maps, trains and other modding topics
Post Reply
gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

.SMR_Scenario

Post by gforce » Thu Feb 08, 2007 9:23 pm

FYI
Hi,
I didn't knew but now i do:

.SMR_Scenario file is important because there it stores the positions of the industries.
When adapting your map, load the map via map.SMR_Scenario
not from the tga file, otherwise you don't have the industries showed.

Yes, this makes my life much easier, maybe yours also?

:arrow: Question:
If your uploading a map, please do include this file as well,
Unfortunally, they're not included in the original maps.

choobacca
Posts: 190
Joined: Wed Jan 24, 2007 7:46 pm

Post by choobacca » Thu Feb 08, 2007 10:42 pm

The .SMR_Scenario file is just the filename of the map's RRT_Scenario_YourMapName.xml file preceded by a 4-byte length field that is the length of the filename. If you open it in a hex editor, you will see this. This just points to the Scenario file so it can load the rest of the XML files which includes the cities and industries.

You can create these files with a hex editor. I haven't tried this, but you could probably create these files for the original maps and they should load fine then. If you have problems, let me know and I'll create them and post them.

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: .SMR_Scenario

Post by snoopy55 » Fri Feb 09, 2007 6:10 am

gforce wrote:If your uploading a map, please do include this file as well,
Unfortunally, they're not included in the original maps.
If you want a copy of them, all you have to do click on 'Start a new map from a scenario map' and then save it. This will give you a copy of it, but you shouldn't use the same name as it may confuse the game :shock:
I'm correct 97% of the time..... who cares about the other 4%....

gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

Post by gforce » Fri Feb 09, 2007 12:13 pm

When starting a map from a scenario (fe germany) you (i) get only the map itself and not the cities neither the industries or decorations.
Only possible if you load the .SMRScenario filetype
by selecting load saved map.

it must be done as choobacca explained
(snoopy, i think you're wrong there, or misunderstoot, otherwise try it once your way with germany)

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Post by snoopy55 » Fri Feb 09, 2007 7:33 pm

If you are wanting the locations of the industries, if they are meant to be in the place each game, the locations will be in RRT_Industries.xml. The cities are in thr RRT_Cities.xml, so either way, from the TGA or .SMR_Scenario, you can get any item that is on the map to be in the same place using the XML files. You can put the cities where they should be and go into the RRT_Industries.xml and change the X Y numbers for new places or remove the full location sections for random placement, as long as you remove ALL the Locations from RRT_Industries and RRT_Goods. I think that those are the only two, but I'll take a correction on that.
For just city locations, create a new map from an existing one, with a new name, and then go in and put the cities and locations from the original map.
I'm correct 97% of the time..... who cares about the other 4%....

gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

Post by gforce » Sun Feb 11, 2007 12:27 am

I really don't get it work, it was going all so good, editing an example of an .SMR_Scenario replacing the reference and so on...
But with terrrain editor it crashes.

In fact the idea is that i can choose from all the goods and industries within the editor:
(new edit)
i found it :)
1 - create a new map => you will get the basic industries
2 - save your map => you will get your .SMR_Scenario file
3 - Replace goods by a goods file with all goods
4 - Replace industries with all industries
5 - Replace depots by all depots
start editor with your .SMR files

now i've got the teddybear factory fe.... 8)

- maybe there's an easier way, don't blame me for the fuzz.... :oops:

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Post by snoopy55 » Sun Feb 11, 2007 1:45 am

gforce - after you download and unzip the attached files, do the following:

1) create the new map

2) open the Scenario.xml and note the file names: <CityXMLFile>RRT_Cities_(your map name).xml</CityXMLFile>

3) replace the word 'Master' with your map name.

4) delete all Goods, Industries, and TrainCars you don't need. Print and use the MapRequirements.txt to help determine your needs

5) test your map and let us know the results
Attachments
Stripped Masters.zip
(6.78 KiB) Downloaded 335 times
I'm correct 97% of the time..... who cares about the other 4%....

Post Reply