Transport Fever 2

Transport Fever 2

236 ratings
Abutment script support
   
Award
Favorite
Favorited
Unfavorite
Track/Street: Track, Street, Bridge
Misc: Script Mod
File Size
Posted
Updated
13.960 MB
21 Jan, 2021 @ 1:19am
21 Jan, 2021 @ 1:24am
2 Change Notes ( view )

Subscribe to download
Abutment script support

In 1 collection by Enzojz
TpF2 Infrastructure from Enzojz
17 items
Description
A script mod to give abutment support, use with other supported bridge mods.
The "Tracks × Retaining Walls" supports this mod.

Usage (player):
1. Load this mod with the game, if the bridge support this mod, in case that the new bridge is connected a terrain track/street, the abutment will be added automatically after build
2. You can remove this mod at any time, it's remove safe.

Usage (modder):
1. Create bridges with 4 cases: ordinary without abutment, abutment at the start, abutment at the end, abutment on both extrmities.
2. Create a .lua script file under res/config/game_script, following the example code under res/config/game_script/example.code
3. DON'T COPY abutment.lua in your mod, doing this will lead to conflict.
4. This mod is remove safe, it doesn't any introduce in a gamesave or other mods, if this mod is not loadded, the game will simple ignore the script above.
21 Comments
bihi6767 31 Mar, 2024 @ 2:09am 
Thank you very much
Madfox 8 Feb, 2023 @ 12:37pm 
Great mod, but it gives a problem with the new beta version. You cannot build bridges anymore.
wavinash7 11 Jul, 2021 @ 8:43am 
Plz make slim street mod
caddywonkus 16 Mar, 2021 @ 5:29pm 
Uff... that was it. I did not see that "Abutment" thing at the bottom, wasn't expecting it, and it's not in the description here. But yes, that's all it was... thanks!
Enzojz  [author] 16 Mar, 2021 @ 4:47pm 
@caddywonkus Have you turned it on? (in the bar under the screen), also the mod will only work when one/both extremity is on the land.
caddywonkus 16 Mar, 2021 @ 1:01pm 
I understand that. But one is the "Tracks x Retaining Walls" mod you mentioned. The other "Girder Bridge 6" specifically links this abutment mod. The bridges from both mods are fine, but I can't seem to get an abutment to appear from any of them. I tried the Girder one just in case my problem was in fact with the Tracks x Retaining Walls mod, but nope, happens (or rather doesn't) with both.

Just wondering if there's anything I haven't thought to try. I get that it's (probably) just me, but I'm totally out of ideas about what could be wrong, myself.
Enzojz  [author] 16 Mar, 2021 @ 12:05pm 
@caddywonkus This mod is a supporting mod to others, it can't do magic trick itself. if you can't see an abutement that's because that mod doesn't support it..
caddywonkus 16 Mar, 2021 @ 11:24am 
I waited a week hoping maybe I wasn't the only one, but I guess I am. I'm still not getting the abutments to appear. I've tried everything I can think of. A free game with just these three mods (this, tracks x retaining, shader), and a simple stretch of high-enough-for-a-bridge embanked track, with a short section cut out for an actual bridge, no luck. Scanned all three mods folders (workshop, non, and core) for "abutment.lua" - only have this one, anywhere. I even tried moving the mod to the three mods locations (just one at a time), made no difference.

Tried another bridge mod that uses this script, "[jb_10]Girder Bridge 6"; no luck there either, bridge is short as advised, only 2 pillars - but no abutments.

It's build 31994, so latest official update. Nothing standing out in stdout.txt. And if it were an issue with the core files (which I never mess with), surely it would affect more than this one mod.

I can't think of anything else to try. :(
Enzojz  [author] 9 Mar, 2021 @ 1:28pm 
@caddywonkus the arch ones should get closed section at two ends
caddywonkus 9 Mar, 2021 @ 12:49pm 
With the "Tracks x Retaining Walls" mod (just re-downloaded, so the latest, and with the Shader enhancement mod enabled as well), I can't seem to get the abutments to appear. I tried swapping the loading order, but that didn't make a difference. I even tried building just the bridge i.e. with ground-level tracks already laid on either end, and then separately the ends and the center... no abutments appear. :(