Events on Command Bar -1 reply

Please wait...

molloyjh

I don't spend enough time here

50 XP

31st December 2006

0 Uploads

21 Posts

0 Threads

#1 11 years ago

Hi all, I've been playing around with the command bar model (i_galactic_controls) and have succeeded in adding new buttons to it. However now that I actually want these buttons to do something I'm stuck. I don't know where to look for the event scripts. I'm assuming its in the LUA files, but I don't know which one(s). For example I have a button I want to use to purchase space stations, i.e. filter the buidable space units to just the space stations, so I have the button itself added to the command bar. But how do I now use that to define what appears in the build bar? Any help appreciated. Thanks, John.




zThreerOhx

Slightly cooler than a n00b

50 XP

5th September 2009

0 Uploads

40 Posts

0 Threads

#2 11 years ago

Adding new buttons many people have done. The calls for the buttons are controlled via XML. However what those buttons do etc are hardcoded. I added a new row of buttons at one point however getting ships to appear etc on them was impossible. If you are referring to the additional build buttons that teams like SOTE have done is LUA controlled. However that is far different than what you are looking to do.




molloyjh

I don't spend enough time here

50 XP

31st December 2006

0 Uploads

21 Posts

0 Threads

#3 11 years ago
zThreerOhx;5225633Adding new buttons many people have done. The calls for the buttons are controlled via XML. However what those buttons do etc are hardcoded. I added a new row of buttons at one point however getting ships to appear etc on them was impossible. If you are referring to the additional build buttons that teams like SOTE have done is LUA controlled. However that is far different than what you are looking to do.

Thanks, I think it is the LUA stuff that I'm looking for. I've seen things like the Reward Parameters in XML, which you can use to give you ships etc, but filtering the build options on the command bar I would have thought was possible in the LUAs. The only problem is I don't know my way around the LUAs so don't really know where to start looking.




molloyjh

I don't spend enough time here

50 XP

31st December 2006

0 Uploads

21 Posts

0 Threads

#4 11 years ago

After trawling through everythingeaw I found a link to an Alpha Blue forum where they are doing much the same thing (which is the SOTE stuff you're referring to). Seems Sidious Invader has figured it out, but they are only opening it up to members, which is fair enough. I've signed up but am not a full member, but at least I know it can be done now.




Sidious Invader

Dark Lord Of The Sith

50 XP

8th January 2007

0 Uploads

853 Posts

0 Threads

#5 11 years ago

It's not hard to get your status upgraded, just use your talents, and share. Help by joining a mod team, and depending on your participation you can achieve a higher rank. It would then unlock some great stuff kept for participating members. Hope you take this advice to heart.

PS - What your trying to achieve has nothing to do with .lua. It has already been done with great results!




molloyjh

I don't spend enough time here

50 XP

31st December 2006

0 Uploads

21 Posts

0 Threads

#6 11 years ago

Sidious Invader;5226910It's not hard to get your status upgraded, just use your talents, and share. Help by joining a mod team, and depending on your participation you can achieve a higher rank. It would then unlock some great stuff kept for participating members. Hope you take this advice to heart.

PS - What your trying to achieve has nothing to do with .lua. It has already been done with great results!

Thanks si. Was having a look yesterday and will see what I can contribute. The only thing is I don't have much time to dedicate to modding so have been reluctant to join a mod team. I am curious what other goodies are available! I'm in the middle of trying to model a viscount star defender so might pop that up when it's done for starters!

Oh and I realised yesterday that the lua's were not the place to be looking. A bit of a eureka moment!