Page 1 of 1

Undocumented feature: Custom setup.ini items

Posted: Sun May 21, 2023 9:35 pm
by Tunari
No more using wings and whatever else for lua or animation inputs.
Custom setup items were implemented a while ago, but as usual it was never mentioned how they work, until a month ago when some guy decided to ask about them.
Credits to Schmawlik and T0rqu3_ from CSP discord. :ideacool:
:communism:

setup.ini

Code: Select all

[CUSTOM_SCRIPT_ITEM_0]
ID=<name of your value, you use this to access the slider. ie. SNEED>
SHOW_CLICKS=2
TAB=<can use an existing tab, ie. SUSPENSION, or just make a new tab, ie. SPECIAL>
NAME=<this reads in the menu>
LUT=<your_lut.lut> lut is presumably string|value
DEFAULT=<string? or index in lut? not sure>
POS_X=0.5
POS_Y=1
HELP=NULL
In lua, access by (mentioned in LUA definitions):
ac.getScriptSetupValue(id: string)
ac.setScriptSetupValue(id: string, value: number)

Demo: toggles a lua feature, the time travel special effects via a slider.
2023-05-22_00-29-18.jpg
2023-05-22_00-29-18.jpg (174.46 KiB) Viewed 5148 times