Page 1 of 1

construction lua question

Posted: 26 Jan 2010, 05:06
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?

Re: construction lua question

Posted: 26 Jan 2010, 05:18
by FLOZi
That message is a bogus one, fixed in the next version of spring's base files.

Post the factory unitdef and script?

Re: construction lua question

Posted: 26 Jan 2010, 06:10
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.

Re: construction lua question

Posted: 26 Jan 2010, 12:00
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!