CommonAPI2

If you liked this item, please rate it up on Steam Workshop page.

Author: eis_os

Last revision: 7 Apr, 2020 at 11:32 UTC (1)

File size: 5.44 MB

On Steam Workshop

Description:

If you want to use the testing branch, please unsubscribe this mod.

Currently this mod is incompatible with the testing/beta branch

CommonAPI2

CommonAPI2 provides functions for mod interoperability. Functions for track, road, bridge searching and ui handling.
Debug features, like tracing file access and direct access to TPFs lua runtime.

  • Mod list export and import
  • Change mod settings.lua ingame
  • CrashDebug for windows (see last 10 files opened when TPF2 crashes)
  • UI Parameter functions
  • Track module support code
  • Mod dependency managment
  • Check for mods on transportfever.net and update mods (requires 7-zip)
  • Menu access to important game paths
  • LUA Socket for using external lua debuggers
  • Fixes broken UG scripts:
    • Fix laneutil.makeLanes / laneutil.createLanes crashes
    • Fix FileFilter filtering stageing_area and userdir/mods

Problems:
If something doesn’t work: Close Transport Fever 2 (see taskmanager to be sure).
Then in Steam simply desubscribe the mod.

Crashes:
This mod does directly modifiy and enhance the ingame memory.
Therefore CommonAPI2 may not find all memory locations (fragments), specially after new builds.
There may be additional software on your computer changing memory (like screenscapture software)
This may or may not result in degraded functionality and/or crashes.

Support:
Please use https://www.transportfever.net/index.php?thread/13025-commonapi2/ and please provide a stdout.txt and description
Bad example:
CommonAPI2 crashes my game

Good example:
I use mod station x and when I try to build the station with commonapi2 the game crashes with error message: error
Attached the stdout.txt after the crash

Linux:
Linux support is in progress but not very stable. If it crashes to much, please disable native code via settings

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.