
Search found 8 matches
- 06 Dec 2014, 21:19
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
- 06 Dec 2014, 18:55
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
I somehow fixed the problem, I don't know how, all I did was tweak a few resource and building parameters in the unitdef. But now it works!
- 06 Dec 2014, 15:39
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
Warning: powerplant: Given yardmap requires 3 extra char(s)! is the SIG_BUILD defined in your script? It needs to be a power of two.. like 1 2 4 8 16 [/quote] yes,it is. It is set to 2. [quote="PicassoCT"] if it still doesent work - maybe the texture of the powerplant has opacity set..[/q...
- 06 Dec 2014, 15:00
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
So I switched on nanoparticles, and they do appear. I found the infolog, here is the bit where errors start to crop up: [f=0000000] Loading Unit Definitions [f=0000000] Error: Couldn't find WeaponDef NOWEAPON and explodeAs for base is missing! [f=0000000] Error: Couldn't find WeaponDef NOWEAPON and ...
- 06 Dec 2014, 10:50
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
I added the line Spring.SetUnitNanoPieces(unitID, nanopoint) (The base has only one nanopiece) To the code, but nothing changes, and the blueprints don't even show up. I know there is a building there because when I press shift, the footprint of the building shows up. So I changed the code back. Wha...
- 05 Dec 2014, 19:19
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
OK, so the building now appears as the set of blueprints on the map, which is progress, but it doesn't get actually built...
On a related note,what is it in the engine that differentiates buildings and units that allows units to build like this but buildings not to?
On a related note,what is it in the engine that differentiates buildings and units that allows units to build like this but buildings not to?
- 05 Dec 2014, 18:38
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Re: Please help me with my building script?
I used your code, but the problem still persists: the building the base builds appears at the pad,but I can't tell the base where to build the building.
- 05 Dec 2014, 17:59
- Forum: Lua Scripts
- Topic: Please help me with my building script?
- Replies: 15
- Views: 2844
Please help me with my building script?
I just started making a game in spring, by starting with the Example Game as a base. I want to make the base build buildings in a manner similar to the builder unit. So I made it a builder with a large range, and changed its script to this: local unitName = "base" local unitDef = { -- Inte...