[Question] LUA Scripts as Server side "Mutators"

[Question] LUA Scripts as Server side "Mutators"

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Engine Of Darkness
Posts: 87
Joined: 23 Dec 2006, 21:36

[Question] LUA Scripts as Server side "Mutators"

Post by Engine Of Darkness »

Hi guys, simple question, is the following stuff possible WITHOUT a specific mod or map?

Having a Lua script, which is loaded by the host (on game creation) which changes the behaviour of some stuff (let's say every unit gains more experience per kill)

The needed "features": no widget (meaning you can't turn it on/ off while ingame)
needs to work for every one in the game (every unit) no matter if someone has the script or not.

Possible? If not, will it be possible (if a DEV would be so kind to add that) anytime soon?.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Post by Auswaschbar »

It is not possible and will never be, because every client runs the same simulation, every client needs the same rules and lua-[widgets/scripts].
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

The closest thing to what you want (currently), are mod mutators that
implement a LuaRules script (or add gadgets to the list, etc...) One
advantage to this approach is that the mutator's description is shown
in the game list, so players will know what they are getting into before
joining a game.

The only real nuisance with this approach is having to download the mutator.
Engine Of Darkness
Posts: 87
Joined: 23 Dec 2006, 21:36

Post by Engine Of Darkness »

While I can understand that everybody needs the same files I fail to see what the problem about sending a lua file to clients is (other than possible misuse). I highly doubt anybody will write a +1 Megabytes LUA script anytime soon.

But people still need my "changed" mod right?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post by jK »

I would prefer an option to deactivate gadgets in the battle window before hosting a game, so you can switch between multiple setups
Post Reply

Return to “Lua Scripts”