Diesel Mod.

Develop, share and download custom trains and rolling stock
User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Mon Mar 19, 2007 8:23 pm

Changing the global RRT_TrainCars.xml made me CTD I opend up another map and it just CTD So I had a back up and put it in the global files and it loads now. :shock:
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 » Tue Mar 20, 2007 3:02 am

I think the CTD may more to do with which map as I tried on Europe and Italy and was fine.

Prob the way some of the maps may have referance to various things and all i did was add to bottom of the global file and as i said no issue.

Help Atani!!!!!!!!
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
K-class
Posts: 325
Joined: Sat Jan 06, 2007 10:54 pm
Location: New Zealand across from Australia
Contact:

Post by K-class » Sat Mar 24, 2007 10:59 pm

Ok if you like Diesel trains and double train in a map I have got this to work ok in most of the maps.

1. run the map installer - installs all the right bits.

2. All you do is edit the RRT_Trains_<mapname>.xml file.

You dont need to touch the RRT_TrainCars_<mapname>.xml file. There should be no tenders in this map file otherwise the tender mod does not work.

Here is pic of the GP7, AC4400 and Santa Fee train in the Island Chain map by Choo-Choo
Attachments
RRT_Trains_mapname.rar
This is the RRT_Trains_&lt;mapname&gt;.xml file that I rename as the map train file. Only has the above three trains starting at year 1800 and no steam trains you can just copy and past that into your existing RRT_Trains_&lt;mapname&gt;.xml file to get m
(430 Bytes) Downloaded 501 times
3 doubled headed trains-1.jpg
3 doubled headed trains-1.jpg (250.63 KiB) Viewed 14119 times
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 » Sun Mar 25, 2007 12:52 am

That mod never worked for me K-class, all it did was crash me to the desktop. :( might be because I don't have the GP38 doubled, just the GP7 and the AC4400. never figured out how to double the GP38 without a CTD. :(

I looked at the XML its pretty straight forward,don't understand why it wont work for me.
Image

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

Post by dwax » Sun Mar 25, 2007 4:38 am

Whats strange K-class, after using the mod you posted after I changed itback to the old one, I no longer have the AC4400 doubled anymore. :shock: I tried and tried with no luck, its just a single now. :(
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 » Sun Mar 25, 2007 6:06 am

Ok where are your files? are they in the standard place on c:\

the AC4400.FPK is this in the My Documents\My Games\Sid Meier's Railroads!\CustomAssets

Another issue I think is time stamps reopen and save the file again.

I am using XML marker to edit these files. http://symbolclick.com/

These are not mods I have done, I have just followed on from the global files and the installers have done on other maps.

The example below (renamed to the map train name) RRT_Trains_Hawaii.xml is the same I use for side by side, Italy, Australia and no issues, double check and triple check no missing code etc.

Remember the double train they get by using the tender mod and have called in this example below <szTenderCar>GP7Dummy</szTenderCar>

Make sure on your map you have no tender car reference in RRT_TrainCars_Hawaii.xml (example)

Do not cut and copy this code below you will get xml errors

see the attached files

Code: Select all

<RRTTrainCars><RRTGoodCars><TrainCar><szName>Manufactured Goods Car</szName></TrainCar><TrainCar><szName>Medicine Car</szName></TrainCar><TrainCar><szName>Produce Car</szName></TrainCar><TrainCar><szName>Auto Car</szName></TrainCar><TrainCar><szName>Corn Car</szName></TrainCar><TrainCar><szName>Food Car</szName></TrainCar><TrainCar><szName>Gold Car</szName></TrainCar><TrainCar><szName>Grain Car</szName></TrainCar><TrainCar><szName>Mail Car</szName></TrainCar><TrainCar><szName>Passenger Car</szName></TrainCar><TrainCar><szName>Textile Car</szName></TrainCar><TrainCar><szName>Coal Car</szName></TrainCar><TrainCar><szName>Oil Car</szName></TrainCar><TrainCar><szName>Paper Car</szName></TrainCar><TrainCar><szName>Steel Car</szName></TrainCar><TrainCar><szName>Wood Car</szName></TrainCar><TrainCar><szName>Livestock Car</szName></TrainCar><TrainCar><szName>Ore Car</szName></TrainCar><TrainCar><szName>Wool Car</szName></TrainCar><TrainCar><szName>Fish Car</szName></TrainCar><TrainCar><szName>Nitrates Car</szName></TrainCar><TrainCar><szName>Cask Car</szName></TrainCar></RRTGoodCars></RRTTrainCars>
RRT_Trains_Hawaii.xml (example)

Code: Select all

<RRTTrains>
<Train>
        <szName>TAG_NAME_GP7</szName>
        <Year>1800</Year>
        <szManufacturerName>EMD</szManufacturerName>
        <szModel>EMD_GP7.kfm</szModel>
        <szDummyModel>EMD_GP7_Dummies.nif</szDummyModel>
        <szTenderCar>GP7Dummy</szTenderCar>
       <szCar>_v2</szCar>
      <MaxSpeed>9</MaxSpeed>
      <Speed0>9</Speed0>
      <Power>20</Power>
      <Cost>350000</Cost>
      <MaintenanceCost>4000</MaintenanceCost>
    </Train>
<Train>
      <szName>TAG_NAME_AC4400_DUAL</szName>
      <Year>1800</Year>
      <szModel>GE_AC4400.kfm</szModel>
      <szDummyModel>GE_AC4400_dummies.nif</szDummyModel>
      <szTenderCar>AC4400Dummy</szTenderCar>
      <szCar>_v2</szCar>
      <MaxSpeed>9</MaxSpeed>
      <Speed0>9</Speed0>
      <Power>20</Power>
      <Cost>350000</Cost>
      <MaintenanceCost>4000</MaintenanceCost>
  </Train>
<Train>
        <szName>TAG_NAME_GP38_DUAL</szName>
        <Year>1800</Year>
        <szModel>santafeblue_GP38_2.kfm</szModel>
        <szDummyModel>santafeblue_GP38_2_Dummies.nif</szDummyModel>
        <szTenderCar>GP38Dummy</szTenderCar>
        <szCar>_v2</szCar>
        <MaxSpeed>9</MaxSpeed>
        <Speed0>9</Speed0>
        <Power>20</Power>
        <Cost>350000</Cost>
        <MaintenanceCost>4000</MaintenanceCost>
    </Train>
</RRTTrains>
:D
Attachments
Hawaii.rar
(699 Bytes) Downloaded 503 times
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 » Sun Mar 25, 2007 3:08 pm

All my files are in where you said, in my documents. As far as I can see there is no mention of the trains in the train cars XML. I'm using the Hawaii map to try this. when I use the file I lose all my doubles, it reverts them back to just single engines. :shock:
Image

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

Post by dwax » Sun Mar 25, 2007 3:24 pm

just tried the new rar file you put up, and the same thing happened had a CTD. Maybe we can get Snoopy55 to look at this?? Or maybe Choo-Choo can incorporate it into a separate version. :D I would love to have a map where we had just those three doubles. :D
Image

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

Post by snoopy55 » Sun Mar 25, 2007 5:33 pm

dwax - first a little research. If you are using GLOBALS, go into the RRT_TrainCars.xml and at the bottom verify that you have all the Dummies and/of B Units you are wanting. If not, you need to find the map installers they are in and install them. I'm not sure if the Engine Installers have them or not, but I trust someone with the answer will speak up.

Second, go into RRT_Trains.xml and see what you have in there, probally at the bottom. The engine name should specify if it's dual or not. The superchief does not, and neither does the GP7 I have in my XML. Green note tags need to be put on these. The GP7 is a dual, I think, as it has <szTenderCar>GP7Dummy</szTenderCar> as the last line. Now, without the 'GP7Dummy' Tender car, you probally get the devistating CTD :twisted:

Now a little house cleaning. Go thru all the maps you have loaded and open the RRT_TrainCars_xxxxx.xml files and delete everything between (and including) <RRTTenderCars> and </RRTTenderCars>. (I think we need to go thru all the Installers and remove this from them.)

After that, see what happens and we'll go from there.
I'm correct 97% of the time..... who cares about the other 4%....

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

Post by dwax » Sun Mar 25, 2007 5:54 pm

i looked through all the files, all looked OK except maybe the Global trainsXML I only had one dummy car in it. It was the AC4400. Without the GP38 and the GP7 not showing the dummy car anm e trying to use them as doubles in a map would cause a CTD?? Heres the Global trains XML maybe you can see if it's right. :)
Attachments
RRT_Trains.zip
(5.1 KiB) Downloaded 481 times
Image

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

Post by dwax » Sun Mar 25, 2007 6:10 pm

Ok, the dummy I am... :lol: I took K-class code and added it to my GlobalTrainsXML and now I have the 3 doubles only in that map! :) I hope I didn't flub up the rest of my maps. :shock: :lol: this is what I added to both Global.... And Map Traincars XML's.

<RRTTrains>
<Train>
<szName>TAG_NAME_GP7</szName>
<Year>1800</Year>
<szManufacturerName>EMD</szManufacturerName>
<szModel>EMD_GP7.kfm</szModel>
<szDummyModel>EMD_GP7_Dummies.nif</szDummyModel>
<szTenderCar>GP7Dummy</szTenderCar>
<szCar>_v2</szCar>
<MaxSpeed>9</MaxSpeed>
<Speed0>9</Speed0>
<Power>20</Power>
<Cost>350000</Cost>
<MaintenanceCost>4000</MaintenanceCost>
</Train>
<Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
<Year>1800</Year>
<szModel>GE_AC4400.kfm</szModel>
<szDummyModel>GE_AC4400_dummies.nif</szDummyModel>
<szTenderCar>AC4400Dummy</szTenderCar>
<szCar>_v2</szCar>
<MaxSpeed>9</MaxSpeed>
<Speed0>9</Speed0>
<Power>20</Power>
<Cost>350000</Cost>
<MaintenanceCost>4000</MaintenanceCost>
</Train>
<Train>
<szName>TAG_NAME_GP38_DUAL</szName>
<Year>1800</Year>
<szModel>santafeblue_GP38_2.kfm</szModel>
<szDummyModel>santafeblue_GP38_2_Dummies.nif</szDummyModel>
<szTenderCar>GP38Dummy</szTenderCar>
<szCar>_v2</szCar>
<MaxSpeed>9</MaxSpeed>
<Speed0>9</Speed0>
<Power>20</Power>
<Cost>350000</Cost>
<MaintenanceCost>4000</MaintenanceCost>
</Train>
</RRTTrains>
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 » Sun Mar 25, 2007 6:12 pm

Thanks snoopy55 for this as it should be all working for dwax

I have only run all the map installers and the train installers. as detailed in this post: http://hookedforums.com/a/viewtopic.php?p=15505#15505

These files below are my global files - the installers do work

Also I see in you file you have this twice the GP38

Code: Select all

<szName>TAG_NAME_GP38_DUAL</szName>
Note all my trains have a tag

Code: Select all

<Year>1800</Year>
so they show up at the start of the map. I prefer having these instead of the early steam trains.
Attachments
XML.rar
My global files My Documents\My Games\Sid Meier's Railroads!\CustomAssets\XML
(7.15 KiB) Downloaded 482 times
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 » Sun Mar 25, 2007 6:19 pm

That never worked :lol: I have the trains... but they are not doubled. :shock:
Image

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

Post by snoopy55 » Sun Mar 25, 2007 6:23 pm

This file is fine. If you look at the last couple of lines of GP7 and you'll see this:

Code: Select all

        <szSlightAngleSound>AS3D_CURVE_SQUEAL_LIGHT</szSlightAngleSound>
        <szTenderCar>GP7Dummy</szTenderCar>
    </Train>
The GP38 has this half way thru:

Code: Select all

        <iPitchChange>2000</iPitchChange>
        <szTenderCar>GP38Dummy</szTenderCar>
        <BitmapIcon>
            <szFile>Assets/Interface/TrainRouting/routing_GP38.tga</szFile>
        </BitmapIcon>
In you RRT_TrainCars.XML you MUST find those 2 dummy cars, and any others listed in RRTTrains.xml Do a search in RRTTrains.xml for ,szTenderCar>, with the courser at the biginning of the Holiday Special. list them, and then be sure they are in the RRTTrainCars.xml. Then you only have to make sure the engines are in the map.

One more thing I just realized, and I thank you, the Names XML needs to be left in the XML folder, at least the one you use. (ENU, ITA, FRA,etc). For roundhouse ID, go in there and search for GP7. Where it says <Text>EMD GP7</Text>, add ' Dual' to it. Someone else will have to chime in if this will get changed back by any installers.

Go to it boy :!: , get confused :arrow: :shock:
I'm correct 97% of the time..... who cares about the other 4%....

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

Post by dwax » Sun Mar 25, 2007 6:28 pm

Yes ths is giving me an ulcer :lol: Think I will just leave it alone. Cant figure it out. :lol:
Image

Post Reply