NBS+ MathPlus +LocomotivePlus +TrainTools +ezTS Library V2.4

NBS+ MathPlus +LocomotivePlus +TrainTools +ezTS Library V2.4

<kuid2:388413:439002:5>

Author: Laurinlaki
Kind: library
Build: 4.3
Size: 12.96KB
Uploaded: 2024-02-26
Web-site: trainz.de
Loadings:
12
-
0
+

NBS+ MathPlus +LocomotivePlus +TrainTools +ezTS Library V2.4

Tired of writing down basic math functions in your script over and over? Just add this to your script-include-table and load it by including mathplus.gs and you have easy access to rounding, advanced power function, approximations of sin/cos/tan and more!
Installation: !!NOTE!! BECAUSE THE QUOTE CHARACTER IS NOT USABLE IN ASSET DESCRIPTIONS, ALL QUOTES HAVE BEEN REPLACED BY TWO PERCENT SIGNS (%%)!
1. Add <kuid:388413:439002> to your script-include-table. Create a new script-include-table if you don't yet have one like:
script-include-table
{
0 <kuid2:388413:439002:5>
}
2. add [include %%mathplus.gs%%] to the top of your script file where the other includes are located
3. Congratulations, you can now access functions like [MathPlus.Round(5.62)]!

IMPORTANT!: If you have used an older version of the script that required you to load MathPlus through [World.GetLibrary] and have [MathPlus MathPlus;] as a definition at the top, that is no more! Please remove those two lines. MathPlus is now a static class and all functions can now easily be accessed by including the gs file and using MathPlus.Function(...) :)

Version 2.4: Added LocomotivePlus class. This class speeds up development of any locomotive scripts. Stop writing the SniffMyTrain function and its handlers into your loco scripts again and again, just base your locomotive script on the LocomotivePlus class and use the myAsset and myTrain objects provided.
This version also provides some RGB methods, preconfigured colour values and quick access to changing the colour and brightness of your headlights as well as the ezTS class I wrote two years ago to simplify track searches and never published so far. ezTS hasn't really been tested much in-game but I'm already including it in this release, if you encounter issues using it, please contact me.

Author: Mika K. 'laurinlaki'

    NBS+ MathPlus +LocomotivePlus +TrainTools +ezTS Library V2.4
  • config.txt 2.60KB
  • ezts.gs 4.06KB
  • locomotiveplus.gs 2.32KB
  • mathplus.gs 11.89KB
  • thumbnail.jpg 5.25KB
  • traintools.gs 1.85KB

Фотографии пользователей

Еще никто не добавил фото этого объекта