TenderCars and Dual Engines

Discuss maps, trains and other modding topics
Post Reply
User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

TenderCars and Dual Engines

Post by dwax » Sat Apr 28, 2007 3:40 am

Anyone know why when there are reference to TenderCars in the Map_TrainCarsXML none of the Duals work? And why do the maps crash when you remove the reference to them?

Went and looked through the maps, and half of them have that in the TrainCarsXML_Map. :shock: :(
Last edited by dwax on Sun Apr 29, 2007 12:37 am, edited 1 time in total.
Image

User avatar
Dr Frag
Posts: 348
Joined: Thu Feb 01, 2007 1:06 am
Location: Southern California
Contact:

Post by Dr Frag » Sat Apr 28, 2007 7:33 am

dwax, none of the RRT_TrainCars_<scenarioname>.xml files should have a RRTTenderCars section. You should remove any that you find.

The game calls the tenders (or second locos) by looking in the Train sections of the Global RRT_Trains.xml because that's where they are assigned to a loco and thus should not be listed anywhere else.

It might be possible to have a custon Train AND Tender in a Scenario as long as it doesn't conflict with something in the Globals but I have not tested this.

DF

User avatar
K-class
Posts: 325
Joined: Sat Jan 06, 2007 10:54 pm
Location: New Zealand across from Australia
Contact:

Post by K-class » Sat Apr 28, 2007 8:37 am

We have come a long way since the original and newer game maps had the tender cars in the RRT_TrainCars_mapname.xml

It all started to go astray with Manges tender mod. With tenders cars listed in RRT_TrainCars_mapname.xml the tenders did not show up.

see Manges tender mod http://www.hookedgamers.com/forums/viewtopic.php?t=665

So going forward with the new global xmls for tender cars and dual trains all tender car entries have to be removed from RRT_TrainCars_mapname.xml

You of course can use RRT_TrainCars_mapname.xml and RRT_Train_mapname.xml scenario xml but your customised trains may not show up and may conflict with the global xml files. (as explaned by Dr Frag)

What I do is have one RRT_Trains_my_train_map.xml with all my customizations and I just replace the RRT_TrainCars_mapname.xml with my version. Check there is no tenders in RRT_TrainCars_mapname.xml
Intel Core 2 Quad Q9450 @ 3.0GHz
Windows 7 Ultimate 64bit
XFX NVIDIA nForce 780i SLI Mobo
4GB DR2-1066 (PC-8500)
Geforce GTX 460 graphics card 1024 MB GDDR5

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Sat Apr 28, 2007 1:07 pm

Ok this as an example,this is from Styx. If you remove these the game will crash, not always right away, but eventually.


RRT_TrainCars_Styx:

<RRTTenderCars>
<TenderCar>
<szName>Norris Tender Car</szName>
</TenderCar>
<TenderCar>
<szName>Planet Tender Car</szName>
</TenderCar>
<TenderCar>
<szName>Beuth Tender Car</szName>
</TenderCar>
<TenderCar>
<szName>Patentee Tender Car</szName>
</TenderCar>
</RRTTenderCars>
</RRTTrainCars>

It seems all have the reference to these four TenderCars why?
Image

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

Post by choobacca » Sat Apr 28, 2007 2:49 pm

The Terrain Editor creates the map with those 4 default tender cars. The game as released never used tenders, so they didn't become a problem until Mange's tender mod added them to the game. So in order to add tenders or dual engines to a map, you must

A. Make sure the Tenders/Duals you want to use are in the global RRT_TrainCars.xml.

B. Make sure the Tender/Dual you just added to the RRT_TrainCars.xml is referenced by the engine you want pulling it in RRT_Trains_map.xml. The default global RRT_Trains.xml does not include these references to tenders/duals, so if you want them in a map, you have to add them.

C. Either remove the TenderCars section from your RRT_TrainCars_map.xml, or make sure you add ALL the tender cars/duals you want to use in your RRT_TrainCars_map.xml.

The Tender Cars work just like the Goods Cars in that you have to include all your map uses or none in your RRT_TrainCars_map.xml. I always include the Tender Cars in my RRT_TrainCars_map.xml and have never seen a problem because I always make sure I include all the tenders/duals that my map will use. I like to change attributes of the Tenders that are specific to my map, so I don't like changing the globals just for my map.

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Sat Apr 28, 2007 3:56 pm

Thanks choobacca. :) I went in and removed all the references to TenderCars in my maps TrainCarsXML Wonder how many will stay running? :D
Image

User avatar
HisAlterEgo
Posts: 37
Joined: Mon Apr 23, 2007 4:47 pm
Location: Denver, Colorado

Post by HisAlterEgo » Sat Apr 28, 2007 4:21 pm

I hate to respond as I'm still learning but thought I'd try. If I'm off base or confuse the issue just let me know and I'll take a sideline. I've only messed with the AC4400 Dual by choobacca and the Australia map and gotten it to work. I added all the train info to the global RRT_Trains and the tender info to the global RRT_Traincars.xml. I also added that same info the the RRT_Trains_mapname.xml. In both of those additions there is a reference to the tender car or dual engine. When I played the game there was no dual engine to be seen. Only after I added the tender line to the RRT_Traincar_mapname.xml did it show up. You said above to delete all tender references in the RRT_Traincar_mapname and it should work if the tender is referenced in the global RRT_Traincar file. It is but the dual doesn't show up unless I add it to the RRT_Traincar mapname as well.

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Sat Apr 28, 2007 4:55 pm

HisAlterEgo

This map is one of them i was talking about. I went in with notepad ++ and removed the references to the tendercars, and added my modified Map_trains_XML and got the Duals that I wanted. see the screenshot. If I added the Duals to the TrainCars_Map_Xml I would not see the duals. :lol:
Attachments
aussie_4400_dual.jpg
aussie_4400_dual.jpg (187.45 KiB) Viewed 13170 times
Image

User avatar
HisAlterEgo
Posts: 37
Joined: Mon Apr 23, 2007 4:47 pm
Location: Denver, Colorado

Post by HisAlterEgo » Sat Apr 28, 2007 5:12 pm

Dwax, would it be possible for you to upload or send me your current map_trains xml for me to look at and see how you have it worded? At times this seems easy but then I think about it for a second and it all becomes rocket science. I think I see what you're saying and will try it and get back.

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Sat Apr 28, 2007 5:23 pm

I think this is what you want. It came from: C:\Documents and Settings\Owner\My Documents\My Games\Sid Meier's Railroads!\CustomAssets\XML\_SCENARIOS_\Australia

I can save this as a blank Trains_map_XML and just add it to any map I want to get my Duals. :D Thanks to snoopy and the rest that I won't forget for helping! :)
Attachments
RRT_Trains_Australia.zip
(780 Bytes) Downloaded 426 times
Image

User avatar
Dr Frag
Posts: 348
Joined: Thu Feb 01, 2007 1:06 am
Location: Southern California
Contact:

Post by Dr Frag » Sat Apr 28, 2007 6:13 pm

As choobacca explained it's sort of an all or nothing kinda deal. If you use the Globals for all your Train definitions then you should not have any TenderCars in your Local XML file.

If you want to do a custom Loco + Tender/Dual in a particular map then you would have to put ALL information for that Train+Tender/Dual in your RRT_Trains_<scenarioname>.xml & RRT_TrainCars_<scenarioname>.xml files.

I put all definitions in my Global files and then use simple references in the local files like this.
<Train>
<szName>TAG_NAME_AC4400</szName>
</Train>
<Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
</Train>

Also remember that the XML files that will be used for a particular Scenario are defined in the RRT_Scenario_User_<scenarioname>.xml file. So make sure those references are pointing to the ones you want to use.

DF

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Sat Apr 28, 2007 6:30 pm

I also put the date I wanted them to show up in it too. I like to start with them. :)


<Train>
<szName>TAG_NAME_AC4400_CHAN_A-B</szName>
<Year>1800</Year>
</Train>
<Train>
<szName>TAG_NAME_AC4400_CHAN</szName>
<Year>1800</Year>
</Train>
Image

User avatar
K-class
Posts: 325
Joined: Sat Jan 06, 2007 10:54 pm
Location: New Zealand across from Australia
Contact:

Post by K-class » Sat Apr 28, 2007 7:27 pm

Yep and to sort in the round house go 1799 1798 1797 1796 etc the 1799 will show first. I like order.

Also in Names_ENU.xml (if English) you can customize you train round house name as well.

Code: Select all

<TextKey>
            <Tag>TAG_NAME_GP38_K_DUAL</Tag>
            <Text>Kevs GP38 Dual Freight Mover</Text>
            <Gender>M</Gender>
        </TextKey>
<TextKey>
Intel Core 2 Quad Q9450 @ 3.0GHz
Windows 7 Ultimate 64bit
XFX NVIDIA nForce 780i SLI Mobo
4GB DR2-1066 (PC-8500)
Geforce GTX 460 graphics card 1024 MB GDDR5

User avatar
HisAlterEgo
Posts: 37
Joined: Mon Apr 23, 2007 4:47 pm
Location: Denver, Colorado

Post by HisAlterEgo » Sun Apr 29, 2007 12:06 am

Got your file dwax, thanks. From the looks of it, you just use this master file, change it to the scenario map name and replace the original file that was in a particular scenario and you now have access to all the trains listed for that map as long as those are all listed in your global xml as well?

User avatar
Lowell
Posts: 653
Joined: Sat Mar 24, 2007 2:14 am
Location: Georgia
Contact:

Post by Lowell » Sun Apr 29, 2007 12:14 am

Well...seeing as you have started this thread... :D I have a giant list of every in-game train dueled.

What I need now is the "default list" of trains in the game. Then I can cut/paste a list I can send off to atani, he can make an auto installer. I have so many new trains I can't remember which ones were the first set.

Post Reply