Transport Fever 2

Transport Fever 2

GWR Station
Recent update problem
https://i.imgur.com/1KoQWjK.jpg Station configuration screenshot


Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message: error: [string "E:/Games/Steam/steamapps/workshop/content/1066780/2824535401/res/construction/station/rail/modular_station/ikb_stn_footbridge_right_gwr.module"]:40: attempt to index local 'params' (a nil value)
stack traceback:
=[C](-1): __index
E:/Games/Steam/steamapps/workshop/content/1066780/2824535401/res/construction/station/rail/modular_station/ikb_stn_footbridge_right_gwr.module(40): orgUpdateFn
@E:/Games/Steam/steamapps/workshop/content/1066780/2081662552/mod.lua(125): ?
@res/config/base_config.lua(93): ?


File name: E:/Games/Steam/steamapps/workshop/content/1066780/2824535401/res/construction/station/rail/modular_station/ikb_stn_gwr_station.con

Key: game/config/ConstructWithModules

Minidump: C:/Program Files (x86)/Steam/userdata/17157396/1066780/local/crash_dump/4bdfd062-911b-494a-9d38-bd7d78511ea6.dmp

Mod: "GWR Station" (*2824535401, 1) (consider removing this mod and contacting the mod author)

In file: C:\GitLab-Runner\builds\1BJoMpBZ\0\ug\urban_games\train_fever\src\Lib\lua\State.cpp:641

In function: void __cdecl lua::State::Call(int,int)



Before I closed down the game I'd attempted to delete the station and rebuild it. It deleted okay but would only allow me to rebuild the station without the subway or footbridge pieces selected. I built the station without and tried to add the footbridge in via the configure menu and this was the error it threw in the stdout.txt.
Last edited by FoolInjection; 25 Feb, 2023 @ 9:01am
< >
Showing 1-10 of 10 comments
Isambard  [developer] 25 Feb, 2023 @ 9:58am 
The error appears to suggest that your station does not have the expected 'params' data block created when the station is initially constructed. The GWR station mod uses data in this data block to determine if the initially constructed station was a GWR station or another (including base game) station. I am not aware of how to construct a station without this data block, so cannot re-create this problem. Was your station initially constructed using another mod? However, I have uploaded a new version of the mod that includes protection for a non-existent 'params' data block - can you test if this solves the problem?
Isambard  [developer] 25 Feb, 2023 @ 11:23am 
Can you also confirm if you are using the stable released version of the game or the beta testing version?
FoolInjection 25 Feb, 2023 @ 11:24am 
It seems to still be happening.

When I constructed those stations I would have either used a default station and then changed the platforms to GWR ones; one of Mad Hatters Generic UK stations and then converted the platforms (as I had that mod before this one) or just used the GWR station directly. Those are the only station mods I've used to actually build the stations.
FoolInjection 25 Feb, 2023 @ 11:25am 
Also not on a beta branch.
FoolInjection 25 Feb, 2023 @ 11:30am 
I decided to set up another game with just this mod installed and it works fine. Which has left me further scratching my head.
Isambard  [developer] 25 Feb, 2023 @ 12:27pm 
Somebody on UK Discord reported a similar issue, but they found that the latest version of the mod (version 1.6) stopped the error. Might be worth checking that your saved game is actually using 1.6 rather than 1.5.
FoolInjection 25 Feb, 2023 @ 12:36pm 
Okay. I'll make sure I'm on the latest version. However I also went through and removed a couple of station mods I wasn't using (mainly some elevated station mod packs) as we all moving this mod to the head of the load order and it seems to have sorted the issue now. I can edit the stations and there doesn't seem to be any problems with the footbridges or subways.
Isambard  [developer] 25 Feb, 2023 @ 1:11pm 
OK great. Can you identify the station mods you removed?
FoolInjection 25 Feb, 2023 @ 2:23pm 
Sure, here's what I took out.

Compact Elevated Station Lite 1.51
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2240011956

Mighty Adjustable Elevated Station Pack 1.6
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2162186101

Berlin elevated rail viaduct pack
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2460445640

Station Expansion 1.5
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2081662552

Train station mod pack
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2011529146

The last 3 items were dependencies for the top two... I wasn't using elevated stations so I just took them all out. Should also note the first 3 are all by the same modder.

They were all playing perfectly fine with each other however, so maybe it was just the load order?

Whatever the reason it seems to be working perfectly fine now with no issues. Thank you for looking into it for me though. Every station in my current save uses your GWR platforms so I'm glad it's working as intended again.
0zwolf 25 Feb, 2023 @ 6:25pm 
Hi, can confirm that 1.6 fixes the issue. Had 1.5 installed and could not even construct a GWR station with subway or stairs. Upgrading to 1.6 fixed this for me.

Thanks for your contributions @Isambard. Love your work!
< >
Showing 1-10 of 10 comments
Per page: 1530 50