Posted by: gamemastax - Tuesday, May 6, 2003 1:58:35 PM
[color=ffffff]   Ok, I am obsessed with trains in worldbuilder, so I think I'll make a tutorial on them.   [/color]
[quote]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. [b][[url=http://www.boomspeed.com/gamemastax/traintut1.jpg]Screenshot[/url]][/b] 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! [b][[url=http://www.boomspeed.com/gamemastax/traintut2.jpg]Screenshot[/url]][/b] [b]ADVANCED TRAINS:CHANGING THE CARS IN A TRAIN AND MAKING IT GARRISONABLE![/b] 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 [smiling_imp] Open up your favorite text editor (Notepad, Wordpad, etc.) and make a new file. [/quote] Include the following in it: [code] 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 [/code] [quote]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. [/quote] [to be continued when I can get back online. Sorry!] [size=2]Pictures courtesy of CNCDEN.com[/size] [EDIT: Moved to Tutorials forum -- CommieDog]

Posted by: Crazy MoFo - Tuesday, May 6, 2003 3:35:42 PM
good job gamemastax. very nice. although i already knew a lot of this....

Posted by: gamemastax - Tuesday, May 6, 2003 3:43:28 PM
thanks crazy! did you know how to change the carriages and make the trains garrisonable?

Posted by: Crazy MoFo - Tuesday, May 6, 2003 3:47:23 PM
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.

Posted by: gamemastax - Tuesday, May 6, 2003 5:23:07 PM
I taughted myself :-p too bad I haven't taught anyone anything yet...

Posted by: Blaine - Tuesday, May 6, 2003 5:42:31 PM
Id learn if i read it and wanted to make maps... Good job i hope some people get a use out of it.

Posted by: gamemastax - Tuesday, May 6, 2003 5:50:11 PM
thank you!

Posted by: Sagi - Tuesday, May 6, 2003 9:34:19 PM
yes. nice job. :)

Posted by: Manatee 05x - Wednesday, May 7, 2003 2:31:31 AM
Wow, nice little tutorial [smile] I read it even though I don't make maps, and it's really well written! [grin] That's a brilliant little piece of work. Maybe it should be sticky on this forum so everyone always sees it?

Posted by: Crazy MoFo - Wednesday, May 7, 2003 5:23:21 AM
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?

Posted by: gamemastax - Wednesday, May 7, 2003 8:08:54 AM
no don't lock it. I want people to be able to ask questions. Thank you all for the praise!

Posted by: xspyking - Thursday, May 8, 2003 10:44:58 AM
nioce job, i will come back here fi i ever want to feature a train in one of my maps! :)

Posted by: gamemastax - Saturday, May 10, 2003 9:55:16 AM
Mic, can you HTMLize that post up there?

Posted by: incia - Wednesday, May 21, 2003 1:38:38 AM
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.

Posted by: Blbpaws - Saturday, May 24, 2003 10:17:28 AM
yeah WB is annoying sometimes... are u going to finsih ur tutorial or is it done?

Posted by: gamemastax - Saturday, May 24, 2003 4:03:01 PM
I'm gonna finish it... I'm too lazy though.

Posted by: Blbpaws - Saturday, May 31, 2003 5:47:58 AM
oh let us know when u do

Posted by: gamemastax - Saturday, May 31, 2003 1:25:18 PM
I certainly will.

Posted by: Blbpaws - Saturday, May 31, 2003 4:48:23 PM
thanks

Posted by: Tommy - Friday, July 4, 2003 2:54:21 AM
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

Posted by: Firion Corodix - Friday, July 4, 2003 3:22:19 AM
i want tanks in the train. is that possible too?

Posted by: gamemastax - Friday, July 4, 2003 9:26:27 AM
What do you mean?

Posted by: Tommy - Saturday, July 5, 2003 6:27:59 PM
sure its possible, one tank per cart or as many as you want just dont forget the relism factor! I think a cool map would be if there was a lake running across a huge desert blocking off each side and the only way to get across would be to hitch a ride from the train that would travle across the lake and back! gamemastax, wink wink knodge knodge!

Posted by: gamemastax - Saturday, July 5, 2003 7:07:12 PM
lol. I might make a map like that, I dunno.

Posted by: Firion Corodix - Tuesday, July 8, 2003 8:35:13 AM
i could change my map to the mountains remove bridges and put a cliff at the only way to the other side. it already has a train running throw the cliff in tunnels and running outside at the startposses.

Posted by: IKE - Friday, August 8, 2003 11:25:23 PM
hum do you need a programe to make maps or what?? please help me Dan

Posted by: General_Mayhem - Tuesday, September 2, 2003 2:28:04 PM
i am currently making my first map called townvtownfight and your tutorial sorted me right out it cut through the falaffel and got straight to the point regarding building a railway and using the method you described gave me a working railway in under ten minutes nice 1 matey Col General_Mayhem

Posted by: gamemastax - Wednesday, September 3, 2003 6:52:19 AM
Thanks!

Posted by: MegsNewb - Saturday, September 20, 2003 4:13:39 PM
I copy, pasted the file u had and put it into game directory but then the map(team crussade) wouldnt work at all(game crashed every tiem i tried) then i moved it somewhere else in the team crusade map thing and the game worked but trains werent enterable, please help

Posted by: gamemastax - Monday, September 29, 2003 12:37:01 PM
All right, you simply need to ensure that the file is named map.ini, and is saved in the folder where the rest of your maps are. THis would generally be: C:\Documents and Settings\[YOUR USERNAME]\My Documents\Command and Conquer Generals Data\Maps\Team Crussade\

Posted by: Marek - Friday, November 21, 2003 12:44:57 AM
i tried to put a train in but i failed miserablly i had this black square trailing around the screen lol that funny

Posted by: 0loweo - Saturday, December 6, 2003 8:04:17 AM
i want a train map with a bridge that can be blown up! but thats not really possible.

Posted by: Marek - Wednesday, December 10, 2003 4:18:21 AM
how do you make a rain because i keep failing ??? i got the tracks on but no train hmmmpphh i dont know... boohoo i have looked in all the dam

Posted by: Firion Corodix - Sunday, December 14, 2003 2:11:24 AM
you need to put a loco on the rails it's somewhere in the civ stuff.

Posted by: Shad - Saturday, March 6, 2004 1:58:51 PM
You got a track but no train.....make sure you placed the train on or beside the track, also make sure all the waypoints are named "Railroad" unless it's a tunnel or station of course.

Posted by: DFS - Thursday, May 27, 2004 9:12:50 AM
****, i have done all the **** for garrisonable cars, but the game crashes..... help me!gamemastax;;;; deltaforce1337@hotmail.com

Posted by: DFS - Monday, May 31, 2004 4:39:06 AM
the train is garrisonable now but, the train wont stop!! need freaky help dudes!

Posted by: Ben88 - Monday, July 12, 2004 3:16:24 PM
Thanks for putting up this tutorial gamemastax, helped me alot.

Posted by: gamemastax - Saturday, April 30, 2005 7:06:39 PM
Haven't touched WB for months, and this topic is as good as dead. But thanks to everyone who thanked me, that's all I wanted to say.

Posted by: CG Apollos - Tuesday, May 17, 2005 12:45:44 PM
[quote=IKE] hum do you need a programe to make maps or what?? please help me Dan [/quote] Yes, you do. You can find it by going to the explorer, program files, than EA Games than Command and Conquer Generals or Command and Conquer Generals Zero Hour(whichever you have). Or if you installed it somewhere else than I cant help you. C:\Program Files\EA GAMES\Command and Conquer Generals C:\Program Files\EA GAMES\Command & Conquer Generals Zero Hour Or just copy and paste these in your explorer(much easier). [+1] AuroraAlphaHL2 [grin]

Posted by: RedBolt - Friday, November 4, 2005 2:19:14 PM
[quote=AuroraAlphaHL2] [quote=IKE] hum do you need a programe to make maps or what?? please help me Dan [/quote] Yes, you do. You can find it by going to the explorer, program files, than EA Games than Command and Conquer Generals or Command and Conquer Generals Zero Hour(whichever you have). Or if you installed it somewhere else than I cant help you. C:\Program Files\EA GAMES\Command and Conquer Generals C:\Program Files\EA GAMES\Command & Conquer Generals Zero Hour Or just copy and paste these in your explorer(much easier). [+1] AuroraAlphaHL2 [grin] [/quote] He's talking about WorldBuilder by the way[wink]

Posted by: CommieDog - Friday, November 4, 2005 10:31:10 PM
Quit necroposting.

Posted by: Lengo - Tuesday, March 13, 2012 4:10:29 AM
Wrong! The code to define the engine lacks the definition of the train's Engine sound. The code for Object TrainEngineVerySlow should include this line: [code] RunningSound = TrainRunningLoop [/code] Without it, the train has no engine noise. RunningSound becomes undefined and the sound is terribly lacking. You should also create a script under PlyrCivilian, in a folder named 'choo-choo', and name the script 'WhistleVolume'. In it, create this: [code] [ns A] choo-choo [ns A D]WhistleVolume *** IF *** True. *** THEN *** Sound 'TrainWhistle' play at 100.00% of full volume. [/code] If you don't, the train's whistle sounds weak, and if you've ever been next to a train when it sounds it's horn, you know it's ear splitting! Without this code, the whistle is wimpy! VERY WIMPY! You can create this script by 1. Create a new folder under plyrCivilian and name it 'choo-choo' 2. Create a new script. Name it 'WhistleVolume' 3. Leave the condition value at the default. 'IF TRUE' 4. Go to the Actions if True tab. 5. Select the default Null action, then click the Edit button. 6. Find the Multimedia section, then select 'Sound Event -- override volume -- type' 7. Change the parameters to TrainWhistle and 100.0 8. Click Okay 9. Export the script with the name 'train whistle volume.scb' so that you can re-use it. 10. Click Okay You are done. You are complete! Without the line RunningSound = TrainRunningLoop your train engine doesn't chug! It sounds wimpy. And without setting the whistle's volume to 100%, the whistle is wimpy too (it still is, and you really need to pull the wav file out of Audio.big in the Generals folder, edit the wav file by raising it's amplitude (volume) by at least 2 dB, then replacing the sound file in audio.big by resinserting it).