Transport Fever 2

Transport Fever 2

Elevated station building
Ideas
Hi, easier here than in the comments section... Here are some screenshots of the J4 station that I modified the code to elevate 3 tracks without platforms on both sides:

https://imgur.com/a/SO1QN1y

Cheers
< >
Showing 1-15 of 15 comments
yamasemi  [developer] 16 Mar @ 5:44am 
@RadiKyle
Wow that's amazing! How do you build it?
RadiKyle 16 Mar @ 7:35am 
The code that elevates the tracks above the ground is in je4trainstationutil.lua. For each track piece the code checks the nearby tracks and platforms. For H10 it looks for up to 4 tracks between two H10 platforms.

I simply changed that code to require only one H10 platform (basically changed AND to OR). So now it elevates up to 3 tracks with only one H10 platform.

But there are many other combinations possible, to create almost any combination. It's a very good mod.

Anyhow that elevates the tracks, but you can see the concrete "bridge" under the tracks is missing. Also roofs don't cover the tracks. Fixing those things requires changes to code in other files (the .module files). It's not hard but can be a lot of work because this mod has soooooo many .module files and possible combinations between them. For example the H10 platform .module file has over 1300(!) lines of code (vanilla platform is only 200 lines).
yamasemi  [developer] 17 Mar @ 6:21am 
@RadiKyle
That's a great modification. However, it is true that there are many issues that need to be resolved, such as roofs and bridge girders.
In the end, it may be necessary to create an elevated station like Pz.kpfw.7's, rather than using the additional modules of this mod. The method of raising the tracks with bridge girders is tricky and there are many collisions, which is an issue.
RadiKyle 17 Mar @ 7:11am 
It's true there are different ways to do these modules. Some of those other elevated stations are not modular tho. I think the modular flexibility is a big advantage of the JE Station mod.

Here are some modular examples using different methods. Plus of course your mod and JE Station and probably more out there...
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3399497387
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3440050423
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2218955357
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2215874615
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2211220935

I fixed the JE Station bridge collisions a few weeks ago, but I see the mod hasn't been updated on Steam yet so I'll ask @QQxiaoshui-2 about it. But in the fixed version there are no bridge collisions anymore, and the station is very easy to use just like any other modular station. Here is the discussion, and there's a link there to the fixed version of the mod:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2828630109/603020374162125414/
yamasemi  [developer] 18 Mar @ 4:50am 
@RadiKyle
Thank you!
I hope they'll release a version that avoids collisions soon. I'm looking forward to it...
By the way, I fixed the bug with the stairs the other day, but for some reason the tracks at the station disappear when I update, so I have to place the tracks at the station again. I know I'll get in trouble for this, but I guess there's nothing I can do about it, right?
RadiKyle 18 Mar @ 5:38am 
The tracks disappear? 😯 I don't know, but if you post a link to the updated version I could look at it for you.
yamasemi  [developer] 18 Mar @ 7:56am 
@RadiKyle
Thank you. I have uploaded the files you planned to upload to the storage, so please check them.
https://xfs.jp/tXWLMEBy
RadiKyle 18 Mar @ 3:08pm 
Ok I looked at the new version and everything seems ok. What problem are you seeing with it?

I like the new H15 option that adds a 2nd level to the building 😊
yamasemi  [developer] 18 Mar @ 7:30pm 
Thank you! There is no problem with installing it for the first time, but after updating, I found that when I try to modify a station that already has this module installed, the track disappears. (You can just install it again)
RadiKyle 18 Mar @ 8:30pm 
Oh that's weird! 😮 I tested that here but it was ok... I made a station with the "old" version, then I saved the map and reloaded it with the "new" version. When I Configured the station, everything stayed the same, the tracks didn't disappear.

Was it a special track type? Do you have a screenshot of before/after?
yamasemi  [developer] 19 Mar @ 4:34am 
Take a look at these images.
https://imgur.com/a/z9zhu1F

In the first image, I'm trying to place a station module from the station construction menu. When I do, the tracks glow yellow. The tracks are the vanilla high-speed type.
In the second image, I've just placed the station module, but the yellow glowing tracks have disappeared.
Well, if I worry about this I won't be able to update, so I'm wondering whether to ignore it and update.
Thank you in advance.
RadiKyle 19 Mar @ 6:18am 
😮 I'm confused... I don't recognize any of those modules in the screenshots, except for your buildings. These do not look like JE Station modules. Is it another mod?

The tracks have pillars under them but I don't see any track modules in the JE Station mod like that. Which mod are they from?

I don't see any station platforms at all. There is a strange-looking roof thing but it looks like it's on the ground, not elevated. And there are catenary poles sticking thru it that also look like they are on the ground.

Can you show how you built this station? And which mods you used? Also the white screenshots are difficult to see the details.

https://imgur.com/a/JpVGlFz
yamasemi  [developer] 19 Mar @ 9:18pm 
I took the photo again.
Details are listed in the image description, but I used the [JE] model for the station.
This time, the station stairs were made into a different model, so the model was modified and it seems that stations that had already been installed have been reset.
The installed railway tracks are visible, but if you place, delete, or make any changes to a station module from the construction menu, the railway tracks disappear.
I don't know the exact reason, but it seems like it's only my environment and it seems difficult to pinpoint the cause beyond this, so I'll try updating it for now.
Thank you for all your advice!

https://imgur.com/a/VYdUTnc
RadiKyle 20 Mar @ 8:01am 
Oh wow that is really strange 😮

I tried several times to create the same problem here but everything worked okay. I tested 2 versions of your mod (the version from Steam and the updated version you sent me). I also tested 2 versions of JE Station mod (the version from Steam and the updated version I made). And I also tested 2 station templates (the vanilla station template and the "JE Starter" station template that we are not supposed to use). Everything worked ok in all of the combinations that I tested 🤷‍♂️

So maybe you are right, it is something that is happening only in your savegame. Sometimes strange things happen when we are testing different mod code and saving the game. The savegame stores the old mod code and it can interact strangely with new code.

But the mod subscribers will only have the original mod code in their savegames, and then the new updated mod version will replace it. So I tested that update process and it works okay. When the "old" savegame is loaded, the stairs are missing in the old stations, which is expected. Then if we Configure a station to force it to update (add/remove a module), it causes the stairs to appear. Perfect!

So I think the new mod version is working ok.
yamasemi  [developer] 21 Mar @ 3:18am 
I see! I'm currently putting the mod in the staging_area of ​​the installation folder, so that may be the cause.
I've heard there's no problem, so I'll update with this file. Thank you for your advice.
< >
Showing 1-15 of 15 comments
Per page: 1530 50