Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Floating, invisible train track (San Fierro)


hax0rofl
 Share

Recommended Posts

Just thought I'd share this with people who hadn't seen it. Apparently someone has posted about this before but I can't find it anywhere and found it really interesting tounge.gif

 

In San Fierro, the train track that runs down to the dock is never used in the final game. So, presumably, it's fake.

Or not? smile.gif

If we spawn a train/tram on it (In this video I've connected to my SA:MP server which has the required script for entering trams and spawning vehicles with a console command) and drive normally, we'll see that it's not a terminated track, but a complete circuit, with half of the track floating and invisible smile.gif

 

Presumably this was done because the game can't support terminated tracks, so they just added this section to make it a full loop.

 

See video:

 

EDIT:

Here's another example of the same "glitch". This is the path used by the train in the mission "Snail Trail". One can only wonder why the Rockstar devs didn't use the standard train path for this mission.

 

 

Note:

I am not controlling the Tram's direction- it's impossible to do that - only the speed

This is not a modded GTA installation

How I'm spawning and getting into the tram: My SA:MP server has a script to do that

 

There are other possible locations where this can happen, but I can't get trains/trams to spawn there:

user posted image

 

~jas0nuk

Edited by hax0rofl
Link to comment
Share on other sites

Is this true or a mod ?

And SA BMX 32, you need to click on the report button and not pray for a mod to notice this for him self

Link to comment
Share on other sites

It's not a mod. All you have to do is spawn a train on the correct track and it will follow that path.

 

edit: Test it if you don't believe me tounge.gif

 

edit 2: I'm doing the video of the second one now (this is the path used by the mission Snail Trail, for some reason they didn't use the conventional one...)

 

Also, if you're wondering how I'm able to spawn trams and get into them, it's because I'm using SA:MP. A script enables trams to work by forcing the player into them, but you'll notice in both videos that it's a little glitchy.

I have NOT modded my SA installation.

 

Second video:

Edited by hax0rofl
Link to comment
Share on other sites

I've tried but I can't get a train to spawn in single player on the tracks sad.gif

Everytime I try, my game crashes because I missed the tracks when tried to spawn the train with a car spawner

Edited by Bad~Boy#17
Link to comment
Share on other sites

Yeah, it doesn't seem to work in Single Player, at least with the SA Admin Console. But you can see the same thing if you do the mission Snail Trail and follow the train after it drops the guy off.

Link to comment
Share on other sites

maybe to maintain the integrity of the train track script in the game they had to make every train track go in a loop or else it would cause the game to glitch up? that's the only explanation I can think of. good find.

Link to comment
Share on other sites

Here it is:

208.64.161.160:27017

 

Once you get there, use /tele, press arrow key down to San Fierro, spacebar, Cranberry Station will be selected, spacebar again, go just near the track as I do in the video, type /v tram

Then keep pressing Enter near the tram until it puts you inside it.

 

 

maybe to maintain the integrity of the train track script in the game they had to make every train track go in a loop or else it would cause the game to glitch up?  that's the only explanation I can think of.  good find
That's exactly what I was thinking. The engine probably can't support tracks that aren't a loop. tounge.gif
Link to comment
Share on other sites

 

 

maybe to maintain the integrity of the train track script in the game they had to make every train track go in a loop or else it would cause the game to glitch up?  that's the only explanation I can think of.  good find
That's exactly what I was thinking. The engine probably can't support tracks that aren't a loop. tounge.gif

if this is the case though, why wouldn't they just animate it as a train track without giving it the characteristics of one?

 

maybe just to screw with our heads? : )

Link to comment
Share on other sites

They probably planned to add more train lines, but ran out of time and quickly patched it up so that trains spawning on those lines don't crash the game (Snail Trail uses the circuit in my 2nd video, theres another mission which uses the one in the first video so you have to move out of it's way).

 

Happened with a lot of things in the game smile.gif

Link to comment
Share on other sites

Here it is:

208.64.161.160:27017

 

Once you get there, use /tele, press arrow key down to San Fierro, spacebar, Cranberry Station will be selected, spacebar again, go just near the track as I do in the video, type /v tram

Then keep pressing Enter near the tram until it puts you inside it.

 

 

maybe to maintain the integrity of the train track script in the game they had to make every train track go in a loop or else it would cause the game to glitch up?  that's the only explanation I can think of.  good find
That's exactly what I was thinking. The engine probably can't support tracks that aren't a loop. tounge.gif

Hmm. So how do I enter just an IP Address to the server, if I'm on SA:MP v0.2.2 ?

Link to comment
Share on other sites

Go to Favourites tab, click the orange tick, and write 208.64.161.160:27017 in the box. Then it will appear on the list and you just right click->Connect.

Link to comment
Share on other sites

ofcourse it's not a mod! I've seen this in a lot of videos of SA. and once when I was driving around in doherty, I heard a train from the highway, but didnt see any. then I just saw some sort of UFO for a second going past the airport xD

Link to comment
Share on other sites

  • 2 weeks later...
dj_chrismanno

Sup guys I'm a path editor for trains in San Andreas.

 

Ok, simply, The trains which spawn, either in MP scripts (SAMP) or the normal game script, (normal game play) follow an invisible path. This path simulates the train being attached to the track and therefore follows the track when in motion.

 

 

It's a fact that the train in San Andreas moves in a circuit. It does not terminate. So in the design of the train paths, they used the same process as in GTA 3. Grid co ordinates. The invisible path is made up of a list of XYZ co ordinates. This structure of code for the train path lies in the file Tracks.dat Tracks2.dat Tracks3.dat and Tracks4.dat. Because the grid co ordinates are in the form of a text document. When we read the document we see lines of text which move down the page in a format. here is an example of a path document i made.

 

 

5

121.32 123.32 12.32 0

121.35 123.33 12.32 0

121.36 123.39 13.32 0

121.39 123.36 14.32 0

121.31 123.35 14.32 0

 

This is the format of the document.

 

The GTA loading script at loading stage loads the grid references while the objects load from the game image files. The document loads in the same way we would read it. From Top To Bottom.

 

Now here's information that should clear up the words "terminating trains" in San Andreas.

 

A train in San Andreas will complete a Circuit. This happens because when the train has reached the last grid reference in the associated path file, It starts again. So the train will move back to the 1st reference. Thus completing a circuit.

 

Here's how trains spawn in San Andreas.

 

When a player has moved inside the radius of a grid reference associated with the train path file, A train may spawn at a grid reference point at the horizon point of the player. The last note is used loosely as technically the train spawns at a set distance from the player and on an existing grid reference. This way trains don't appear in front of your face at random.

 

The train code then sets the speed of the train and what train combination. In the game there are 15 different combinations of train which incorporate the Freight engine Freight kart Freight box kart Passenger train engine and passenger train kart and also the tram. 3 of these combinations are set for the tram. The tram is much like the train. All the same except the tram has different audio and specifications for making it move without stopping and the interception of a player such as: shooting the driver or trying to get in.

 

In SA MP someone was saying in an earlier post that a train can spawn in SAMP at the docs or something along the lines as that. Heres relevant info about that.

 

The train must spawn at a set location on the associated path file. If the train is just sitting on the track not moving, The script simply says that the train must spawn with the center point of the train engine at the grid reference point with the carriages following if any, and in a foward or reverse direction.

 

Anything you can do with the train is set in the script. Now the train someone said moves in mid air. The train will move along the track from the terminating platform at Cranberry Station and make its way to the end of the track underneath the crane at the nearby docks. From each end there are grid co ordinates which make the train stay on the track. But because at each end, the track stops, the train moves in a straight line from the last grid reference at the docks to the first grid reference at the platform at Cranberry station.

 

The exact thing happens in the mission "Snail Trail". Same reason. When following the train on the mission Snail Trail, the script orders trains to spawn at a distance ahead of the player and head towards the player so that the Play must dodge the 2 trains. The trains which spawn spawn onto grid references which are sourced from one of the 4 tracks.dat documents. The document which it is sourced from is only needed for the mission snail trail and Wrong Side Of the tracks, And also the opening scene when Officer Tenpany stops to let a freight train past.

 

In all 3 situations, the trains which get spawned do not need to make a full circuit around San Andreas. So when the designers made the game, they just made a path file that can be used for all 3 situations and start from Cranverry station and finish at a point north of Los Santos but below the bridge joining Los Santos to Las Venturus.

 

Here's a list of the path file documents for the trains and trams inGTA San Andreas:

 

Tracks.dat

Main File. Used for most rail transport. Making a full circuit around San Andreas. Used in a couple of missions

 

Tracks2.dat

File used for rail transport going from Cranberry Station at the Easter Basin car transport docks. NOT USED IN ANY NORMAL GAME SCRIPTS

 

Tracks3.dat

Used for trams on tram circuit.

 

Tracks4.dat

Used for rail transport. File makes part of a circuit beggining at Crandberry Station ending at the north side of Los Santos.

Used in few missions EG Snail Trail. Wrong side of the tracks

 

Other Info

 

The combination of a train and how many karts spawn is decided by the file GTA.exe. There is embeded code in the EXE which in our language is 15 different combinations of train sets and tram sets. In the train.scm file it is decided what one train set will spawn.

In normal game play it is combo 1, 2, 3, 4, 5, 6, 7 for trains to spawn on the train track and combo 9 14 and 15 for trams spawning on the tram track.

 

Note: In no way can a train choose a diferent path to be on such as at the points where trains in real life could change tracks if they wanted to take a different route. There is only 1 way to do this but it involves many script scenes to do the transition between path files and a large amount of code to align the train and make it run smooth after the process of changing files.

 

 

 

 

 

 

Cheers.

dj_chrismanno

Edited by dj_chrismanno
Link to comment
Share on other sites

bagga rabbit
I don't know what you just said, but your right

This should go down as the "quote of the month"..it is a classic. icon14.gif

Link to comment
Share on other sites

  • 14 years later...
Sagnik gta lover

So is there any way to add collisions to the barriers so that the trains stops 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.