Page 1 of 1

LuaRules Demo Gadgets

Posted: 05 May 2007, 09:55
by trepan
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

Posted: 10 May 2007, 19:40
by NOiZE
so ewhm this can be included in mods?

Posted: 10 May 2007, 19:50
by trepan
Because synced scripts normally run their code from the mod's package

Posted: 10 May 2007, 19:59
by smoth
WOOT, so I can officialy call my project a package?

Posted: 13 May 2007, 13:32
by NOiZE
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.

Posted: 13 May 2007, 14:10
by Tobi
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.
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.

In the mean time you can use http://server3.unknown-files.net/~build ... wlibs/dll/ (other server, but same files)

Posted: 07 Jun 2007, 06:48
by smoth
Um, trepan, where can I get these files again?

Posted: 09 Jun 2007, 22:35
by trepan
The first link should work again for a little while. I'll be moving
everything from the trepan.homelinux.net machine to another
machine soon.

Posted: 10 Jun 2007, 01:38
by ZellSF
I don't understand, are those options that are available to the host if they're in the mod? Or will the mod choose if they're on/off?

Edit: talking about the . commands