Here's a zipfile with that contains the basic setup for synced script gadgets:
http://trepan.homelinux.net/spring/LuaR ... adgets.zip
This package contains the following demos (some of them are not finished):
cmd_doline.lua
cmd_nocost.lua
share_allied.lua
share_delayed.lua
share_resources.lua
unit_morph.lua
unit_stealth.lua
To try it out, you'll first need the recent SVN build: (r3719 or later)
http://www.osrts.info/~buildbot/spring/executable/
http://www.osrts.info/~buildbot/spring/ ... wlibs/dll/
Unpack the zipfile in your SPRING directory, then start a single player game.
Use the AA or BA mods if you want to try out the unit morphing gadget, as it
has been configured for the armcom / corcom unit names. You can change
this by editing: LuaRules/Configs/morphdefs.lua.
Because synced scripts normally run their code from the mod's package (and
are forced to do so), you'll have to do this bit of setup to put the script into dev
test mode:
.cheat 1
.devlua 1
.luarules reload
Once it's running, the following new commands will be available:
.luarules help [command name]
.nc { reversible nocost }
.shareally { control sharing to non-allied teams }
.sharedelay {delayed unit sharing for comm-ends games }
.stopshare { cancel command for delayed sharing }
All units will get the Stealth command from the unit_stealth.lua gadget.
The main AA/BA construction units, mexes, solar collectors, and radar
towers get the Morph command from unit_morph.lua
LuaRules Demo Gadgets
Moderator: Moderators
My bad, the domain points to a new server since yesterday and apparently I messed up the permissions of /build/ directory on that server. Will fix ASAP.NOiZE wrote:Forbidden
You don't have permission to access /~buildbot/spring/build/mingwlibs/dll/ on this server.
and when i run the new exe it says i need a dll, so i figured i go download it.
In the mean time you can use http://server3.unknown-files.net/~build ... wlibs/dll/ (other server, but same files)