construction lua question

construction lua question

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderators: Moderators, Moderators

Post Reply
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

construction lua question

Post by oksnoop2 »

I got this factory in game and I can click on it's build menu to build a unit. An animation plays and then..nothing. No unit is created.

Here's my infolog. http://pastebin.com/m2263fc6f

Does it have something to do with:

[ 0] Loading sounds: 82 ms
[ 0] Camera and mouse: 229 ms
[ 0] Parsing unit icons
[ 0] Parsing definitions
[ 0] could not load buildOption data: missing file

Is it this missing file?
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6112
Joined: 29 Apr 2005, 01:14

Re: construction lua question

Post by FLOZi »

That message is a bogus one, fixed in the next version of spring's base files.

Post the factory unitdef and script?
0 x

User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: construction lua question

Post by oksnoop2 »

http://pastebin.com/m1d2bb7d2 script

http://pastebin.com/m184deeea unitdef

The lua's came from masse who got them from someone else i think. For the time being i'm also using his roborc factory. ..guess i should of asked him if it was cool to use that stuff. I'll get on that. the hover tank that's in the build menu is totally mine though.
0 x

User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Re: construction lua question

Post by Masse »

I bet that your unit doesn't fit out of my factory cause I made it really small on purpose.

try changing this

Code: Select all

yardMap = [[ooooooo ooooooo oocccoo oocccoo oocccoo oocccoo oocccoo]],
to

Code: Select all

yardMap = [[ooooooo ccccccc ccccccc ccccccc ccccccc ccccccc ccccccc]],
after that it should at least fit out of the building :) oh and it's ok to use my codes most of them are made with FLOZi's help!
0 x

Post Reply

Return to “Lua Scripts”

cron