An updated TNI SDK is now available for current TRS22 SP6 builds, and can be downloaded here:
https://dl1.n3vgames.com/misc/TNI/TNI_SDK_135013.zip
The following updates are included:
TNI Physics Script API Enhancements
TNIPhysicsCore
TNI Developer Registration:
Note that you must be a registered TNI Developer to use the SDK, or load unsigned plugin DLLs.
Writing a plugin requires C or C++ knowledge and appropriate development software. To register your interest in becoming a TNI Developer, complete this registration form.
Have Questions?
If you have any questions, comments or bug reports, please post them on this forum thread.
You can also take part in TNI discussions on our Discord Channel.
Terry Palmer
Programmer
N3V Games
https://dl1.n3vgames.com/misc/TNI/TNI_SDK_135013.zip
The following updates are included:
TNI Physics Script API Enhancements
Trainz scripts can make calls directly into physics plugins, using the Vehicle.LibraryCallPhysicsPlugin() script function. The function calls will be added to the command stream passed to ProcessPhysicsCommands(). See the wiki for more information.
Similarly, physics plugins can post script messages directly to vehicles using a new outgoing TNIP_ScriptPostMessage command.
TNIGameObjectIDA new TNIGameObjectID object type is added, to allow identification of Trainz game objects such as trains, script libraries, etc. Matching functions are also provided for TNIPhysicsVehicle.
TNIPhysicsCore
The source code for the core physics plugin has been updated to match the current SP6 code. This includes multiple bug fixes and improvements that have been made since the last SDK release.
TNI Developer Registration:
Note that you must be a registered TNI Developer to use the SDK, or load unsigned plugin DLLs.
Writing a plugin requires C or C++ knowledge and appropriate development software. To register your interest in becoming a TNI Developer, complete this registration form.
Have Questions?
If you have any questions, comments or bug reports, please post them on this forum thread.
You can also take part in TNI discussions on our Discord Channel.
Terry Palmer
Programmer
N3V Games