Trainz-mp Главная | Форум trainz-mp.ru | Обратная связь (Ваш вопрос, Создание пакетов) На наших часах: 4.05.2024 8:12:50

Здравствуйте Гость ( Войти через форум ) Авторизовавшись Вы сможете загружать сюда любые зависимости формата .CDP для игры Trainz Куиды Поиск

Репозиторий

<kuid2:388413:439002:4> NBS+ MathPlus + TrainTools Library V2.3

Тип: Библиотека
Опубликовано: 20.10.2021 1:03:59
Скачиваний: 60
Размер: 8.5 kB

Скачать

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 <kuid:388413:439002>
}
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.3: Added TrainTools Static Class with some shortcut methods relating to trains.


config.txt:

Файлы:
traintools.gs 1.8 kB
mathplus.gs 5.6 kB
thumbnail.jpg 5.2 kB
Общий объём файлов: 12.7 kB

Версии элемента:
kuid kind name build date size
<kuid2:388413:439002:5> library NBS+ MathPlus +LocomotivePlus +TrainTools +ezTS Library V2.4 4.3 23.04.2023 22:44:30 12.8 kB
<kuid2:388413:439002:4> library NBS+ MathPlus + TrainTools Library V2.3 4.3 20.10.2021 1:03:59 8.5 kB
<kuid2:388413:439002:3> library NBS+ MathPlus Library V2.2 (Luhn Algorithm for Checksums) 4.3 11.01.2021 0:56:42 7.8 kB
<kuid2:388413:439002:2> library NBS+ MathPlus Library V2.1 (Sin, Cos and Tan fixes) 4.3 17.07.2020 9:09:51 7.4 kB

Зависимости:
kuid author kind name build date size
Нет

Зависимые элементы:
kuid author kind name build date size
<kuid2:517519:1135:1> #517519 library Skoda 58E script library 3.7 24.07.2020 19:41:31 52.7 kB
<kuid2:517519:13166:2> #517519 interior Skoda 58E cab TRS19 4.6 12.01.2021 19:31:51 82.7 MB
<kuid2:517519:13166:4> #517519 interior Skoda 58E cab TRS19 4.6 21.10.2023 18:17:48 83.2 MB
<kuid2:517519:2402001:1> #517519 interior Skoda 47E cab TRS19 4.6 20.10.2023 21:29:15 78.8 MB
<kuid2:517519:2402001:2> #517519 interior Skoda 47E cab TRS19 4.6 21.10.2023 18:17:48 79.2 MB
<kuid2:517519:2422405:1> #517519 library Skoda simplified script library 3.7 28.07.2020 21:14:43 73.2 kB
<kuid2:517519:2422405:3> #517519 library Skoda simplified script library 3.7 20.01.2024 19:09:00 107.3 kB
<kuid2:517519:2422405:5> #517519 library Skoda simplified script library 3.7 23.04.2023 22:44:30 107.3 kB
<kuid2:517519:2422405:7> #517519 library Skoda simplified script library 4.2 20.01.2024 19:15:39 108.6 kB
<kuid2:517519:3402001:1> #517519 interior Skoda 47Em cab TRS19 4.6 20.10.2023 22:58:07 78.8 MB

Яндекс.Метрика


Powered by AKR © Камиль Ахметзянов aka kemal, 2011 - 2024