Transport Fever 2

Transport Fever 2

NL Modular Station
200 Comments
Romancia 8 Jan @ 9:59pm 
@adam08k

Hi, I had the same issue as you, with the mod being incompatible with NEP. However, I fixed it myself by updating the code of this station mod.

I've already posted the fix in this comment section, but I can repost it:


- Open the file "oppie_ns_station.con", found in this mod's directory (1066780\1957064125\res\construction\station\rail\modular_station)

- Scroll down to line 886, and you should see the following:
local cumsum = {
0,
#result.edgeLists[1].edges,
#result.edgeLists[1].edges+#result.edgeLists[2].edges,
#result.edgeLists[1].edges+#result.edgeLists[2].edges+#result.edgeLists[3].edges,
}

This appears to be outdated or broken code!

What I did to fix the mod was to replace said code with the following:
local cumsum = {}
local c = 0
for i = 1, #result.edgeLists do
cumsum[i] = c
c = c + #result.edgeLists[i].edges
end

- Now save the edited oppie_ns_station.con file.
Hanuka2137 7 Jan @ 10:40am 
Hi :D

I was using your mod for a while, but after installing a NEP (Natural Enviorment Proffesional) i can't use it anymore.
Old stations are working fine, i can add modules (in station editng) but can't create new ones (there is this grey block with error).
Can you help me?
Jimbo_1977 3 Jan @ 5:50am 
PIS = Passenger Information Screens
Anrhok (GER) 2 Jan @ 8:02pm 
Greetings, can you explain what PIS and No PIS means at the Plattforms?
maximevete 27 Sep, 2024 @ 9:16am 
Ik mis een kiosk module haha
abcshadow 27 May, 2024 @ 3:13pm 
just found a work arround use standars tracks and your ok if you set it to other speed tracks dutch or not the problem will accour
abcshadow 21 May, 2024 @ 8:36am 
so many errors in this mod can t make my dutch map people not standing on the platform but half way in the station perron looks really bad
Driver Kaldie 20 Mar, 2024 @ 3:55am 
Are these platforms also available as assets ?
spyos 12 Mar, 2024 @ 9:21am 
@Romancia thank you very much, it helped!
Driver Kaldie 16 Feb, 2024 @ 2:44pm 
Great work Oppie ! Are the stationbuildings (or some of them) from the Netherlands already in the making so that the station looks even more Dutch ? Also...you could consider mixing this one with Station Type-1 : Station Modules Pack mod, wich is a great mod as well.

Thanks for the hard work !
g3ralt 2 Jan, 2024 @ 7:14am 
Hi, station capacity for buildings is ignored. Buildings become useless.
Romancia 31 Dec, 2023 @ 11:56am 

NEVERMIND, I found the fix myself!

Okay, here's what needs to be done:

- Open the file "oppie_ns_station.con", found in this mod's directory (1066780\1957064125\res\construction\station\rail\modular_station)

- Scroll down to line 886, and you should see the following:
local cumsum = {
0,
#result.edgeLists[1].edges,
#result.edgeLists[1].edges+#result.edgeLists[2].edges,
#result.edgeLists[1].edges+#result.edgeLists[2].edges+#result.edgeLists[3].edges,
}

This appears to be outdated or broken code!

What I did to fix the mod was to replace said code with the following:
local cumsum = {}
local c = 0
for i = 1, #result.edgeLists do
cumsum[i] = c
c = c + #result.edgeLists[i].edges
end

- Now save the edited oppie_ns_station.con file.

I hope this fix works for everyone else having the "attempt to perform arithmetic on field '?' (a nil value)" issue.
Romancia 31 Dec, 2023 @ 11:01am 
To people having issues with this mod:
Disable Natural Environment Professional 2; the mod seems to be incompatible with this station.

I hope Oppie eventually comes with a fix.
AKscene 21 Jun, 2023 @ 5:13pm 
Is this still being serviced by oppiescc. There appear to be issues with it.
Styfauly 24 Mar, 2023 @ 9:01am 
Hey i was wondering if you could fix the bug where platform signs are floating when there isnt a roof, that would really be awesome
۩♥Marcel1311♥۩ 15 Mar, 2023 @ 3:13pm 
I was very happy to use this beautiful mod, but unfortunately it hasn't worked for some time:

Exception type: Lua exception

Error message: error: [string "E:/SteamLibrary/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con"]:951: attempt to perform arithmetic on field '?' (a nil value)
stack traceback:
=[C](-1): __add

@res/config/base_config.lua(102): ?

Key: game/config/ConstructWithModules

Mod: "NL Modular Station" (*1957064125, 1) (consider removing this mod and contacting the mod author)

In file: urban_games/train_fever/src/Lib/lua/State.cpp:642

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



Some other mod ensures the fault, but unfortunately I don't know which one. When I load alone with the mod, the mod works again. But I would not like to go through over 200 mods to see which mod this causes .... :/
Somebody know the mod??
patrick 16 Feb, 2023 @ 5:34am 
Hello, first thank for your Mod.

I get this Error and the game crashed

Error message: error: [string "C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con"]:951: attempt to perform arithmetic on field '?' (a nil value)
stack traceback:
=[C](-1): __add
C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con(951): terminateConstructionHook
@res/config/base_config.lua(101): ?
patrick 16 Feb, 2023 @ 5:33am 
File name: C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con

Key: game/config/ConstructWithModules

Minidump: C:/Program Files (x86)/Steam/userdata/227749487/1066780/local/crash_dump/1e30487f-9ea4-47fc-9432-20f91468862f.dmp

Mod: "NL Modular Station" (*1957064125, 1) (consider removing this mod and contacting the mod author)

Can you Help me or fix the issue?
physx 9 Feb, 2023 @ 11:14am 
Great mod - thank you! Big thumbs up when I saw the bridges auto-linking :)
If you could work out how to get the station buildings to provide additional waiting capacity that would be fab.
Jimbo_1977 4 Feb, 2023 @ 10:13am 
*beta issues*
briansyston 4 Feb, 2023 @ 9:25am 
Internal error !
Pizzaguy 7 Nov, 2022 @ 12:28pm 
Could you make a mod for modular car parking? I watched a video on commuter rail in Canada and ive always wondered how they have these huge 12 car long commuter trains on single tracks I watch go by every day. One of the things to note is that alot of traffic goes in and out of Toronto. Many commuters choose to take there car to the nearest train station and park it, then take the train to Toronto as there daily commute. As you imagine, this is not the most ideal situation but I would nevertheless enjoy taking this concept into transport fever 2. If there were some high capacity car parking garages you could add to a station, you can easily increase capacity for really long trains.
russelldagley20 7 Nov, 2022 @ 4:16am 
If You Knew How 2 Do Mods Then It Wold Not Keep Crashing So Often. Then If It Did Not Do All That Then It Would Let Me Build It Without It Crashing Often
Lernard'eau 4 Oct, 2022 @ 5:55am 
Ok so, I had a lot of "internal error" problems ingame and though it was because of this mod but it wasn't actually the case.
This mod works fine but doesn't get along withe a mod "Modular station asymetry fix". Both of them work separatly but creats errors when together.
KrozzHair 29 Sep, 2022 @ 1:56pm 
i had some trouble with the mod not working, but fixed it by unsubscribing, launching the game, exiting the game, and resubscribing.
maksimts3 29 Sep, 2022 @ 11:39am 
abbinkniels 29 Sep, 2022 @ 11:38am 
It doesn'twork anymore!
StolleJay | Daniel 27 Sep, 2022 @ 6:18am 
The collision of the entrance (Stairs) are way to big/long. Please fix that!
Dragon_Orb 14 May, 2022 @ 6:24am 
Hi, just wondering if this will be updated at some point in the future to support the new features with station buildings adding additional passenger capacity? I know the update has just landed and not expecting everything to be updated immediately, just wondering if it would be on the road map? Thanks :)
CMR1990 16 Dec, 2021 @ 3:45pm 
can also confirm this mod breaks the game. Shame really was a nice mod shame it was abandoned seemingly.
Ls_2011 9 Dec, 2021 @ 8:34am 
Don't subscribe to this mod it only causes problems
Jimbo_1977 25 Nov, 2021 @ 11:31am 
Any news on this fabulous mod?
I'm also still getting my passenger's only waist upwards stood on the platform.
HAVOC 5 Nov, 2021 @ 8:35pm 
Für alle die den Mod: "Natural Environment Professional 2" mit diesem hier nutzen!

Inkompatibel.Der Bahnhof und die Assets lassen sich dann nicht mehr auswählen und bauen.

Ist es möglich diesen Mod an NEP2 anzupassen?
Metropolitan Chemist 31 Oct, 2021 @ 9:19pm 
Can you make it available from 1850?
Fiesel-Wiesel 18 Aug, 2021 @ 6:44am 
Pls update - it was awesome!
BounceGenesisUK 15 Aug, 2021 @ 5:36am 
It's broken please fix
Daniel 26 May, 2021 @ 11:36am 
Hoi. Prima Mod. Maar het gebreuken van anderen spooren is helaas niet mogelijk. Kan je misschien jou Mod updaten voor andere spooren alsjeblieft?
Hallo. Prima Mod. Aber andere Gleise benutzen ist leider nicht möglich. Kannst du deine Mod vielleicht so updaten für andere Gleise bitte.
Bv. deze:
Z.b. diese:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2170492117
XDemonR 12 Apr, 2021 @ 3:58pm 
@louasphalappe same problem
louasphalappe 3 Apr, 2021 @ 9:32am 
Salvation
this mod is very beautiful and works very well but there is a big problem that I cannot use it: the passengers are drowned in the platform up to the waist ...:steamfacepalm:
because the platforms are too high
I forgot something ?
translated by Google
TastyFlavour 10 Mar, 2021 @ 5:54pm 
For everyone with the custom track errors.
I fixed it in https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2148841371

Besides the fix, you can make the stations as big as you like on both sides.:steamthumbsup:
Hartger 8 Mar, 2021 @ 2:52am 
I am getting the following error when trying to place a track next to a platform. Anyone know a fix?


Details:

Error message: error: [string "D:/SteamLibrary/steamapps/workshop/content/10..."]:1048: attempt to perform arithmetic on field '?' (a nil value)
stack traceback:
=[C](-1): __add
D:/SteamLibrary/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con(1048): terminateConstructionHook
@res/config/base_config.lua(101): ?


File name: D:/SteamLibrary/steamapps/workshop/content/1066780/1957064125/res/construction/station/rail/modular_station/oppie_ns_station.con

Key: game/config/ConstructWithModules

Minidump: C:/Program Files (x86)/Steam/userdata/32491476/1066780/local/crash_dump/d05b7b76-ba1d-4f26-b3e2-ebaba635341b.dmp

Mod: "NL Modular Station" (consider removing this mod and contacting the mod author)

In file: ..\..\src\Lib\lua\State.cpp:592

In function: void __cdecl lua::State::Call(int,int)
AnD3r 7 Mar, 2021 @ 2:38am 
I think it does, but even though i uninstalled it and reinstalled the Station it still doesnt allow me to place tracks
[3.19]Icemaster 27 Feb, 2021 @ 4:52am 
same prob. does it interact with the track module of NEP somehow? https://www.transportfever.net/filebase/index.php?entry/5942-natural-environment-professional-2/
elektronikfreak 13 Feb, 2021 @ 10:11am 
Hallo Oppie,
kannst Du bitte mal schauen, error siehe Bild:

Fehlerbild [www.elektronikfreak.de]
Steve Harrison, CPA 20 Jan, 2021 @ 5:27pm 
Hello,

I downloaded the entire mod pack but only the modern roof is showing up, is there a fix for this?
3236766189 14 Jan, 2021 @ 9:45am 
"
Exception type: Lua exception

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

Details:

Error message: error: [string "res/construction/station/rail/modular_station..."]:9: attempt to call field 'findOrMakeNewEdgeListNum' (a nil value)
stack traceback:
=[C](-1): findOrMakeNewEdgeListNum
res/construction/station/rail/modular_station/trackmodule.script(9): tab
@res/config/base_config.lua(88): ?


File name: D:/steam/steamapps/workshop/content/1066780/1947635847/res/construction/station/rail/modular_station/modular_station.con

Key: game/config/ConstructWithModules

Minidump: C:/Program Files (x86)/Steam/userdata/1032230213/1066780/local/crash_dump/8bd9053c-60b8-42d0-8dba-7bf4d634cecc.dmp

Mod: "CommonAPI2 - Modular rail station adapter" (consider removing this mod and contacting the mod author)

In file: c:\build\tpf2_steam\src\lib\lua\state.cpp:586

In function: void __cdecl lua::State::Call(int,int)
"
add mod track error
Hans 22 Dec, 2020 @ 7:41am 
@widtfield, gewoon op de groene knop "Abonneren" drukken en het spel opnieuw opstarten.
widtfield 21 Dec, 2020 @ 5:33pm 
does anybody tell me how to instal all the mods?
Jimbo_1977 5 Dec, 2020 @ 3:35pm 
Love this station , any chance of adding more track types please?