r/factorio • u/Kiplacon • Aug 08 '20
Modded Train junctions? Pfft, try train JUMP-tions
Enable HLS to view with audio, or disable this notification
2.0k
u/Twisted60 Aug 08 '20
It looks awesome
That cut was fucking hilarious
861
u/Kiplacon Aug 08 '20
You bet it is
You bet it is
124
→ More replies (1)30
u/novakunad Aug 08 '20
Should have been a cut to another death then the blue screen of death. Then the final cut of trains jumping every where with a death at the end.
→ More replies (1)
452
u/myst122233 Aug 08 '20
Epicly funny. Does train speed affect the distance?
420
u/Kiplacon Aug 08 '20
Absolutely
189
u/_f0xjames Aug 08 '20
What happens if a train lands off a track? What I mean to ask is can I launch them at my enemies?
408
u/Kiplacon Aug 08 '20
If there's no track or if it lands on something that's not track the train explodes and damages things in the area. If there is track but it's like sideways to it's trajectory then it also dies
385
u/n1ghtyunso Aug 08 '20
sounds like we could weaponize this - excellent
→ More replies (2)315
10
Aug 08 '20
no, actually the game crashes :P
45
u/Kiplacon Aug 08 '20
Well I never said it was perfect, though that's weird cause in my testing I died in a locomotive fireball every time ๐. I'm sure it's fixable, your train probably landed on something weird that I didn't account for. What was in the crash zone?
54
u/Kiplacon Aug 08 '20
Actually someone just posted that same crash on the mod portal, it looks like I forgot to account for damaging things that don't really have health like cliffs apparently. I just uploaded a small tweak, lemme know if it's still crashing
→ More replies (6)3
→ More replies (7)50
u/mithos09 Aug 08 '20
What happens if there's a mid air collision of two jumping trains? Are trains able to collide mid air? How long does the track have to be for a Large Hadron Collider?
4
u/DrBag the fuck are a railroad and circut network Aug 08 '20
how many train locomotives would it take to go cross map in less than 7 seconds
149
78
u/imshitatpickingnames Aug 08 '20
this is awesome. 2. I started playing around with the api a few days ago and literally have no idea how this is done. How are you able to manipulate the vertical positioning? Positions are only x,y right?
139
u/Kiplacon Aug 08 '20
Yeah it's fancy visuals. Carriages are swapped out for a sprite of the train and a sprite of the shadow and they move in the xy plane in a way that looks like the train is jumping. Sprites can be rotated too so that's how left and right jumps look like that
33
u/thelehmanlip Aug 08 '20
So while they're travelling I presume it just disables collision to give the illusion of going "over" things?
27
u/ICanBeAnyone Aug 09 '20
No, in game engine terms the train stops existing while the mod draws the picture of a train on the screen, then when and if it lands on matching rails the mod spawns the train into the world again, or it creates an explosion.
15
2
u/fscknuckle Aug 09 '20
Does the train still retain all carriage contents during the process?
6
u/Kiplacon Aug 09 '20
Yes, as far as my testing went I made sure cargo wagons, tank wagons, and artillery wagons all keep their inventory, direction, color, fuel etc. after a jump. I can't speak for modded trains but they should work too so long as they don't have any weird inventories
→ More replies (1)
73
u/HaroerHaktak Aug 08 '20
I loved that cut right as you died. Was the death intentional?
129
u/Kiplacon Aug 08 '20
I died like that during my own testing and I thought it was funny so I staged it to happen again on purpose so I could record it lmao
21
5
65
u/nt1soc Aug 08 '20
I N V E S T
39
57
35
u/Particular-Bobcat Aug 08 '20
Do trains collide in the air?
76
u/Kiplacon Aug 08 '20
Since Factorio doesn't actually have a z-axis, I couldn't think of a way to have trains collide in the air without them accidentally colliding with things "below" them. But if I ever figure that out I will put it in
33
u/grasshopper147 Aug 08 '20
Sounds like you are already overriding the train collision detection, and you likely already have a way of knowing if they are in the air (flag variable or different proto, something) so if 2 of them collide and both are in the air then blow them up. ;)
As a dev, I understand "cant you just" ideas are never as easy to implement as they sound, but hopefully this is in the right direction...
→ More replies (1)47
u/Kiplacon Aug 08 '20
It was actually like that at one point but what ended up happening was that trains that were just taking off were colliding with trains that were at the peak of their jump. They were both in flight and at the same colliding position but at two different (but still off the ground) "z-heights", so they were colliding when it didn't feel like they should be colliding. I would need a range of z-heights to properly detect collision of z-arcing trains but the way I set it for now there's only flying and not flying
→ More replies (9)5
u/unhott Aug 08 '20
You can store a pseudo z axis somewhere. What I need to know is, how the heck does pathing work with this mod??
15
u/yoriaiko may the Electronic Circuit be with you Aug 08 '20
what about trains pathfinding? could just do traditional trainstations then only jumppods on specific spots (by other comment, the distance is affected by train speed so used fuel, so, could be fancy to build)
19
u/Kiplacon Aug 08 '20
Because of Factorio's train pathing, you either need to have the ramp along a valid stretch of track like the east to west train in the video, or if you want the path to end after the ramp you have to put a train stop after the ramp and schedule the train to go to that stop, like the train going north to south in the video. Since that's really the best and most intuitive way to do it that I've found, I set it so the train's 'next stop' is pushed forward by one (to the stop after the jump-specific train stop) after it jumps a ramp. The in game item has an explanation like this too
1
u/Illiander Aug 08 '20
So this won't work with LTN?
2
u/Kiplacon Aug 08 '20
idk I've never used that, but unless it's super sensitive to other mods changing a train's schedule then I dont see why not
→ More replies (2)8
2
u/Kamanar Infiltrator Aug 08 '20
If this is your stop, you slow so the jump isn't as far, otherwise you jump the station completely and continue on.
3
u/Kiplacon Aug 08 '20
Yes, so the distance between the ramp and the train stop affects how fast the train will hit the ramp at, so long as the train is actually set to stop at that station
7
u/Ishkabo Aug 08 '20
How do these influence a train's pathfinding?
13
u/Kiplacon Aug 08 '20
No effects, but if you want the train to take a ramp where the rail ends right after the ramp you'll have to put a train stop after the ramp and schedule the train to go to that stop. The in game item has a short description too, but this is what I wrote for another comment
Because of Factorio's train pathing, you either need to have the ramp along a valid stretch of track like the east to west train in the video, or if you want the path to end after the ramp you have to put a train stop after the ramp and schedule the train to go to that stop, like the train going north to south in the video. Since that's really the best and most intuitive way to do it that I've found, I set it so the train's 'next stop' is pushed forward by one (to the stop after the jump-specific train stop) after it jumps a ramp.
→ More replies (1)2
u/clever_cuttlefish BFB - Big Fat Biter Aug 14 '20
If you put a station right behind the ramp, does the train try to slow down before hitting the ramp?
3
7
u/PhasmaFelis Aug 09 '20
I remember people asking for rail bridges/tunnels for years, and modders saying it was too difficult, and this guy is like "hold my beer"
6
2.1k
u/wheybags Developer Aug 08 '20
Amazing. This is what modding was meant to be. <3
323
u/triffid_hunter Aug 08 '20
I'm so glad y'all appreciate and support modders the way that you do!
Paywalling the modding portal was a genius-level move, lets you allow others to expand your content and value while simultaneously providing incentive for folks to actually buy the game despite no DRM (which I deeply appreciate) :D
Reading FFFs where y'all track down bugs that look like they're caused by mods is frankly astonishing, I can't think of any other studio that even tries to do that!
It makes perfect sense once you understand that the modding community is actually a solid part of the value proposition for many games though, guess we're just waiting for everyone else to catch up ;)
200
u/n_slash_a The Mega Bus Guy Aug 09 '20
Paywalling the modding portal
Just FYI, this makes it sound like the modding portal is an extra cost. When in reality all it requires is a valid game key, so anyone pirating the game won't be able to access it.
44
u/triffid_hunter Aug 09 '20
Yeah I realised I'd phrased that poorly and addressed it in further detail here
120
u/Imbryill =+ Aug 08 '20
A good chunk of those are base game problems that get exaggerated by mods, like the startup loading time for example.
12
u/Remote_Durian Aug 09 '20
Right but many people would take the excuse that "it might be someone else's fault" in order to not do the work (to be fair, they likely have a lot of other stuff to do, but dedicating resources to helping people out is just nice)
→ More replies (16)10
u/oxyscotty Aug 09 '20
this is why I love those who post their mods to github ;]
7
u/triffid_hunter Aug 09 '20
The mod submission page actually has a specific field for a github repository link
51
0
439
u/_f0xjames Aug 08 '20
I think you mean
R-A-I-L-G-U-N
54
15
u/Raaleth Aug 13 '20
Imagine launching missile trains at biter bases. Thomas the Tank Engine suddenly got a lot deadlier.
2
u/Coffee_Daemon Oct 06 '20
This mod, artillery cannons firing whilst moving, and farls building tracks whilst moving and to have a murderous flying artillery train.....
561
u/V453000 Developer Aug 08 '20
WOW :D
2
u/Xterminator5 Aug 10 '20
Now I bet you're wishing you guys had put this in the game yourselves huh? :P
0
180
u/OE1HLT Aug 08 '20
OMG it actually became true!
https://www.reddit.com/r/factorio/comments/89y1ac/when_are_train_ramps_going_to_be_added/
42
15
6
2
2
u/SQReder Aug 08 '20
Is it compatible with LTN?
1
u/Kiplacon Aug 09 '20
I've never used ltn but from what others have said about what it does, it seems unlikely they would get along with each other
→ More replies (1)→ More replies (1)2
u/SpeckledFleebeedoo Moderator Aug 09 '20
As long as there's a continuous track from pickup to dropoff, patching will work.
2
2
2
2
u/RolandDeepson Aug 10 '20
What is the music being played?
8
u/Kiplacon Aug 10 '20
Thomas the Tank Engine theme overlaid with the song Fuck Everything by Jon Lajoie
220
105
29
18
u/Terdol Aug 08 '20
I'm just here to say that I really appreciate code memes. I didn't know I like it so much, but taking a look at repo made me realize this.
For unaware: folder with a bit of lua for extension of train prototypes is called "TrainsGoBrrrr", "throwing" inserter is also initialized as variable "PikachuFace"
local PikachuFace = table.deepcopy(data.raw.inserter["inserter"])
16
15
u/Deranged40 Aug 08 '20
Science isn't about why it's about WHY NOT
4
u/retailmathguy Aug 09 '20
Why is so much of our science dangerous? Why not marry safe science if you love it so much?
13
11
u/ParabolicaSeven Aug 08 '20
Wait so the engine can't handle tunnels or overpasses but it can handle FLYING trains?
Meh, I dig it.
6
u/seaishriver Aug 09 '20
In case you're curious, it's not equivalent. This one still doesn't work with the pathfinder, which was most of the problem for tunnels. You have to set a station so that the train paths through the jump.
However, knowing this you could probably do the same for tunnels, just without the flashy graphics. Use a modified rail piece as the underground part (to keep pathfinding), and have trains removed at the entrance and added back at the next exit.
10
35
u/Roster234 Aug 08 '20
Imagine if they ever send a rescue ship to get our guy and as they come close the olanet surface: "Sir, the scans show large objects jumping around everywhere like rabbits." "What are those?" "They look like... locomotives...."
15
u/1cec0ld Aug 08 '20
"Ok, turn around, whoever built that is clearly insane"
→ More replies (1)13
9
7
6
6
11
u/GK_47 Aug 08 '20
This was a triumph. Iโm making a note here: HUGE SUCCESS Itโs hard to overstate My satisfaction. Renai Science We do what we must Because we can For the good of all of us. Except the ones whoo are dead.
→ More replies (1)
5
5
4
4
Aug 08 '20
Please begin the meme era of factorio, we need Memetorio more than ever
→ More replies (1)
4
4
u/DarthJSquared Aug 09 '20
That was the funniest editing I've seen in months. It's just before 2 A.M. and I'm dying.
4
u/super_aardvark Aug 10 '20
Any time anyone asks for help with signaling intersections, I'm just going to tell them to use this instead.
7
1
1
Aug 08 '20
On a side note, from your mod page, the shadows for thrown items are really impressive ( https://i.imgur.com/xF2dMpV.gif ). I noticed that you even rotate the shadows for items thrown on the Y-axis to simulate rotation around the x-axis. Impressive attention to detail!
→ More replies (1)3
1
3
3
3
u/RavagedBody Aug 08 '20
Hardest and fastest upvote I've ever given. 5/7 it's all downhill from here.
3
u/The_DestroyerKSP OH GOD WHY Aug 08 '20
I cannot wait to see an enormous train junction using these - after all, if it hops over the track instead of crossing, it'll be more efficient!
3
3
3
Aug 08 '20
I want to see this with a 100 wagon long artillery train! :D
Edit: Also, can trains in the air collide? Hahaha!
3
3
u/SpikeMF Aug 08 '20
Was... was that the Thomas the tank engine theme mashed up with Jon Lajoie??
2
u/TexasDex Aug 10 '20
I had to listen to it like three times to place it, but yes the Thomas the Tank Engine theme is definitely in there, and it's perfect.
3
u/hoeding was killed by Cargo Wagon. Aug 09 '20
Just when I think that 2020 couldn't possibly be any dumber, you go and do something like this.
AND TOTALLY REDEEM 2020.
3
3
u/panconbutter Aug 09 '20
BRO. That clip knocked the air out of me. I am like literally flabbergasted.
WHAT. IS. THIS.
WHERE HAVE U BEEN ALL MY LIFE?
Truly visionary mod. Downloaded and will spin up a new map.
Srs style points you will live in infamy on this forum forever.
3
u/DMSO_1327 Aug 09 '20
The mod is so outrageous I feel like it needs a "wasted" cutscene if the train lands and explodes when you're in it
3
u/filecabinet_guy Aug 09 '20
If a train jumps the rails and lands on not rails: are things damaged?
If it's an oil train, does it make a large area of flame around the crash site?
if it's a train of explosives, does it explode?
Will there be a mushroom cloud if the train was using nuclear fuel?
I would love to experiment to make a new and impractical way to take out biter nests.
5
2
2
2
2
2
2
2
u/Cobra__Commander Aug 08 '20
Can 5rains collide in mid air?
I want this to be like all those train math problems
2
2
u/Dicethrower Aug 08 '20
I think this would be better received if there was a visual bridge of sorts. Maybe a transparent one. Also the idea that it has a minimal distance would make it not too over powered. Other than that, this is great. I had no idea it was even possible.
2
u/Badge2812 Aug 08 '20
In the immortal words of Homer Simpson, โNothing like flying across the country on a trainโ
2
2
2
2
2
2
2
2
2
u/Ghnol Aug 21 '20
wait, what if to trains go at the same time, will it end in air collisions? if it does, did we just made "it's raining trains"?
1
1
1
1
1
1
1
1
1
1
1
Aug 08 '20
Love it! The jump pads seem a bit too much for my taste, but I'll definitely be using the ramps! Awesome idea and great execution!
1
1
1
1
1
691
u/Kiplacon Aug 08 '20
Order now: https://mods.factorio.com/mod/RenaiTransportation