Transport Fever

Transport Fever

Common API
Showing 1-6 of 6 entries
Update: 29 Sep, 2019 @ 3:12am

1.10.20190929
- new: age (in months) attribute for randomized vehicle animations
- fix: debug.getinfo while loading mod.lua could see commonapi loader, resulting in eat1963_track_package_1 overwriting commonapi settings.lua

1.9.20190922
- added entityId to vehicle animation data
- new: randomized vehicle animation for linux

1.8.20190920-dev (Windows only release)
- new: randomized vehicle animation now controlled by lua
- new: new commonapi.vehanimations.add(mdlname, fn) interface with vehicle animations enabled

1.8.20190914-dev
- new: make conditional code patching possible (settings.lua)
- new: randomized vehicle animation switchable by settings.lua enablenewanimations (default enabled)
- experimental menu: allow selecting default animation via random animation slider
- sync open & close random vehicle animation (except trains)
- add linux support for random animation,

1.8.20190902-dev (Windows only release)
- new partial console autocomplete via tab (won't work with array [] syntax)
- add new experimental feature: Disable country street to city street convert
- add new experimental feature: Randomized vehicle animation

1.8.20190823-dev
- fix: don't crash with nullptr entries in street repository access and backup functions

Update: 21 Jul, 2019 @ 10:05am

1.7.20190721
- *nix: listdirs.sh don't use readlink -f, first resolve directory via pwd -P, then call find. (faster, macOS friendly)
- This version should support preloading files on macOS (no native library support), thanks momocat
- Steam release

1.6.20190717
- fix: don't crash with nullptr entries in track repository

1.5.20190714-dev
- fix: call applyFileFilters while preloading files otherwise repository data is invalid.

1.5.20190630-dev
- fix: utils.getFileData broken since 20190627, screws up repositories
- fix: disabling native dll loading will result in a lot _native loading dummy calls
- internals of _commonModifyParam (used by modifyTrackCatenary) changed, report when obj returns no repository entries

1.5.20190627-dev
- utils.getFileData: use protected calls when trying to get data
- mods: load strings.lua via utils.getFileData preventing crashes
- mods: allow missing strings.lua and mods.lua (no warning about missing file)
- mods: add config to package.path while loading mods and strings.lua
- if Mod in UI::ModDataProvider is not found, try to enable non tpf mod without version nummer postfix
- Change internal event system, addEvent third parameter needs an unique string

1.5.20190522-dev
- fix CrashDebug: vehicle cargo goes crazy with Steam Version,
- CrashDebug: Last seen transport vehicle model name at crash ()
- CrashDebug: Use Ringbuffer and show last 20 files loaded by TPF only at crash
- Add TPFMM check, don't load binary component when in TPFMM

1.5.20190421-dev
- disable SetupLUA error message for TPFMM compatibility
- hook TPF Assert for better CrashDebug functionality
- add new CrashDebug hook for stream file open

1.5.20190407-dev
- fix Console not scrollable,
- added Console autoscroll checkbox
- fix Russian translation by nagor
- fix CommonAPI Settings dialog missing translation ingame
- added CrashDebug functionality (windows only)
Shows memory locations of Mesh pointer and adds output to CreateTriangleMesh

Update: 31 Mar, 2019 @ 4:35am

Native code version for steam release

1.4.20190331
- Use only one texture for Lato Font
- Add cyrillic subset to font glyphs
- Add internal switch to different fonts:
Support Japense, Thai, Chinese font glyphs.
(full game restart required, note the Chinese font loads a lot glyphs!)
- added Russian translation by nakor
- Steam release

1.3.20190324
- Fix UIWindow usage in ui.msgbox
- Add new menu entry "Settings" "More..."
- Don't use TPF ModRep::GetModDir with missing mods by checking UI::ModDataProvider::field_0x50
- Missing mods won't be added to modlist export
- Add header to activemodlist.lua export, complete mod list as text
- Add debug verbosity setting

- refactor commonapi.mods
- refactor commonapi.settings
- refactor commonapi/ui/modsettings.lua


1.2.20190310
- Native UI
WARNING: The internal ui system changed
uielement.onclick changed parameters (item, container)
commonapi.ui.UIWindow is now commonapi.ui.Window
checkbox will fire click event
won't fire click event on window when uielement is clicked
add visible attribute
- Update doc
commonapi.ui interface description
- Mod Settings Window, support subtype = integer for mod setting number type

1.2.20190228-beta
- Native ui
- Mod Settings Window close after save
use float as default numeric input
fix translation when other mod is loaded already
- Add mod list export import function
- fireevents now uses pcall
- Native
can be disabled via eis_os_commonapi_1/settings.lua
allow lua to change commonapi ui scale (saved in settings.lua)
add function to change modlist

1.0.20190217-dev
- refactor commonapi.mods
use new moddb table code allowing accessing aliases
merge code
- crash early when there is more then one commonapi version and show proper error message
- rewritten commonapi.init so commonapi is local until init() routine
- emulate _ when in init phase
- add mod version to stdout.txt modlist
- fix Mod Settings Window exports mod settings.lua with data function
- Native
add mod check routines to new game mod list
hide debug messages
enable linux build again, yay!
- change version to 1.2 and call it beta


1.0.20190205-dev
- don't load ui/modsettings.lua without ui (will crash)
- fix: mod strings.lua missing can't be loaded
- mods: load inactive mods to detect inactive mods properly
- Native
fix crash with ModList destruction, broken ptr compare
fix linux asm relocation (still no linux build yet)

1.0.20190204-dev
- check mod.lua info requireMods
- add version to modentry
- Native
fix windows steam hooking CheckSnapPointCurve
fix windows steam hooking CheckSnapPointSlope
add nasm to toolchain
compile lua with c++ throw support
add commonapi lua runtime in main menu
add modsettings window
add modlist hook
add modlist error window
add mod dependencies window
add ui checkbox, columns

1.0.20181231-dev
- Native
change ui layout for StreetTrackToolbox
fix render crash when changing graphic settings
add console history (up/down)
add ui translation support
add lua function to read userprofile language

1.0.20181226-dev
- Native
fix lua state missing after game save (keep first active lua state)
hook code slope and curve snappoint routine (thank you patch)
- Native ui
rename Label.name to caption
uiwindow.width, uiwindow.height added
use ui scale factor in lua code
add reloading code

1.0.20181223-dev
- Native UI
switched from key to ids in ui (To clarify it's not compatible with UGs UI Code)
New ui scale factor
Add float and int input ui element
Known bugs:
Disable slope and curve check doesn't work anymore
Update imgui to 1.66b

1.0.20181219-dev
- Native Code
Add new render thread hook
Add new native ui (api not stable yet!)
Add stdout.txt / lua console
Patch creation routine, maxrange now 2500

1.0.20181211-dev
- Native Code
support thank you patch

1.0.20181118-dev
- Native Code
Update imgui to 1.65

1.0.20181101-dev
- Native Code
always use runtime c++ stdout
code refactor

1.0.20181031-dev
- Native Code
fix Windows maxslope

1.0.20181028-dev
- Native Code
StreetTrackToolbox
Add new slope function
- Native Code Linux
fix TPF Repo destructor

1.0.20181024-dev
- Native Code Linux
port FS functions
found compatible build flags
fix crashing lua
add TPF Repo

1.0.20181014-dev
- bump minor version to 1
- commonapi.dmp uses bundled inspect.lua, so it's always available
- detect OS by package.cpath
- fix library loading on linux
- Native Code
Start of linux version

1.0.20181007-dev
- Native DLL
Alt-GR + C toggles CommonAPI Menu
StreetTrackToolbox
convert speed to m/s
(internal) find code section position and size via PE Header parsing

1.0.20181003-dev
- Native DLL
add follow short jmp to fragmentsearcher
find streetbuilder_maxCurvatures vector in memory

StreetTrackToolbox
add disable curvation checkbox to StreetTrackToolbox
change street eambankment setting aswell
- add own todo list

1.0.201809xx-dev
- Native DLL
repository code converted to c++ template
new StreetTrackToolbox window
add StreetType restore code
Code Refactor

1.0.20180722-dev
- Native DLL
add stdout.txt flush call
add TrackType restore code

1.0.20180717-dev
- Native DLL
add AltGR + C Hotkey for CommonAPI Menu
change render path, inject at tooltip drawing, fixes bug with mouse cursor

1.0.20180713-dev (internal)
- Native dll
add GUI Library
add CommonAPI Menu
enable construction window patch
add mini interpreter for search and patching
add tracktype repository hook
add ui access to tracktypes
- fix missing string: setting_filterstreets_desc

1.0.20180527-dev
- Add native dll for Windows
determine TPF Build version
add basic hook for CGame
disabled construction window size patch
- add conditional loader for dll
- utils.scanDirs use nativefs, huge speedup
- better compactEntries (support anything between braces)
- add filter for streets
- add repository subdirectory scanning
- add basic support for street types (default, usa)
- filter airport streets

Update: 21 Oct, 2017 @ 8:39am

1.0.20171021
- UI:
compress ui, reduces ui size for duplicate names.
Autoremove km/h in names, as speed is displayed already
- Steam: Add translation support for mods in workshop and staging
- settings.lua
compressui setting
- stdout.txt
repository preloader shows how many files to load and when done.
show details about detected game language
current ui settings

Update: 7 Oct, 2017 @ 9:37am

1.0.20171007 - Steam path bugfix

Update: 3 Oct, 2017 @ 10:02am

1.0.20171003 - first workshop release, alpha software, macOS untested