Search

Search found 66 matches

by thedude
26 Sep 2010, 21:49
Forum: Game Development
Topic: building remains at 0%
Replies: 11
Views: 1719

Re: building remains at 0%

How can one set it to infinite or do you mean just very big amount.
or can I just do it like this:

Code: Select all

Spring.SetTeamResource(gaia, "ms", infinite)
Spring.SetTeamResource(gaia, "m", infinite)
by thedude
26 Sep 2010, 21:35
Forum: Game Development
Topic: building remains at 0%
Replies: 11
Views: 1719

Re: building remains at 0%

Thanks guys! Yes the problem was GAIA not having any resources. (the working factory produced resources so it worked) Resources / Storage should be setup in the start unit spawning gadget now anyway Do you mean in the "modoptions.lua" file ? cause "game_spawn.lua" says: -- set st...
by thedude
25 Sep 2010, 18:36
Forum: Game Development
Topic: building remains at 0%
Replies: 11
Views: 1719

Re: building remains at 0%

I tried another factory I made and the code works using that one. So I think it has something to do with the unit-file or the script-file. I set buildCostEnergy and buildCostMetall to 1. Btw does GAIA also start with 1000 of metal and energy? The factory which does not work has a build-in platform o...
by thedude
25 Sep 2010, 13:56
Forum: Game Development
Topic: building remains at 0%
Replies: 11
Views: 1719

Re: building remains at 0%

Yes gaia is allowed to produce stuff. It seems like the "unit-file" of the factory has something that makes spring not letting the factory build the unit (by using luascript).
by thedude
24 Sep 2010, 20:01
Forum: Game Development
Topic: building remains at 0%
Replies: 11
Views: 1719

building remains at 0%

When I try to build a factory and give a build command to it the factory is created but it won't build the unit (well I can see the wireframe of the model and building-bar remains at 0%). When I cheat the factory and give it a build order then it will build the unit (so the yardmap should me ok righ...
by thedude
02 Sep 2010, 16:52
Forum: Lua Scripts
Topic: how to tell a builder to build a thing
Replies: 5
Views: 1518

Re: how to tell a builder to build a thing

sorry... can you read this code below? now the unit "armcv001" receive the order to move. how i can give the order to build "a" unit/object in x and y pos?? [4] = { logic = { [1] = { logicType = [[CountdownEndedCondition]], args = { countdown = [[start prova]], }, name = [[Count...
by thedude
31 Aug 2010, 19:53
Forum: Lua Scripts
Topic: how to tell a builder to build a thing
Replies: 5
Views: 1518

Re: how to tell a builder to build a thing

After about two weeks :evil: of tinkering this worked for me:

Code: Select all

Spring.GiveOrderToUnit(builderID, -defID, {1060,0,300,0}, {})
builderID: unitID of the builder
-defID: negativ defID of the unit to be build
1060,0,300: position where to build
by thedude
13 Aug 2010, 21:01
Forum: Game Development
Topic: transport issue
Replies: 2
Views: 775

Re: transport issue

Ooops I thought one can use "1" instaed of "true" and "0" instead of "false".
But when I change the "1" to true or remove the whole line from the script the transporter behaves the same way as before :(
by thedude
12 Aug 2010, 22:00
Forum: Game Development
Topic: transport issue
Replies: 2
Views: 775

transport issue

I want make a transporter which can transport enemy/gaia units. Here are the fbi/lua files of the two units (intruder=transporter, cube=unit to be transported) fbi file of intruder: [UNITINFO] { unitname=intruder; name=Intruder; description=Amphibious Heavy Assault Transport; acceleration=0.33; bmco...
by thedude
10 Aug 2010, 10:11
Forum: Art & Modelling
Topic: Random WIP 2006-2011
Replies: 8358
Views: 1406378

Re: Random WIP

No trigger :-)
by thedude
10 Aug 2010, 10:10
Forum: Game Development
Topic: Talon Mod
Replies: 23
Views: 7106

Re: Talon Mod

Both projects have still one issue in common: bumping other units out of the way to move somewhere :lol:
by thedude
04 Aug 2010, 11:38
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

Thanks dude but SirMaverick already told :wink:
SirMaverick wrote: For build commands the negative unitdefid is used.
Spring.GiveOrderToUnit(factoryID, CMD.INSERT,{-1,-unitdefid,CMD.OPT_CONTROL},{CMD.OPT_CONTROL});
by thedude
03 Aug 2010, 13:35
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

Nope,
Spring.GiveOrderToUnit(factoryID, CMD.INSERT,{-1,-unitdefid,CMD.OPT_CONTROL},{CMD.OPT_CONTROL});

doesn't work for me.
After trying a whole week to make the command work I feel like I already tried all possibilities. (But not the right one)
by thedude
30 Jul 2010, 17:31
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

The goog thing is I don't get errors but the factory still does not build the unit. What I use: Spring.GiveOrderToUnit(factoryID, CMD.INSERT,{-1,-unitdefid,CMD.OPT_CONTROL},{}); The "-1" puts my command at the end of the build queue. What have I to use to put the command on the first posit...
by thedude
29 Jul 2010, 19:42
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

Sorry but I don't get it. In the wiki (http://springrts.com/wiki/Lua_CMDs) there is this example: Spring.GiveOrderToUnit(unitID, CMD.INSERT, {-1,CMD.ATTACK,CMD.OPT_SHIFT,unitID2}, {"alt"} ); Because I have to use the build queue of my factory I have to use "CMD.OPT_CONTROL" inste...
by thedude
26 Jul 2010, 22:45
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

Is it possible to give a build command to a gaia factory?
(I couldn't find a build command to use it for Spring.Give Order() )
by thedude
05 Jun 2010, 21:08
Forum: Game Development Tutorials & Resources
Topic: Mod Question Repository... Questions come in, answers go out
Replies: 1167
Views: 176016

Re: Mod Question Repository... Questions come in, answers go out

Last time when I tried to make a custom-command-gadget it did not work for me when I tried to use CommandFallback but when I used the AllowCommand function instead it seemed to work.
by thedude
16 May 2010, 19:38
Forum: Zero-K
Topic: Question about the airplane plant
Replies: 14
Views: 3611

Re: Question about the airplane plant

I have a problem. If I use the CommandFallBack function my gadget doesn't work but when using AlowCommand it seems to work (little buggy but works). Can't find the problem :evil: . Please help.

http://sharetext.org/AKQ2
by thedude
14 May 2010, 11:25
Forum: Feature Requests
Topic: New missile movement type.
Replies: 24
Views: 3708

Re: New missile movement type.

I dunno if I got it right but here is what I was thinking about:
The plane builds a unit (missile) which is selfdestructable. So when the unit (missile) is build it would move a little along the y-axes and then move to the target and selfdestruct when reached the target. :roll:

Go to advanced search