Transport Fever 2

Transport Fever 2

[je_4]Modular Station & Elevated Modular Station 3
Bridge pillar collision errors + duplicate filename issue
Hi, I think I finally found the cause of the "bridge pillar collision" errors, but so far I have not found an easy way to fix it.

The custom trainstationutil sets the edgeType = bridge for elevated tracks (H10 or H15), but this also affects any ground-level tracks because they have the same edgeListNum. The game then tries to create a bridge at ground-level and the core game code gives the ground collision error.

I think the fix is to use different edgeListNum for elevated tracks. I started testing some new code but it's still in progress... It also needs changes in the .con files so it gets messy.


Unrelated to this I found a separate issue. Both this mod and your Invisible Bridge mod have a file named ibv.lua, but they are not the same internally. This is a conflict because one mod is over-riding the other mod, depending on which mod is loaded last. The bridge problems that @yamasemi reported before might be caused by this.

Fixing it probably requires renaming the file in one of the mods, but that can affect existing savegames so it should probably be tested first. My guess is changing the filename in the Invisible Bridge mod might be better, because bridges are much less complicated than stations.
< >
Showing 1-7 of 7 comments
RadiKyle 1 Feb @ 12:04pm 
Hi, okay I think this modified version of je4trainstationutil.lua fixes the "bridge pillar collision" errors:
https://drive.google.com/drive/folders/108Vo4nU3CwropKgfIcnLCNiBIojArNRu?usp=sharing

See comments in the file for the changes.

It seems to work well, and now we can build the platforms in any order. No more need to bulldoze the entire station because of errors.

I did the underground tunnels too, but it looks like the mod has no underground tunnel modules?

Cheers
QQxiaoshui-2  [developer] 3 Feb @ 7:02pm 
So so great! I'll check it later for I'm working on an extension pack for js6 now.
Limskj 15 Feb @ 8:36pm 
I tried the fix but now the tracks don't elevate at all. They remain on the ground level.
RadiKyle 15 Feb @ 11:03pm 
Originally posted by Limskj:
I tried the fix but now the tracks don't elevate at all. They remain on the ground level.

Are you referring to the link I posted above? Brave... lol

Some tracks types will stay on the ground because they aren't supported by this mod (they use "static" .module files). But there are very few of those out there. The vast majority of mod tracks that appear in the station menu are supported (those are "dynamically-created" track modules).

In some cases a track type might have both versions in the menu, and there's really no way to tell them apart. So if a track doesn't work, look in the menu for another one to try.

Also note the +10 platform can elevate up to 4 tracks between them, but +15 platforms can elevate only 2 tracks.
QQxiaoshui-2  [developer] 20 Feb @ 8:17am 
Bravo! Tested your new code on the next generation and everything looks just fine now!
RadiKyle 20 Feb @ 9:21am 
Originally posted by QQxiaoshui-2:
Bravo! Tested your new code on the next generation and everything looks just fine now!

That's great! 🥳

There's a new version? 😃
RadiKyle 17 Mar @ 7:16am 
Hi @QQxiaoshui-2 , I was talking with another modder about add-on building mods for JE Station and they mentioned a lot of bridge collision errors. Are you going to update JE Station with the fix that I sent before? I think it would help a lot of users. Thanks
< >
Showing 1-7 of 7 comments
Per page: 1530 50