View topic - request : building combo multiplier thing



All times are UTC + 1 hour


Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 15 Aug 2008, 17:16 

Joined: 15 Aug 2008, 17:06
basically, i want my con to build two buildings over and over, much like the way we hold shift and drag to multiply build orders for one building, but for 2 or even more different buildings.

only because i like my t1 cons to build adv solar + mm a few times in the back. currently, its the only thing that stops me from devoting time to front lines


Top
 Offline Profile  
 
PostPosted: 15 Aug 2008, 17:24 
Modeler
User avatar

Joined: 13 May 2008, 15:51
Location: Universe
let 1 build solar and one MM?


Top
 Online Profile  
 
PostPosted: 15 Aug 2008, 17:28 

Joined: 15 Aug 2008, 17:06
there are syncing problems associated with that


Top
 Offline Profile  
 
PostPosted: 16 Aug 2008, 06:18 
User avatar

Joined: 24 Aug 2006, 05:13
Location: USA West
AFAIK, work is being done on something with said functionality.


Top
 Offline Profile  
 
PostPosted: 16 Aug 2008, 06:22 
Redacted
User avatar

Joined: 08 Jan 2007, 06:13
Location: Don't be silly. If there's no machine heaven, where do all the toasters go?
Hacked wrote:
there are syncing problems associated with that
Well, metal makers are roughly free, and if you have either widget or groupai managing them you don't need to worry about timing, since extras will turn off.


Top
 Offline Profile  
 
PostPosted: 16 Aug 2008, 06:56 

Joined: 15 Aug 2008, 17:06
thanks everyone
im actually trying to make this myself
on my quest to learning lua scripting for spring

currently, im having trouble with giveordertounit

good to know its being worked on by someone more competent than me =)


Top
 Offline Profile  
 
PostPosted: 16 Aug 2008, 07:58 
Modeler
User avatar

Joined: 13 May 2008, 15:51
Location: Universe
show the script?


Top
 Online Profile  
 
PostPosted: 16 Aug 2008, 09:42 

Joined: 15 Aug 2008, 17:06
give order to unit? all i have is this
Quote:
Spring.GiveOrderToUnit(Spring.GetSelectedUnits()[1],CMD.INSERT, {1, CMD.BUILD, CMD_OPT_INTERNAL, 11}, {"shift"})

i tried to get a t1 con to build an adv solar so i cut, pasted, and modified this line from the mexupgrader gadget in ba6.31

the spring api isnt like the .net api where everything is explicit
heres what i found in the syncedctrl wiki for giveordertounit parameters

anyone know what im supposed to put for params?
i also dont know how to add a button on the left


Quote:
Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil


"etc"? are you kidding?
idk, for me working with lua and spring is a little hard
perhaps a tutorial on making a button would be better than having to look through other luas

edit: i read the cmd section again after realizing there wasnt a build cmd. im still confused on how to build


Top
 Offline Profile  
 
PostPosted: 29 Aug 2008, 05:55 
Cursed Zero-K Developer
User avatar

Joined: 07 Nov 2007, 21:48
Location: Horse
Does the mod you're playing have metal generators?


Top
 Offline Profile  
 
PostPosted: 29 Aug 2008, 10:39 

Joined: 15 Aug 2008, 17:06
its BA


Top
 Offline Profile  
 
PostPosted: 29 Aug 2008, 10:52 
User avatar

Joined: 23 Apr 2006, 01:15
lurker wrote:
Well, metal makers are roughly free,


Not so, they cost a lot of E, which is critical in the early game...


Top
 Offline Profile  
 
PostPosted: 29 Aug 2008, 17:46 

Joined: 22 Jul 2006, 18:58
Hacked wrote:
Quote:
Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil


"etc"? are you kidding?
idk, for me working with lua and spring is a little hard
perhaps a tutorial on making a button would be better than having to look through other luas

edit: i read the cmd section again after realizing there wasnt a build cmd. im still confused on how to build

try cmdID = -unitDefID (the unit you want to build)
params = {x,y,z,buildfacing}
options = {"shift"}


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.