XetaQuake Posted March 15, 2008 Share Posted March 15, 2008 hi i want to have a train on the railroads, and it works, i can drive the train on the railroads. but i have some questions: 1. how can i set the train "immortal" ? when i shoot a little bit with the AK on the train, it is damaged and i can´t drive the train because its damaged.... 2. how can i prevent that the train derailment when i drive to fast? 3. how can i attach trailers to the train? i can spawn trailers but It is only possible to drive TRAILERS! and than there is a big bug with the train: i can´t drive to the first city! on two points in the map, the train engine stop , here a exactly the two points where my playericon is: (when imageshack.us is offline, here is a mirror http://www.xup.in/dl,13782919/stopping-train.jpg ) the "stop-bug" its not so important for me, because the gameplay plays in Las Venturas on the server i hope for some answers Link to comment
stoneymedia Posted March 18, 2008 Share Posted March 18, 2008 1. how can i set the train "immortal" ? when i shoot a little bit with the AK on the train, it is damaged and i can´t drive the train because its damaged.... In my experience, if you are inside the train, there is nothing which can touch you. No damage occurs whatsoever to the player in the train or the train. 2. how can i prevent that the train derailment when i drive to fast? Slow down. 3. how can i attach trailers to the train? i can spawn trailers but It is only possible to drive TRAILERS! Not sure we can attach trailers to the train. they spawn through each other and they make no contact with each other, so I wouldnt expect so. The train's seem at the moment very buggy indeed, but I wouldnt see them putting this as a priority to be "fixed". Im sure GTA itself has limitations. As for the train stopping at the two points, I can only imagine this is a GTA bug. Ive had bugs where the train comes off the tracks completly and flies in a direct line through everything in its path. Trains doing this tend to disappear completly. And the other completly wierd one is where the player, when exiting the train gets "folded" in half. Thats just freaky. Link to comment
XetaQuake Posted March 18, 2008 Author Share Posted March 18, 2008 (edited) yea thanks for answer, but now i am sure i dont use the train, sometimes i crashing on my test server when a train is in the spawn list, and yesterday, i spawned a train on the server and 70% of the clients crashed! train is very buggy and dangerous, because the PC crashed! i hope that the train can be fixed in the future, when not, don't care Edited March 18, 2008 by Guest Link to comment
iam2noob4u Posted March 18, 2008 Share Posted March 18, 2008 The stopping is because the client thinks you haven't completed the game yet. Just like in single player, you can't drive out of LS (or into it), this could probably be fixed by the MTA team. Personally I don't think trains are that buggy at all... I have one spawned on my (test)server, and when players connect to that, everything goes well. Also I've been playing on big freeroam servers, with about 20 trains spawned, and no one crashed because of them. But indeed, they can use quite some polishing, it's just not a high priority what concerns me. Although it would be great to be able to define waypoints for the trains yourself. Link to comment
Cazomino05 Posted March 18, 2008 Share Posted March 18, 2008 that stop bug you could fix with colshapes and setting train position behind the stoping position and into whatever island as a temporary fix Link to comment
Axis Posted April 3, 2008 Share Posted April 3, 2008 Yes like he said earlier, I have yet to understand why, but depending on where you spawn the train, you gain more or less access to the city. There is a position where you can spawn a train wich will do the Whole map without ever flying off-tracks. It just depends from where you spawn it. Also for your bug, I have myself trains that spawns in my Server and I have discovered that if your spawnpoint is too: 1) Angle not fitting 2) Distant from the rail you raise the chances of desyncronisation and even crash. The best thing is to spawn a car or something at the location until you are sure its near perfection (X, Y ANDD!!! Y and the Angle too). Then simply replace your car by the Train. Concerning the Trailers (Wagons), I have a theory: I believe that since the game isn't ment to spawn more than one train at the same time, neither be attached/detached to a trailer, the game doesn't have any function or system for dealing with train collision or in-game trailer interaction. I think the best way would be to copy the game's SP and try to find a way to spawn a train that is Allready attached to its trailers. I think it would be easier than trying to recreate the whole collision or interacting process of multi-trains. Link to comment
Cazomino05 Posted April 3, 2008 Share Posted April 3, 2008 gta can handle more than one train... numerous times have i seen 2 trains in game by the way you said X Y AND Y angles... shouldn't it be X Y AND Z? Link to comment
Axis Posted April 10, 2008 Share Posted April 10, 2008 Yes I know it can, I myself have many trains spawned at the same time. But GTA (Single Player) is not MENT to support many trains at the same time. And my theory is that its for that simple reason that the game hasen't included any type of collision function or interaction system between TWO Trains. Wich would explain why they run through each other like ghosts. And yes, I ment "X", "Y" & "Z" Link to comment
Ransom Posted April 11, 2008 Share Posted April 11, 2008 I'll open a report about the LS entrance/exit problem. Link to comment
50p Posted April 11, 2008 Share Posted April 11, 2008 I'll open a report about the LS entrance/exit problem. I haven't tried that, but maybe you can fix it using setPlayerStat function to make you game progress (PROGRESS_MADE, TOTAL_PROGRESS or CITIES_PASSED) 100% so the enter/exit problem may not occur because the game will think you passed the missions and you can use rails to other cities? Try it and reply here. Link to comment
[DooD]Heavyair Posted April 21, 2008 Share Posted April 21, 2008 not really a fix but a work around i found a script called airbrake which is like no clip for vehicles in mta if you use it in the train you never derail and can drive all the way around the track here u go local thisResourceRoot = getResourceRootElement(getThisResource()) function activateBreak ( ) if ( carbreak ) then carbreak = nil setGravity ( 0.008 ) removeEventHandler ( "onClientRender", getLocalPlayer(), checkBreak ) else carbreak = 1 local vehicle = getPlayerOccupiedVehicle ( getLocalPlayer() ) setElementVelocity ( vehicle, 0, 0, 0 ) setGravity ( 0.0002 ) addEventHandler ( "onClientRender", getLocalPlayer(), checkBreak ) end end addCommandHandler ( "airbrake" , activateBreak ) function thisResourceStart () bindKey ( "f9", "down", activateBreak, "AirBreakDance" ) end function checkBreak() if isPlayerInVehicle (getLocalPlayer()) then local vehicle = getPlayerOccupiedVehicle ( getLocalPlayer() ) setElementVelocity ( vehicle, 0, 0, 0 ) local px, py, pz = getElementPosition ( vehicle ) local rx, ry, rz = getVehicleRotation ( vehicle ) setVehicleRotation ( vehicle, 0, 0, rz) if ( getKeyState ( "num_8") ) then local x = (2)*math.cos((rz+90)*math.pi/180) local y = (2)*math.sin((rz+90)*math.pi/180) local nx = px + x local ny = py + y setVehicleRotation ( vehicle, 0, 0, rz) setElementPosition ( vehicle, nx, ny, pz ) end if ( getKeyState ( "num_5") ) then local x = (-2)*math.cos((rz+90)*math.pi/180) local y = (-2)*math.sin((rz+90)*math.pi/180) local nx = px + x local ny = py + y setVehicleRotation ( vehicle, 0, 0, rz) setElementPosition ( vehicle, nx, ny, pz ) end if ( getKeyState ( "num_4") ) then setVehicleRotation ( vehicle, 0, 0, rz + 5) end if ( getKeyState ( "num_6") ) then setVehicleRotation ( vehicle, 0, 0, rz - 5) end if ( getKeyState ( "num_add") ) then setElementPosition ( vehicle, px, py, pz + 2) end if ( getKeyState ( "num_sub") ) then setElementPosition ( vehicle, px, py, pz - 2) end end end addEventHandler ( "onClientResourceStart", thisResourceRoot, thisResourceStart ) dont know if this will help but my son quite likes it as he likes driving the trains Link to comment
Lord_of_VW Posted January 24, 2009 Share Posted January 24, 2009 hey guys... i have a question too ... how i can create a train ... Link to comment
50p Posted January 24, 2009 Share Posted January 24, 2009 hey guys... i have a question too ... how i can create a train ... createVehicle Vehicle IDs READ THE DAMN WIKI... ALL OF YOU QUESTION MAKERS! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now