Page 1 of 1
REQ: building templete.
Posted: 13 Jun 2009, 23:18
by Super Mario
A widget that you can save and build a set of buildings over and over again.
Re: REQ: building templete.
Posted: 17 Jun 2009, 23:52
by Pendrokar
Lua has this function: Spring.TestBuildOrder
So it wouldn't be too hard. Except that I have never worked with Lua OpenGL Api. You are probably thinking one exactly like in Supreme Commander: Forged Alliance?
One problem though, in what queue should constructors build the template?
AFAIK in SA:FA it builds starting from the most costly unit downwards. SA:FA buildings are made that a unit can hardly get stuck in them. So it is different than in most Spring games.
[edit] Ah Im wrong -
Whenever you ask a builder unit to execute this building queue, the builder will execute the build exactly the way construction was done the first time, at exact relative positions.
Re: REQ: building templete.
Posted: 21 Jun 2009, 02:38
by Super Mario
Were do you get your information from? I can't seemed to find it.
Re: REQ: building templete.
Posted: 25 Jun 2009, 20:50
by Pendrokar
Super Mario wrote:Were do you get your information from? I can't seemed to find it.
Here -
http://www.gamereplays.org/supremecomma ... _templates
I probably won't make this widget because last time I played Spring was a year ago, then my PC couldn't handle it. Now it can! But now TASClient doesn't work and SpringLobby yells at me...
Re: REQ: building templete.
Posted: 13 Jul 2009, 10:55
by Pendrokar
Template build test -> ok (I had to have a function to count player's units because ID numbers are random since one update in Spring, so when starting the widget units that were before it cannot be added to a template because it won't know when which units was created

)
Todo:
Adding templates to file
Reading templates from file
GUI <-- hope for help from other lua scripters that have done graphics
[edit] BTW where should the GUI be? Maybe adding a command called Templates(if that's possible for a widget?) and it would switch unit icons to template icons which all selected units can build?
Re: REQ: building templete.
Posted: 17 Jul 2009, 12:39
by Pendrokar
What's done:
file writing
file reading
graphical template building(showing red/green ghosts where you can build and where you can't)
Todo: GUI(template selection)
[edit]
file writing and reading was tested, but didn't work...

Re: REQ: building templete.
Posted: 19 Jul 2009, 17:43
by Pendrokar
making progress -
