Transport Fever 2

Transport Fever 2

251 个评价
CommonAPI2 - Modular rail station adapter
   
奖励
收藏
已收藏
取消收藏
Station: Train Station
Misc: Script Mod
标签: Freight Station
文件大小
发表于
更新日期
1.418 MB
2019 年 12 月 26 日 上午 4:09
2022 年 4 月 10 日 上午 8:46
5 项改动说明 ( 查看 )

订阅以下载
CommonAPI2 - Modular rail station adapter

描述
Patched modular station construction supporting track types via CommonAPI2, common_interface.
49 条留言
AST1400 7 月 28 日 上午 3:59 
Is ths API available for cross road node edit?
eis_os  [作者] 2022 年 9 月 6 日 上午 2:32 
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 2022 年 9 月 5 日 上午 11:53 
Excuse me: 1. Can I subscribe separately? 2. Do you support Mac os?
eis_os  [作者] 2022 年 4 月 10 日 上午 8:46 
Should be fixed
jbalazs87 2022 年 4 月 9 日 下午 7:11 
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  [作者] 2021 年 1 月 28 日 上午 2:52 
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 2021 年 1 月 27 日 下午 12:06 
"
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  [作者] 2020 年 12 月 4 日 上午 8:52 
Uploaded hotfix, 1.8.2 should fix this error...
3236766189 2020 年 12 月 4 日 上午 6:47 
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 2020 年 7 月 21 日 下午 2:40 
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>