gamemastax
22 years ago


  Ok, I am obsessed with trains in worldbuilder, so I think I'll make a tutorial on them.  



First off, to make a train, lay down the tracks. if you want it to go through a tunnel in a hill, make the tracks first, then delete them later; it looks a lot better. Tight curves are very bad... the train will look real messed up as it goes around the curve.

Secondly, make waypoints following the track EXACTLY. Around a curve, you should have at least 3 waypoints, I usually use 7. And make sure that you are modeling a waypath; that is, make sure that you are dragging from waypoint to waypoint and not just making waypoints. Make sure that when you finish following the tracks you connect the last waypoint to the first again, making a loop.
[Screenshot ]
Next, place the train on the map, next to or on top of the waypoint path. Placing an engine will make there be cars behind it as well, so don't worry about them for now. Just place the engine.

Now, click on one of the waypoints in your waypath, and down where there are three boxes with the words 'waypoint path label' above them, type "Railroad" in the box, without the quotes.

Also, to make the train stop at a certain area for a certain period of time, Label the waypoint [waypoint name]Station. Replace [waypoint name] with anything you want. The default name for a waypoint is Waypoint [Number] (i.e. Waypoint 146).

To make the train go through a tunnel, first you should make sure there is a waypoint in the waypoint path right in front of the tunnel.
Label it [waypoint name]Tunnel (i.e. Railroad183Tunnel). This will make the train stay at the altitude it is at until you have a point not labeled with Tunnel. Make sure all waypoints underground have the word "Tunnel" at the end of their names, unless you want the train popping up from the ground!
[Screenshot ]

ADVANCED TRAINS:CHANGING THE CARS IN A TRAIN AND MAKING IT GARRISONABLE!

This is for you advanced people who want to be able to put troops in the cars of trains and make them go in the train to the enemy base 😈

Open up your favorite text editor (Notepad, Wordpad, etc.) and make a new file.



Include the following in it:


Object TrainEngineVerySlow  

   
  ReplaceModule    ModuleTag_03
    Behavior     = RailroadBehavior ModuleTag_03_Override
    PathPrefixName    = Railroad
    
    RunningGarrisonSpeedMax = 8
    KillSpeedMin            = 9
    Friction                = 0.995
    BigMetalBounceSound     = BuildingFallingMetal
    SmallMetalBounceSound   = VehicleImpactHeavy
    MeatyBounceSound        = InfantryCrush
    ClicketyClackSound      = TrainClicketyClack
    WhistleSound            = TrainWhistle
   

    IsLocomotive         = Yes
    SpeedMax             = 8.0
    Acceleration         = 1.005
    WaitAtStationTime    = 20000     ; twenty seconds
    Braking              = 0.97
    CrashFXTemplateName  = SpecialEffectsTrainCrashObject


  
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCarFlat
    CarriageTemplateName = TrainCarRocket
    CarriageTemplateName = TrainCarFlat
    CarriageTemplateName = TrainCarFlat
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCar03
    CarriageTemplateName = TrainCab
    End
  End
End


Object TrainCar03
 
   ReplaceModule   ModuleTag_02
    Body            = ActiveBody ModuleTag_02_Override
    MaxHealth       = 10000.0
    InitialHealth   = 10000.0
    End
  End

  AddModule   ModuleTag_03_Override
    Behavior = GarrisonContain ModuleTag_03
    ContainMax          = 10
    AllowInsideKindOf   = INFANTRY VEHICLE
    EnterSound          = GarrisonEnter
    ExitSound           = GarrisonExit
    DamagePercentToUnits = 50%
    MobileGarrison      = Yes
    
    End
  End

  ReplaceModule       ModuleTag_04
   Behavior        = RailroadBehavior ModuleTag_04_Override
    IsLocomotive   = No
    PathPrefixName    = Railroad

  
    RunningGarrisonSpeedMax = 8
    KillSpeedMin            = 9
    Friction                = 0.995
    BigMetalBounceSound     = BuildingFallingMetal
    SmallMetalBounceSound   = VehicleImpactHeavy
    MeatyBounceSound        = InfantryCrush
    ClicketyClackSound      = TrainClicketyClack
    End
  End
  
End


Object TrainCab

  ReplaceModule   ModuleTag_02
    Body            = ActiveBody ModuleTag_02_Override
    MaxHealth       = 10000.0
    InitialHealth   = 10000.0
    End
  End


 AddModule   ModuleTag_03_Override
    Behavior = GarrisonContain ModuleTag_03
    ContainMax          = 10
    EnterSound          = GarrisonEnter
    ExitSound           = GarrisonExit
    DamagePercentToUnits = 50%
    MobileGarrison      = Yes
    End
  End
 ReplaceModule      ModuleTag_04
   Behavior        = RailroadBehavior ModuleTag_04_Override
    IsLocomotive   = No
    PathPrefixName    = Railroad

    RunningGarrisonSpeedMax = 8
    KillSpeedMin            = 9
    Friction                = 0.995
    BigMetalBounceSound     = BuildingFallingMetal
    SmallMetalBounceSound   = VehicleImpactHeavy
    MeatyBounceSound        = InfantryCrush
    ClicketyClackSound      = TrainClicketyClack
     End
  End
End


Save the file as map.ini in the directory where your map is (My Documents\Command and Conquer Generals Data\Maps\[yourmap]\map.ini). If you place the object TrainVerySlow on the map, it will be not slow, it will have a bunch of cars on it (versus the rocket it usually has), and it will be able to garrison troops and vehicles in its cars.

Ok, some of this may seem pretty obvious (ClicketyClackSound), but some of it may be one of those things you think "What the hell is that for?" So, I'll explain as much as I can right now.



[to be continued when I can get back online. Sorry!]

Pictures courtesy of CNCDEN.com

[EDIT: Moved to Tutorials forum -- CommieDog]
Sponsor
Crazy MoFo
22 years ago
good job gamemastax. very nice. although i already knew a lot of this....
gamemastax
22 years ago
thanks crazy!

did you know how to change the carriages and make the trains garrisonable?
Crazy MoFo
22 years ago
yeah, but i didnt learn it myself. i found a post explaining how to do it the deezire forums. i learned quite a bit there.... lots of flamers tho.
gamemastax
22 years ago
I taughted myself :-p

too bad I haven't taught anyone anything yet...
Blaine
  • Blaine
  • 64.25% (Friendly)
  • Colonel
22 years ago
Id learn if i read it and wanted to make maps... Good job i hope some people get a use out of it.
UserPostedImageSend Blaine an emailView Blaine's Profile
gamemastax
22 years ago
Sagi
  • Sagi
  • 100% (Exalted)
  • General
22 years ago
yes. nice job. 🙂
UserPostedImage 
Sagi.
Manatee 05x
22 years ago
Wow, nice little tutorial 😄 I read it even though I don't make maps, and it's really well written! 😁 That's a brilliant little piece of work. Maybe it should be sticky on this forum so everyone always sees it?
[Insert bandwidth hungry gif here.]
Crazy MoFo
22 years ago
that's a good idea....
*looks for little icon that allows him to make the topic sticky*
it has been done... now should i lock the topic too?
gamemastax
22 years ago
no don't lock it. I want people to be able to ask questions.

Thank you all for the praise!
xspyking
22 years ago
nioce job, i will come back here fi i ever want to feature a train in one of my maps! 🙂
I wanted to send you somthing sexy...good-looking...attractive...but then, the postman told me to get out of his damn box!
gamemastax
22 years ago
Mic, can you HTMLize that post up there?
incia
  • incia
  • 100% (Exalted)
  • Commander in Chief
22 years ago
i think the map editors should be alot easier, that you could just place a tunnel and then write that the train goes in to it. And not this complicated. I can't even do a skirmish map, and still i can't download eny tutorials.
Blbpaws
  • Blbpaws
  • 100% (Exalted)
  • Administrator
22 years ago
yeah WB is annoying sometimes...

are u going to finsih ur tutorial or is it done?
UserPostedImage
gamemastax
22 years ago
I'm gonna finish it... I'm too lazy though.
Blbpaws
  • Blbpaws
  • 100% (Exalted)
  • Administrator
22 years ago
oh let us know when u do
UserPostedImage
gamemastax
22 years ago
I certainly will.
Blbpaws
  • Blbpaws
  • 100% (Exalted)
  • Administrator
22 years ago
Tommy
  • Tommy
  • 51.5% (Neutral)
  • Captain
22 years ago
nice work gamemastax! i have a neat look train buzzing around my neat looking dam thanks to you!
Hope you can finish this tutorial so i can get some guys in the train but no rush!
Seya
"Ahhh, the sweet smell of anthrax in the morning"