Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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?
Thanks for the hard work !
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.
Disable Natural Environment Professional 2; the mod seems to be incompatible with this station.
I hope Oppie eventually comes with a fix.
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??
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): ?
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?
If you could work out how to get the station buildings to provide additional waiting capacity that would be fab.
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.
{LINK REMOVED}https://i.imgur.com/xvvk29r.mp4
I'm also still getting my passenger's only waist upwards stood on the platform.
Inkompatibel.Der Bahnhof und die Assets lassen sich dann nicht mehr auswählen und bauen.
Ist es möglich diesen Mod an NEP2 anzupassen?
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
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 ...
because the platforms are too high
I forgot something ?
translated by Google
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.
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)
kannst Du bitte mal schauen, error siehe Bild:
Fehlerbild [www.elektronikfreak.de]
I downloaded the entire mod pack but only the modern roof is showing up, is there a fix for this?
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
How fix this? Youre mod too.