![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Gadgets are essentially scripts wrapped as modcache entries. The point is to be able to distribute community-created scripts via the repository. The name "gadgets" is inspired by Beyond All Reason RTS (running open source Recoil engine). Usual modcache treatment applies:
All methods of loading a script were extended to recognize the .gadget suffix and load the gadget appropriately:
ScriptCategory::GADGET
was added, all the above methods still load everything as ScriptCategory::CUSTOM
and the game adjusts it by detecting the '.gadget' file extension.The ScriptMonitorUI was extended to display .gadget file name for ScriptCategory::GADGET
script units.
Example .gadget file:
Several gadgets come bundled with the game (Most of the scripts are alpha prototypes, the mature tools: script editor, road editor). Browse and start them via TopMenubar/Tools menu/[Browse gadgets...] button. (view on GitHub).
This page was archived from GitHub PR #3233