Multipurpose widget in LUA for Spring 0.96

Multipurpose widget in LUA for Spring 0.96

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

Moderator: Moderators

Post Reply
Ionic
Posts: 12
Joined: 26 Aug 2009, 11:35

Multipurpose widget in LUA for Spring 0.96

Post by Ionic »

Multipurpose widget in Spring/LUA written by me (aka subionic) to teach players scriptwriting in spring. Tested with spring v0.96. Installation: copy to lua/widget directory.
No documentation attached - everything necessary is inside this readable code :)
Attachments
auto_repair_reclaim.lua.zip
(28 KiB) Downloaded 34 times
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Multipurpose widget in LUA for Spring 0.96

Post by CarRepairer »

Same file name as last time. Why new thread?

http://springrts.com/phpbb/viewtopic.php?f=23&t=31579
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Multipurpose widget in LUA for Spring 0.96

Post by Floris »

lol I accidently didnt disable this widget and forgot about it.

It put all air on roam, and by that... lose all control over it. I was puzzled for a moment. Lost a game due to this.
Ionic
Posts: 12
Joined: 26 Aug 2009, 11:35

Re: Multipurpose widget in LUA for Spring 0.96

Post by Ionic »

It is definitely better to train its use with AI then against real players :-) This script absolutely cannot guarantee win. It only can help a little during battle.
Num-7,8,9 can be used to focus autoatack stream on particular direction. All roaming units are driven by the script. You can selectively disable it by setting hold mode for unit. If you set "repeat" to on then units (particularly builders) also would be excluded from this automation.
Num-. enables fighters base - fighters attack enemy planes (bombers) in triples when they are identified on battlefield.
Num-0 enables com dgun autoattack
Num-4,5,6 (+shift,ctrl) handle area bombing in formation
Num-1,2,3 (+shift,ctrl) handle units movement in legion formation.
There are couple other things like crawling bombs guiding and cloak maintenance that this script can serve.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Multipurpose widget in LUA for Spring 0.96

Post by Jools »

You haven't considered splitting this widget into many smaller ones?
Ionic
Posts: 12
Joined: 26 Aug 2009, 11:35

Re: Multipurpose widget in LUA for Spring 0.96

Post by Ionic »

New version of the widget - improved units targeting and avoidance. Resolved some compatibility issues related to recent spring version.
Attachments
auto_repair_reclaim7_2.zip
Widget code (LUA)
(32.74 KiB) Downloaded 15 times
Ionic
Posts: 12
Joined: 26 Aug 2009, 11:35

Re: Multipurpose widget in LUA for Spring 0.96

Post by Ionic »

Btw. the widget was used mainly on BA
Ionic
Posts: 12
Joined: 26 Aug 2009, 11:35

Re: Multipurpose widget in LUA for Spring 0.96

Post by Ionic »

Updated version of widget for v100.0 spring engine and BA.
Attachments
auto_repair_reclaim7_3.zip
(34.05 KiB) Downloaded 24 times
Post Reply

Return to “Lua Scripts”