Transport Fever 2

Transport Fever 2

Underpass
273 Comments
Nero1024 Mar 24 @ 3:17am 
For anybody that's gets an error when loading a save due to Lua saying name is nil, I was able to work around by editing "entry.lua". It's likely caused by unground station the UI wizard is referencing being missing/deleted.

I've hotfixed the entry.lua script to at least let the game load. Long-term stability is unknown but you can at least close the borked wizard window and continue the game.
https://pastebin.com/uDvALfJd
Alyter87 Jan 12 @ 3:40am 
Hello, i got an error that doesnt allow me to play on my save at all. Here's the error:
Error message: error: [string "D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua"]:87: attempt to concatenate field 'name' (a nil value) stack traceback:
[C](-1): concat
D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(87): addEntry D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(410): ?
File name: D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua
2227817689 Jan 1 @ 9:28am 
怎么用
DANA85NANA Dec 12, 2024 @ 10:28am 
Hello, the mod began to issue an error, which makes it impossible to play at all, please fix it.

Details:
Error message: error: [string "D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua"]:87: attempt to concatenate field 'name' (a nil value) stack traceback:
[C](-1): concat
D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(87): addEntry D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(410): ?
File name: D:/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua
tommy.tf Dec 8, 2024 @ 10:45am 
hey i have following error:

Error message: error: [string "R:/steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua"]:87: attempt to concatenate field 'name' (a nil value)
stack traceback:
=[C](-1): __concat

content/1066780/1924671230/res/config/game_script/entry.lua(87): addEntry

content/1066780/1924671230/res/config/game_script/entry.lua(410): ?

File name: R:/steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua

Key: game/res/gameScript/entry.lua_guiUpdate

Minidump: C:/Program Files (x86)/Steam/userdata/386081849/1066780/local/crash_dump/3daedae5-912b-48e9-876b-16aa8431dc74.dmp

UI Component Hierarchy:
type: class UI::CGameUI, id = "", name = "CGameUI", styleClasses = {}
type: class UI::CMenuUI, id = "", name = "MenuUI", styleClasses = {}
type: class UI::CComponent, id = "", name = "wrap", styleClasses = {"mods-enabled", "platform-desktop", "ui-classic", "input-mouse", "gamepad-type-xbox"}
Enzojz  [author] Sep 30, 2024 @ 8:05am 
@mercedes600sl2003 Honestly I don't know...
mercedes600sl2003 Sep 28, 2024 @ 4:48am 
thanks for your answer, do we know a mod that will cancel the pedestrians crossing the roads? or is any mod with streets without pedestrian crossings? thanks
Enzojz  [author] Sep 27, 2024 @ 12:42am 
@mercedes600sl2003 you need to cut pedestrians over the road, or make it longer than underpass
mercedes600sl2003 Sep 25, 2024 @ 9:50am 
hi , is any way to use this mod to force the pedestrians to use them instead of walking over the streets? seems for me that are ignored so far
simpson_hh Sep 25, 2024 @ 3:28am 
@enzojz: Thank you very much, awesome! :steamthumbsup:
simpson_hh Sep 24, 2024 @ 11:59am 
Hi, v1.8 is causing a crash on the former build 35732. Unfortunately I can't update TPF2 because of the missing CommonAPI2 for now. Any chance to get the working v1.7 anywhere?
RandomKentGuy Jun 9, 2024 @ 5:42am 
when i try to connect this to an underground station, half the time, the station doesnt recognise that i placed an underpass. any help?
ニセアノニメ May 28, 2024 @ 3:09am 
My savegame suddenly crashed while tryring to load it. (multiple times) As I already build some underpasses I can't just remove the mod and reload it so I hope you can fix that or tell me if I'm doing something wrong.

here are the details

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

Details:

Error message: error: [string "X:/Games/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua"]:87: attempt to concatenate field 'name' (a nil value)
stack traceback:
=[C](-1): __concat

Key: game/res/gameScript/entry.lua_guiUpdate

Mod: "Underpass" (*1924671230, 1) (consider removing this mod and contacting the mod author)

Thanks
NotReallySan Apr 9, 2024 @ 9:52am 
underpass mod keeps crashing
Gregory365 Apr 5, 2024 @ 3:04pm 
Extra info: The error occurred just seconds before an auto-save was due to occur. The previous auto-save was successful.
Gregory365 Apr 5, 2024 @ 3:01pm 
Got the following error on a save that has underpasses enabled, but I haven't built any.
The error seemed to occur randomly when viewing a stations info panel.

local time is Fri Apr 5 22:54:23 2024

Calling thread crashtrace handlers
thread: 7292
entry.lua - game/res/gameScript/entry.lua_guiHandleEvent() - hints: id = "mainView", name = "select" - mod: "*1924671230" version 1

thread: 13092
(empty)

All thread handlers called
Minidump Callback
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
An error just occurred.
Thread did not respond to ping. Possible hang detected!
redflaven Mar 30, 2024 @ 1:59am 
@Enzojz I'm on windows
Enzojz  [author] Mar 21, 2024 @ 3:26pm 
@m8tix Many said that, but I don't have such problem here so I don't know what to do...
m8tix Mar 14, 2024 @ 4:13pm 
Does this need an update? I think its causing my game to crash....
Enzojz  [author] Mar 10, 2024 @ 4:21am 
@ptamme1970 @DarkSwan2296 @redflaven are you on windows or mac?
redflaven Mar 6, 2024 @ 12:02pm 
Same issue here
ptamme1970 Mar 6, 2024 @ 10:40am 
If i place this with the Underground station my game always crashes. At the end of the Crash log it says this: Mod: ''Underpass" (*(some numbers), 1) (consider removing this mod and contacting the mod author)

What should i do?
DarkSwan2296 Feb 8, 2024 @ 5:49am 
It's possible, however I removed the undo mod but nothing actually changed at all.
Enzojz  [author] Feb 7, 2024 @ 12:18pm 
@DarkSwan2296 @twisted-pixel Some mod conflict I think, maybe the undo mod?
DarkSwan2296 Feb 6, 2024 @ 3:52pm 
Unfortunately I've got the same issue too: every time I load the game I have the underpass link UI visible and it's impossible to dismiss it. After some minutes of playing or at the first attempt of placing a new underpass, it makes the game crash without saving. It's a pity because it's a useful mod, but it made my map completely unplayable (I couldn't even delete them becase it crashes anyway). I'd really love how to solve this problem keeping the mod.
twisted-pixel Jan 19, 2024 @ 8:39pm 
I think i might also be getting the undo bug. when i load into the game, the underpass link UI is visible and doesn't respond to dismissal, but as soon as i place an underpass or underground station the game crashes with internal error. curiously, i had no issues during the previous session, when i created the bug, despite playing for several more hours after last using underpass. I was thinking maybe a way to get around the issue is to dump upon game exit, or startup, all unlinked id#'s associated with underpass, and or deleting their unlinked stations.
Enzojz  [author] Jan 7, 2024 @ 2:02pm 
@Babaji Hello, if you just want to have building entries for underground station, nothing need to modify on this mod, just do as underpass_entry.con and .module do, the underpass script will take them as entries. We can talk it in private messages
Babaji Jan 6, 2024 @ 1:14pm 
@Enzojz No problem, would it maybe be possible for you to make an invisible version with no meshes for this type of situation ? It would allow us to make functional buildings for underground stations. as well as other entries that we'd place on top of your invisible one.

Maybe consider doing the same with the underground stations to be able to snap an underground station asset. In the creation of our mods, we'd give the exact settings in our description so it snaps perfectly. It would make your underground mods more open to modders with more limited capacities in scripting and make them able to make more underground station mods because not gonna lie, that's what's missing in Transport Fever 2.
Enzojz  [author] Jan 6, 2024 @ 11:15am 
@Babaji Hello, no but you can use the mod as a requirement. If any modification is necessary, I would like to do it. I say no because there's background script so any copy of script would lead to conflicts.

In fact you can do as underground station do, from the perspective of coding, underground station is a plug-in of underpass.
Babaji Jan 4, 2024 @ 9:18am 
Hello ! Do you give me permission to implement your mod into mine ? It's a train station building with an underground access.
Enzojz  [author] Oct 3, 2023 @ 8:07am 
@Nicolai Maximov Undo mod is not mine, I may check it later, but in principle, it should be the undo mod make the compatibility change.
Jean-Luc Picard Sep 28, 2023 @ 1:29am 
When placing an underpass and removing it with your undo mod, the game crashes when placing another underpass, due to missing id of the one removed before

Uncaught exception while in class UI::CSelector
urban_games/train_fever/src/Game/UI/Util/ScriptGuiManager.cpp:94: void __cdecl UI::ScriptGuiManager::IdRemoved(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class UI::ILayoutItem *): Assertion `m_comp2count[comp] > 0' failed.
Enzojz  [author] Jun 1, 2023 @ 1:11pm 
@trevor07210831 选择建好的入口在窗口里面有第二个按钮是进入修改模式的,然后仿照新建的时候的步骤把新的入口附加到要修改的入口上
Player02 May 30, 2023 @ 2:08am 
不好意思, 想請教一下怎麼修改已建好的地下入口? 想在原本建好的地道再增加入口
Freyfahrt Aug 28, 2022 @ 4:23am 
I'm really sorry, these are the very last lines of the stdout: 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)
Freyfahrt Aug 28, 2022 @ 3:01am 
soory, this belongs between 'Assertion Failure' and 'track traceback' (comment box is limitated on 1000 signs):

> Minidump: C:/Program Files (x86)/Steam/userdata/228385193/1066780/local/crash_dump/b37a3602-d491-4ee4-b850-2799fe3e9991.dmp
>
> In file: C:\GitLab-Runner\builds\1BJoMpBZ\0\ug\urban_games\train_fever\src\Game\construction\make_proposal.cpp:632
>
> In function: class std::unordered_map<int,struct std::pair<class ecs::Entity,float>,struct std::hash<int>,struct std::equal_to<int>,class std::allocator<struct std::pair<int const ,struct std::pair<class ecs::Entity,float> > > > __cdecl construction_builder_util::GetNodes2snap(const struct street_util::StreetToolkit &,const struct Construction &,const class std::vector<class ecs::Entity,class std::allocator<class ecs::Entity> > &,const struct CMat4f &,float,class ecs::Entity,const class std::vector<class ecs::Entity,class std::allocator<class ecs::Entity> > &)
Freyfahrt Aug 28, 2022 @ 2:58am 
Hi, okay, I'll do so...it's all lines, I guess, which concern the error:

> Assertion Failure: Assertion `it->second.second == 1' failed.

stack traceback:
=[C](-1): ?
=[C](-1): upgradeConstruction
C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(322): buildStation
C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua(476): ?


File name: C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1924671230/res/config/game_script/entry.lua

Key: game/res/gameScript/entry.lua_handleEvent

Minidump: C:/Program Files (x86)/Steam/userdata/228385193/1066780/local/crash_dump/13c002ab-c87b-4e37-b17c-d6df849b8c5e.dmp

Mod: "Underpass" (*1924671230, 1) (consider removing this mod and contacting the mod author)
Enzojz  [author] Aug 28, 2022 @ 2:25am 
@info You can post the stdout here, not necessary all but the last part (about 20-10 lines)
Freyfahrt Aug 28, 2022 @ 1:45am 
Hi Enzojz, love this mod, especially for construction of underground lines to reduce traffic jams. Unfortunately, now there occures a 'fatal error' when I want to build crossing stations and entries for them...the interface/ menue doesn't recognize each of the stations...and the game crushes. Could I send you a screenshot of the error report, because the report is very long. How can I send you the screenshot?
Enzojz  [author] Jul 16, 2022 @ 4:08pm 
@SovietSeamstress Not supported. Ps: you have a special avatar, are you maoist?
SovietSeamstress Jul 9, 2022 @ 10:31pm 
Great mod! Is there any way to place a station building instead of plain stairs?
Enzojz  [author] Jul 1, 2022 @ 2:12pm 
@Tearous 如果是两点间的最短路径的话,是会有的
Tearous Jul 1, 2022 @ 10:31am 
我想问一下 如果只是造了一对出入口,没有地下车站什么的,真的会有居民当做人行通道来用吗
Enzojz  [author] May 19, 2022 @ 12:51am 
@DrScarlett Yes, they are under street constructions
DrScarlett May 18, 2022 @ 1:09pm 
Never mind - found them under street constructions.
My first return to TF in a while with the spring update - first game: Enjoyz mods only!
DrScarlett May 18, 2022 @ 1:02pm 
Hi Enjoyz, do the underpasses still work after the spring update? I cannot find them in the road construction menu...
Enzojz  [author] Apr 14, 2022 @ 8:39am 
@s.f.s.d If I remembered correctly there's an extra button under module configuration after you built it, with this you are able to enbale the finished group being extensible.
s.f.s.d Apr 14, 2022 @ 6:34am 
Hello. I'm sorry, but it is possible to somehow add a new entry to exist group of entries? I have 3 connected entries and I want to add new one. But I have no idea how to do that. Please, help. Thank you.
Enzojz  [author] Mar 27, 2022 @ 1:23pm 
@kas.schmidt1611 that's a game "feature", I wished but I can't help over it..