Page 1 of 1

"Spin" don't use the "axis" value.

Posted: Mon Sep 13, 2010 5:23 pm
by D.Durand
I have (again) a problem with my last unit, the Arm T2 Kbot lab.

In a spin, command, the "Axis" value is not used. I can put a y_axis, a x_axis, or a z_axis, the spin axis don't change.

The OBJ seem good to me (at least, i don't find anything bad), and the spin commands are the same than my other kbot lab (and that one work correctly).

I joint a zip with the units files if somebody whant to look at it.

Re: "Spin" don't use the "axis" value.

Posted: Mon Sep 13, 2010 8:56 pm
by zuzuf
what happens if you replace it with 0, 1 or 2 ?

Re: "Spin" don't use the "axis" value.

Posted: Tue Sep 14, 2010 4:11 am
by D.Durand
If i replace x_axis by a number, nothing change :(

Re: "Spin" don't use the "axis" value.

Posted: Tue Sep 14, 2010 4:44 pm
by zuzuf
does it happen on all calls to spin ? Did you try all the values (0, 1, 2) ?

Re: "Spin" don't use the "axis" value.

Posted: Tue Sep 14, 2010 5:29 pm
by D.Durand
Yes, on all cases on spin.

But i think i found it : Look like the game "make" some script with the lua file, but for some reason don't automatically the file name and need a "createUnitScript" command at start. I used the T1 kbot lab lua as model, but don't changed the name in this command.
I changed the name in the "createUnitScript" command for the same name as the lua file, and now it work.

Re: "Spin" don't use the "axis" value.

Posted: Tue Sep 14, 2010 8:09 pm
by zuzuf
Ha yes I forgot to write about it. I tired now but tomorrow I'll write some documentation about scripting in Lua.

Re: "Spin" don't use the "axis" value.

Posted: Wed Sep 15, 2010 3:52 am
by D.Durand
Good idea :D

Re: "Spin" don't use the "axis" value.

Posted: Thu Sep 16, 2010 8:49 pm
by zuzuf
Sorry I could work on it yet (I had to fix the web site first :P), I'll do that this week end.