Page 1 of 3

Diesel Mod - AC4400 Release

Posted: Sat Mar 24, 2007 3:24 am
by choobacca
Those of you who were watching the "Diesel Mod" topic closely were probably eagerly awaiting Eilelwen's and OzoB's creation of the AC4400 6-axle engine.

Well wait no more. Eilelwen was kind enough to send me the files for this train, so I have packaged it along with 5 skins into an installer.

But after you've installed the engine, there is still a little work for you to do to get the engine in your maps. If you are brave enough to modify the map's XML files, then you will need to make the following additions for the AC4400 to show up in the map. Otherwise, use the Sid Meier's Railroads! Scenario Manager v2.0.

*********************
In order to add this train to your maps, you will need to add the following XML reference to the map's RRT_Trains_<mapname>.xml:
*********************
<Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
<Year>1994</Year>
<MaxSpeed>12</MaxSpeed>
<Speed0>15</Speed0>
<Power>32</Power>
<Cost>450000</Cost>
<MaintenanceCost>8000</MaintenanceCost>
<szTenderCar>AC4400Dummy</szTenderCar>
</Train>


That's it. There is a Readme file in the ZIP that explains more.

Edit 3/25/2007: v1.1 fixes the Uninstaller from deleting everything in CustomAssets. Updated the Readme file and installation instructions.

Posted: Sat Mar 24, 2007 3:34 am
by dwax
Sweet choobacca!! :D Thanks for putting it togeather, and thanks to Eilelwen's and OzoB! :)

Posted: Sat Mar 24, 2007 4:04 am
by dwax
*********************
In order to add this train to your maps, you will need to add the following XML reference to the map's RRT_Trains_<mapname>.xml:
*********************
<Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
</Train>

*********************
and add the following XML reference to the map's RRT_TrainCars_<mapname>.xml in the TenderCar section.
*********************
<TenderCar>
<szName>AC4400Dummy</szName>
</TenderCar>

I tried that and crashed to the desktop. :( what is wrong ?

Posted: Sat Mar 24, 2007 4:11 am
by K-class
Thanks so much but does not work for me.

On several posts here we have established you do not need to add to RRT_TrainCars_<mapname>.xml file.

If you do the tenders mod does not work.

All the tender cars are done in the global RRT_TrainCars.xml

I will keep playing.

But to get the Santa Fee train from the basin and range map to work I added this to the map's RRT_Trains_<mapname>.xml

example of what I did to get dual trains in another map

Code: Select all

<Train>
      <szName>TAG_NAME_GP38_DUAL</szName>
      <Year>1965</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>
I presume I need to do this to a RRT_Trains_<mapname>.xml to get this mod to work. :D

Posted: Sat Mar 24, 2007 4:15 am
by dwax
I did some playing on the "All trains XML and got it in the map :) here is what I added.


<Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
<Year>1800</Year>
</Train>

Posted: Sat Mar 24, 2007 4:21 am
by dwax
they are sweet! :) For some reason when you go to change the color only one changes, but I can live with that, I got a new engine! :lol:

Posted: Sat Mar 24, 2007 4:22 am
by K-class
Ok now working ok in demo map side to side. :D

ignore the install txt file

1. Run the installer

2. All you do is add the below code to in your map, that is to the map's RRT_Trains_<mapname>.xml

Code: Select all

<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> 
Note above I used the settings in the demo and range TAG_NAME_GP38_DUAL settings just to see if the code works, teain diff colous at the moment

Posted: Sat Mar 24, 2007 4:32 am
by K-class
:D what a hot topic.

Thanks dwak - I can see what you sort of done.

The 1800 so it shows up at the beginning of a map - cool great feature mod that should be in the wiki if not so already.

If I just add this I dont get the second train as you need to add the dummy.

Code: Select all

 <Train>
<szName>TAG_NAME_AC4400_DUAL</szName>
<Year>1800</Year>
</Train>
The guys are using tender car code as second trains

This is the second train that needs to be added.

Code: Select all

<szTenderCar>AC4400Dummy</szTenderCar>

Posted: Sat Mar 24, 2007 4:57 am
by dwax
K-class said:

Code: Select all

The 1800 so it shows up at the beginning of a map - cool great feature mod that should be in the wiki if not so already. 
Snoopy55 gets that credit. he showed me how it was done, esp in the all trains XML. :)

Posted: Sat Mar 24, 2007 5:48 am
by stormfather
Awesome work, this made my day.

Posted: Sat Mar 24, 2007 5:56 am
by K-class
Yep we owe Snoopy55 a lot and others on this forum for maps and global xml's and installers. we bow to you all.

I just poked in the fpk to have a quick look and can see I think where the blue is.

If you look at the likes of ge_ac4400_nmrl.dds to ge_ac4400_nmrl_v4.dds are blue

I don't know if this intentional and will wait and see what choobacca says.

One black one blue still a good combo and at least we have a new train.

--------------------------------------------------------------

Great stuff I can now get three double headed trains in the maps I have tried.

Posted: Sat Mar 24, 2007 6:16 am
by Dr Frag
Well the installer tried putting it in the right place but because I have a non-standard install dir I got this.
Image
It put the Global name files in & the FPK though.
So I just reinstalled and let it put it in the default location and I managed the files manually.

Posted: Sat Mar 24, 2007 6:59 am
by atani
Dr Frag wrote:Well the installer tried putting it in the right place but because I have a non-standard install dir I got this.
This doesnt look good.... Looks like something went wrong in the installer macros.

choobaca, can you email me the installer script or post it online someplace I can download it? I would like to debug this a bit further...

Mike

Posted: Sat Mar 24, 2007 11:03 pm
by K-class
Got it to work no probs the installer works if you have everything in the standard place on c:\ drive.

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

GP7, AC4400 and Santa Fee train in the Island Chain map by Choo-Choo

http://hookedforums.com/a/viewtopic.php?p=15505#15505

Posted: Sat Mar 24, 2007 11:08 pm
by CeeBee51
Doesn't work for me and I think it's because the installer didn't create a folder in the custom assets/train folder so it's missing the event_newtrain.dds and the routing.tga. Thats the only thing I can think of why it's not working as I believe I added the proper code to both the train and traincar xml's for the map I tried it on.