Rempit2502
18 years ago

Thanks for the dam tutorial.The map Heartland Shield is now have a working dam,which sinks the residential area when destroyed.But how do I make a garrisonable train?I have paste the code on ini file in the map Alpine Assault but it wont work.
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Sponsor
U-W-SAtomicarmy
18 years ago
Is it ok if you can send the file to me, so I can see what the problem is?
Don't look at the light!!!
Me Myself and Pi
18 years ago
It would be better to just upload the file here so that we all could look at it. After clicking on "Replay to topic" You'll see just under the place where you type your text, "Insert a File". Just click on it, browse for the INI file, then upload. If it won't let you upload it, then put it in a ZIP folder & then upload.
Rempit2502
18 years ago
Thanks.But e-mail that map back to me either at www.Nazham@Yahoo.com.my or Rempit2502@hotmail.com
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
fleetatks
18 years ago
To make a train garrisonable, disregard the tutorial. I made a post a long time ago that said how to do it, but I'll just retype by what I know. First use the "TrainEngine" Vehicle as your train. This has no traincars automatically behind it and you can place your own. Next put some traincars behind it that can be garrisoned such as "TrainCar04" and "TrainCab."

Using the 'Making a Train' tutorial place the waypoints you need and be sure to use the 'Tunnel' attachment for bridges and tunnels. When you want the train to stop, name the waypoint where it begins braking as "Waypoint ###Station" Where # indicate a random number such as 129 or 15. The train takes about 5X the length of the engine to come to a full stop so be sure there is plenty of room. Notes: You should make the train cars stronger or indestructable because they are very weak. Make sure the players know they can use the train at the beginning of the map so it is fair. Make the map border big so the train can go way out and the passangers can't reveal hidden terrain as the train travels.
Email me if you ever need help (edited signature November 6th, 2014)
Rempit2502
18 years ago
Got it,Fleetatks.Now have a garrison-able train.The question is,can you teach me how to make train fall from a destroyed bridge into a lake?The same map have railroad bridge which can be destroyed.But,instead of falling,the train flies of the bridge,making some sort of "magical train".

Download Attachment: UserPostedImage Alpine Assault.zip 
285.52 KB
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Sky Demon
18 years ago
Yeah i know just what you mean. I had & have the same problem.

It's because the ZH engine is pretty dumb really. The train only has the logic to follow the waypoint and as it has the logic to remain at it's current height when going over a bridge/tunnel.So it will just simply follow the waypoint over the bridge wether its blown to bits or intact😞.

Please, Fleetatks or someone tell us how to make the train fall off when the Bridge gets blown😎
fleetatks
18 years ago
You can probably give the illusion of a train falling and exploding by use of:
An area(polygon tool) at the location where you want the train to die.
Some waypoints at locations for special effects (such as napalm firestorms)
A script to tell the game to kill the train and the bridge when the train is in the area.
& seperate scripts for special FX like creating firestorms and playing burning noises.
Email me if you ever need help (edited signature November 6th, 2014)
Rempit2502
18 years ago
I agree with you,Sky Demon.I like to see a train fall into a lake just like the one we saw at the ending of the China mission 6 in Generals ,except the train was longer.
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
This is pretty tough & best done in a cut scene. Though I have had success with doing this in a skirmish/multiplayer map.

What you see in the cut scene in the 6th mission of the China campaign for Generals, is really just a totally different object. What it is, is train bridge that has a train a little ways from the bridge. Both the train bridge & the train are part of the object. The object is called, SpecialAffectsTrainCrashObject located in the System folder for the Civilian faction. If you place this object on a map, you'll see a train just sitting aways from it. When the train bridge has lost all it's hit points, then the train starts moving, the bridge brakes down, & the train falls.
There are other objects like this bridge. The bridge that blows up with all the china tank on it is basically the same. When all it's hit points are gone, chinese tanks spawn on it & drive along it for awhile. Then suddenly, the bridge starts blowing with all but a few units making it across. Then the remaining units just disappear. Other examples are like the satellite in the 5th USA mission in Zero Hour, or the air show raptors in 2nd USA mission or 3rd GLA mission. These objects, however, have to be activated through a command button ability, not getting destroyed. To learn how to use these objects, exirement with them in new map. You can also check out how EA Games did it in their missions.

To use the train bridge right, place this bridge over some water because when the train falls splashes come from the impact. This wouldn't look to good over dry ground. You'll have to use trial & error to get the bridge at the right height so that the train stops falling when it hits the floor. (If you put the bridge to low, the train will fall right through the ground. If it's to high, the train will stop falling before hitting the water.) But don't have the bridge to high because for this to look good, the train tracks need to come out of a tunnel. Have this tunnel close enough so that the motionless train is covered up in a mountain. Either that or you could put the bridge close to the border of the map to cover it up.

Now you'll need to do some scripting because the original train will get in the way. You can just create a script to delete the train the moment the bridge is destroyed, but that wouldn't look to good if a player was looking at the train right when it happened. Though if you don't mind that, you need not read this paragragh further. You'll need to place some trigger areas so that after the bridge is destroyed, the train will get deleted off the border, or in the tunnel before the bridge.

Looking at the map I did this on, it looks like you have to make the bridge selectable through a script. I kind-of remember not being able to target the bridge with the default settings. Not even by checking, Selectable, in the Object Properties window.

To sum this all up, I've upload the map I made a long time ago that has this done, but then decided not publish it because map way to big! Check out the scripts I made for it. The map has a few other features too that you might be interested in.

Download Attachment: UserPostedImage The Map.zip 
491.17 KB

This would all be easier in a cut scene because then you can put the normal bridge in any place on the map. You wouldn't need it next to the border or a tunnel. Then at the start of the scene, the normal train would be deleted & the SpecialAffectsTrainCrashObject could just be spawned & then killed.
Rempit2502
18 years ago
It's hard for that,Me Myself And Pi,I once copied the scripts in the map Showdown,but, the thing that happen was the script warns me that the Counter/Timer for B1 Bridge and B1 Train Falling doesn't exists.Even worst,when the bridge is destroyed,the sounds it produces came out,as it supposed to came out when the train arrives and enters the bridge,and also,the train still goes like a "magical train".Can you post those scripts to me,so others who want a train fall from a bridge can see it?Also,give an step-by-step instruction on how to do it.😁
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
I'm confused on what you want me to do Rempit. Do you want me to give you step by step instructions on how to make the train fall along with the scripts I used in the map I uploaded?
Rempit2502
18 years ago
Yes I do!!Or else the train wont fall.
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
Okay, here are the steps:

1) Click here to download the scripts. 
2) Import the scripts into your map. The bridge, train, & trigger area will also be placed on the map in the lower left corner.
3) Adjust the bridge for your map but make sure the still train is off the map or in a tunnel. If you hide the train in the tunnel, be sure to put the trigger area on right before the exit tunnel.
Rempit2502
18 years ago
Wait a minute!There's something I want to concern about.As you know,in some mission in the original Generals(China mission 3,GLA mission 1,USA mission 5)where there is a scene when the dam is destroyed,they unleashed a big waves of flood waters at the lower area,and wreak havoc as flood water destroying everything in it's path,just like real one's does.Can someone teach me how to do it?
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
http://www.cncmaps.com/mapmakingvideo.html  After clicking on the link scroll down aways till you see it. If you want to make the wave the way I did it ignore the part in the tutorial where it tells you to modify the GameData.ini file. That's what holds the information about the wave in each dam mission in Generals. Everything done to make the wave I made is done right through the world builder.

To answer your question in the Multiplayer Scripting topic, (which should've been asked here because it applies more to the name of this topic) the answer is no, a dam shouldn't cause a mismatch. There might've been a script in that map that does something to the when the dam is destroyed. That would cause a mismatch.
Rempit2502
18 years ago
The dam did need some other script to do the job right.So far,the dam "after it was destroyed"condition is bad.There's no wave coming out after it was destroyed.The things that happens is the water rises slowly instead of waves.Please,someone teach me.😞
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
I gave you that link to cncmaps.com above. Didn't check out the tutorial there?
Rempit2502
18 years ago
Which one?There's 15 tutorial and I don't know which one was the tutorial
For sure,whatever it was,the best option is to fight dirty when there's is no more choices.-That was my own philosophy.
Me Myself and Pi
18 years ago
It's called, "Dam Tutorial". It shouldn't be to hard to find but to help you, press ctrl+F to open up a search window. In it, type, "dam" & that will take you right down to the link. After clicking on that link, click on, "Dam Tutorial (Part 1).wmv". You don't need to read the second part of that tutorial because that deals with the water rising behind the wave, which isn't possible multiplayer maps. It might work if you play the map only for skirmish play but it won't on multiplayer though. so keep the river in your map when the tutorial says to delete it, like what I did in my map above. Then just use a script to raise the water.