Undocumented feature: Custom setup.ini items

Everything about modding.
Post Reply
User avatar
Tunari
Site Admin
Posts: 45
Joined: Fri May 19, 2023 11:47 am
Location: Finngolia
IQ rating: 89
iRating: 2545

Undocumented feature: Custom setup.ini items

Post 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 5503 times
Image
Image
Image
Image
Image
ImageImage
ImageImageImage
Post Reply