Transport Fever 2

Transport Fever 2

240 ratings
CommonAPI2 - Modular rail station adapter
   
Award
Favorite
Favorited
Unfavorite
Station: Train Station
Misc: Script Mod
File Size
Posted
Updated
1.418 MB
Dec 26, 2019 @ 4:09am
Apr 10, 2022 @ 8:46am
5 Change Notes ( view )

Subscribe to download
CommonAPI2 - Modular rail station adapter

Description
Patched modular station construction supporting track types via CommonAPI2, common_interface.
48 Comments
eis_os  [author] Sep 6, 2022 @ 2:32am 
Technical it's possible to use this mod on Mac in failback mode without CommonAPI2,
anyway all old rail mods should work perfectly without the adapter.
Nikomta Sep 5, 2022 @ 11:53am 
Excuse me: 1. Can I subscribe separately? 2. Do you support Mac os?
eis_os  [author] Apr 10, 2022 @ 8:46am 
Should be fixed
jbalazs87 Apr 9, 2022 @ 7:11pm 
Hello! I got this error, cannot modify/build new stations in old/new games:
"...
Details:

Error message: error: [string "C:/Program Files (x86)/Steam/steamapps/worksh..."]:712: attempt to index global 'commonapi' (a nil value)
stack traceback:
=[C](-1): __index
C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1947635847/res/construction/station/rail/modular_station/modular_station.con(712): ?
@res/config/base_config.lua(41): ?


File name: C:/Program Files (x86)/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/909604929/1066780/local/crash_dump/55320111-7eda-422c-be78-0a337aa21dce.dmp

Mod: "CommonAPI2 - Modular rail station adapter" (*1947635847, 1) (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)"
eis_os  [author] Jan 28, 2021 @ 2:52am 
The crash is in UGs trackmodule.script calling UGs trainstationutil.script, both files are vanilla game files my adapter doesn't replace, change or modifies.

Some other station mod replaces trainstationutil.script with an older version.

Please test the adapter on a new map without other station mods, then it should still work
3236766189 Jan 27, 2021 @ 12:06pm 
"
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
eis_os  [author] Dec 4, 2020 @ 8:52am 
Uploaded hotfix, 1.8.2 should fix this error...
3236766189 Dec 4, 2020 @ 6:47am 
Error message: error: [string "D:/steam/steamapps/workshop/content/1066780/1..."]:618: attempt to index global 'commonapi' (a nil value)
stack traceback:
=[C](-1): __index
__CRASHDB_CRASH__ struct lua::LuaException: c:\build\tpf2_steam\src\lib\lua\state.cpp:586: void __cdecl lua::State::Call(int,int): error: [string "D:/steam/steamapps/workshop/content/1066780/1..."]:618: attempt to index global 'commonapi' (a nil value)
stack traceback:
=[C](-1): __index

crash when electrified tools are used at stations
meRlinX_AT Jul 21, 2020 @ 2:40pm 
commonapi2.uiparameter: ERROR UI Parameter creation failed because _getEntriesAsList is empty, should not happen if native dll is loaded!
stack traceback:
...066780/1947572332/res/scripts/commonapi2\uiparameter.lua:455: in function <...066780/1947572332/res/scripts/commonapi2\uiparameter.lua:443>
(...tail calls...)
[string "C:/Program Files (x86)/Steam/steamapps/worksh..."]:72: in function 'makeParams'
[string "C:/Program Files (x86)/Steam/steamapps/worksh..."]:102: in function <[string "C:/Program Files (x86)/Steam/steamapps/worksh..."]:86>
meRlinX_AT Jul 21, 2020 @ 2:40pm 
es ging bis vor dem Update.

hab den mod deaktivert .. es sind aber noch immer Fehler im Logfile:

commonapi2.init 20200630
commonapi2.init: Your TPF2 version 'steam_29596_1' isn't listed as known good version, please update CommonAPI2