Lua Game Scripting

Lua Game Scripting

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

Moderator: Moderators

Post Reply
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Lua Game Scripting

Post by trepan »

Here's a preliminary (incomplete and very rough) document describing the
next feature that I plan to add (synchronized mod-based lua game scripts).

http://trepan.homelinux.net/spring/gamerules.lua

I took a look at what it would take to implement it, and found that most of
the work had already been done in LuaUI (I actually started by copying
LuaUI.cpp, and then removing about 75% of it).

Some things that this will make possible:
- Gaia features (and probably units)
- Growing resources
- Game modes like hold-the-flag
- Multiplayer scripted scenarios
- Limiting or disabling unit sharing (comm-ends team games)

P.S. This is still in the planning stages, so don't bother me with feature
requests. If anything, it'll just make me take longer to get to whatever it
is you want. The call-in and call-out listings are not complete, and some
of the formats are likely to change. I'm posting this now to get yall thinking,
not to be pestered ;)

P.P.S. Hopefully this will work nicely with mutators. We'll also see how
it plays out with respect to different maps...
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

Sounds neat trepan.

How would this work?

Is it a sepperate file or would it be included with a map?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

You just Include gamerules.lua in the mod package (or in one of its dependencies).
This is mod based, not map based. I might play with allowing map based control later,
but for now, mod only.
Last edited by trepan on 08 Feb 2007, 01:22, edited 1 time in total.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

<3 Trepan

Does it enable mandatory mod ui's?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

P3374H
No. That will probably never happen.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

rats...
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

:(
Oh well, looks like a very cool extension.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

This sounds really neat. Not a feature request but a question.

can this work with the missions to?

Will it allow say, an aircraft to fly by and drop of units for a mission?

This really sounds neat!
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post by TheFatController »

This looks excellent, I already have a few ideas :)

Would map based scripting be possible at some point too?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

smoth wrote:can this work with the missions to?
Will it allow say, an aircraft to fly by and drop of units for a mission?
already possible in the mission lua API. What would be nice is if the mission lua API had the GUI controls the lua UI has.
Post Reply

Return to “Lua Scripts”