Search found 47 matches
- 16 Feb 2010, 05:52
- Forum: Lua Scripts
- Topic: drawing shapes
- Replies: 5
- Views: 741
drawing shapes
In BA it is possible to make units that use shields to deflect plasma bombardments What mechanics does the game rely on to make these hollow shell spheres? (I canÔÇÖt find a gadget or widget that seems to do this job) And further more can I utilize this mechanic to make my own custom shapes with cus...
- 01 Feb 2010, 19:48
- Forum: Lua Scripts
- Topic: Gadget based buttons
- Replies: 3
- Views: 868
Re: Gadget based buttons
No. And it is a wonder you can get any code working at all with such a fluctuant spelling. sorry about that I will start spell checking my English before I post thanks for letting me know about the spelling now I can fix it :) I do have one more problem though Problem: have been trying to link my c...
- 31 Jan 2010, 23:00
- Forum: Lua Scripts
- Topic: Gadget based buttons
- Replies: 3
- Views: 868
Gadget based buttons
currently I am trying to understand what it takes to add custom command buttons to a units menue so far I am failry certain that I understand almost nothing of what is envolved in praforming this process but I have been looking at unit_mex_upgrade as a refrance and trying to make my own random butto...
- 29 Jan 2010, 04:16
- Forum: General Discussion
- Topic: Load and Unload Unit
- Replies: 1
- Views: 426
Load and Unload Unit
Hay I have a general question
is it possible to make units that are being carried by a transport free to shoot at units on the ground? like in supreme commander?
or would I be better off trying to create my own transport gadget with adustible varibale like that?
is it possible to make units that are being carried by a transport free to shoot at units on the ground? like in supreme commander?
or would I be better off trying to create my own transport gadget with adustible varibale like that?
- 26 Jan 2010, 03:43
- Forum: Lua Scripts
- Topic: GameFrame() --> unsafe chagnes question
- Replies: 7
- Views: 748
Re: GameFrame() --> unsafe chagnes question
1. Do NOT put a UnitDefID in your file. That can change at any time. Use something like UnitDefNames.armsub.id 2. That's strange that it's not finished. What unit are you trying, in what game? oh hmmm... I must be supre lucky then because the UnitDefID has been the same unit everytime... the only t...
- 25 Jan 2010, 20:49
- Forum: Lua Scripts
- Topic: GameFrame() --> unsafe chagnes question
- Replies: 7
- Views: 748
Re: GameFrame() --> unsafe chagnes question
hmmm in that case I am deffenetly doing something simple wrong Probibly I am missinterprieting the spring sites info on this command here is my code function gadget:GetInfo() return { name = "CUTests", desc = "creates units", author = "zwzsg (and then horribly ruined by Void...
- 25 Jan 2010, 07:48
- Forum: Lua Scripts
- Topic: GameFrame() --> unsafe chagnes question
- Replies: 7
- Views: 748
Re: GameFrame() --> unsafe chagnes question
aaaa I see
I guess I jumped the gun and thought there was something more too it than that
I dont have one last question though
when I spawn the unit it is un built
how do I make units spawn finished like the commanders at the begginging of a game?
I guess I jumped the gun and thought there was something more too it than that
I dont have one last question though
when I spawn the unit it is un built
how do I make units spawn finished like the commanders at the begginging of a game?
- 25 Jan 2010, 07:00
- Forum: Lua Scripts
- Topic: GameFrame() --> unsafe chagnes question
- Replies: 7
- Views: 748
GameFrame() --> unsafe chagnes question
in my quest for making Spring.CreateUnit() work I was told that I need to incorporate GameFrame() my scirpting in order to keep the "attemtp to make unsafe chagnes" error from showing up unfortunetly I am haveing ALOT of trouble finding more info on exaclty what I need to do with the GameF...
- 25 Jan 2010, 01:13
- Forum: Lua Scripts
- Topic: Spring.CreateUnit()
- Replies: 7
- Views: 1131
Re: Spring.CreateUnit()
with this spring creat unit stuff I was hopeing to make a gadget that would make a specific unit on a specific part of the map when I hit a key on the key board so far my code looks like this function gadget:GetInfo() return { name = "CUTests", desc = "creates units", author = &q...
- 24 Jan 2010, 04:43
- Forum: Lua Scripts
- Topic: Spring.CreateUnit()
- Replies: 7
- Views: 1131
Re: Spring.CreateUnit()
Though, it would be more safe to create units in GameFrame! Or are you saying the safety is useless? I see I did not realize that the game frame was the missing componet I will look into that now thanks for pointing me in the right direction :) and thanks for letting me know about the possiblity of...
- 24 Jan 2010, 04:05
- Forum: Lua Scripts
- Topic: Spring.CreateUnit()
- Replies: 7
- Views: 1131
Spring.CreateUnit()
I have been playing with the Spring.CreateUnit() command in the following script function gadget:GetInfo() return { name = "CUTests", desc = "creates units", author = "zwzsg (and then horribly ruined by Voidranaut)", date = "not sure", version = "1.0"...
- 24 Jan 2010, 00:09
- Forum: Lua Scripts
- Topic: Spring.GetGameSeconds question
- Replies: 5
- Views: 704
Re: Spring.GetGameSeconds question
aaa I see
wow I must be excited or I would have cought that
will try to slow down
thanks for the help
wow I must be excited or I would have cought that
will try to slow down
thanks for the help
- 23 Jan 2010, 23:06
- Forum: Lua Scripts
- Topic: Spring.GetGameSeconds question
- Replies: 5
- Views: 704
Re: Spring.GetGameSeconds question
lastplayed versus lastPlayed sorry for my ignorence but I dont fallow are you saying I should change the if() stamtent to include something more to do with lastplayed? sorry but I really dont fallow your remark EDIT: also as I have played with it I found that if ( ( Spring.GetGameSeconds() - lastPl...
- 23 Jan 2010, 22:28
- Forum: Lua Scripts
- Topic: Variable passing question
- Replies: 14
- Views: 2136
Re: Variable passing question
wow thank you all for all the awsome info :)
especially zwzsg thanks for taking the time to go over it all in such detail your explination really helped ALOT!!
especially zwzsg thanks for taking the time to go over it all in such detail your explination really helped ALOT!!
- 23 Jan 2010, 22:21
- Forum: Lua Scripts
- Topic: Spring.GetGameSeconds question
- Replies: 5
- Views: 704
Spring.GetGameSeconds question
I am currently working on the following script -- $Id: snd_noises.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: tests I need to run -- b...
- 23 Jan 2010, 09:37
- Forum: Lua Scripts
- Topic: UnitDefs[ defID ]["custom_param"] question
- Replies: 10
- Views: 1811
Re: UnitDefs[ defID ]["custom_param"] question
OMG thank you
ya 1 in fbi was considered a stirng... wow I honestly did not think to try that good call :)
hay can you type cast in lua? like if I needed to set something up later were I need the number to be used in an equation would be be able to cast it into an int or float? or boolen?
ya 1 in fbi was considered a stirng... wow I honestly did not think to try that good call :)
hay can you type cast in lua? like if I needed to set something up later were I need the number to be used in an equation would be be able to cast it into an int or float? or boolen?
- 23 Jan 2010, 09:26
- Forum: Lua Scripts
- Topic: UnitDefs[ defID ]["custom_param"] question
- Replies: 10
- Views: 1811
Re: UnitDefs[ defID ]["custom_param"] question
Then you probably have a issue with your FBI, it should look like this if you're using Lua (and you should be): customParams = { ProvideTech = "tech1", ProvideTechRange = "500", }, aaahhh ya that was something I was deffenetly missing thanks I did not realize my fbi needed the c...
- 23 Jan 2010, 04:05
- Forum: Lua Scripts
- Topic: UnitDefs[ defID ]["custom_param"] question
- Replies: 10
- Views: 1811
Re: UnitDefs[ defID ]["custom_param"] question
hmmm well the syntex you gave me is deffenetly right but it still is returning nil in the echo (in addition to not calling my audio) the spelling between the widget word "merciless" and fbi "merciless" is the same (I copy pasted and double checked) in fbi it says merciless=1; ......
- 23 Jan 2010, 03:41
- Forum: Lua Scripts
- Topic: UnitDefs[ defID ]["custom_param"] question
- Replies: 10
- Views: 1811
UnitDefs[ defID ]["custom_param"] question
I have made a widget with the following function inside of it function widget:CommandNotify(cmdID) echo( "got here" ) local unitID = Spring.GetSelectedUnits()[1] if(not unitID) then return end local defID = Spring.GetUnitDefID(unitID) local Nature = UnitDefs[ defID ]["merciless"]...
- 22 Jan 2010, 07:37
- Forum: Lua Scripts
- Topic: Variable passing question
- Replies: 14
- Views: 2136
Re: Variable passing question
thank you
I did not know i was posting in the wrong spot sorry
I dont want to clutter up the forum with the same quesiton in two spots is there a way to just move it all? or should I just repost on a new thread?
I did not know i was posting in the wrong spot sorry
I dont want to clutter up the forum with the same quesiton in two spots is there a way to just move it all? or should I just repost on a new thread?