Page 1 of 1

I need help with my bos file

Posted: 29 Apr 2007, 10:54
by kbutt
I don't know what is wrong with my script, I pretty much did copy pasta from another working script (core ak from AA5.0 mod, probably the same script other mods use for ak), and put in my animations for my model. Scriptor is giving these errors when compiling:

Error (48): Unknown Identifier walklegs [C:\Spring\mods\SpringWork\modwip\scripts\GUNCOM.BOS ]
Error (92): Unknown Identifier SmokeUnit [C:\Spring\mods\SpringWork\modwip\scripts\GUNCOM.BOS ]
Error (100): Unknown Identifier healthpercent [C:\Spring\mods\SpringWork\modwip\scripts\GUNCOM.BOS ]
Error (101): Expected condition [C:\Spring\mods\SpringWork\modwip\scripts\GUNCOM.BOS ]

Here is my bos file.
http://files.filefront.com//;7375947;;/
Thanks in advance!

Oh, and sorry if this is in the wrong section, wasn't sure where I should post this...

Posted: 29 Apr 2007, 11:16
by smoth
The mod discussion area would better help you.

Posted: 29 Apr 2007, 12:00
by Tobi
moved to mods

Posted: 29 Apr 2007, 12:16
by smoth

walk()
{
if( bMoving )
{
Turn rarm to x-axis -2184 speed<-7281>;
Turn larm to x-axis 3276 speed<10922>;
Move lfoot to y-axis -9 speed[4];
Move lfoot to z-axis 0 speed[-23];
Move head to y-axis 21 speed[1];
Move head to z-axis 2 speed[-1];
Sleep 300;
}
if( bMoving )
{
Turn rarm to x-axis 1638 speed<12743>;
Turn larm to x-axis -1820 speed<-16990>;
Move lfoot to y-axis -11 speed[-8];
Move lfoot to z-axis 3 speed[13];
Move head to y-axis 21 speed[-1];
Move head to z-axis 3 speed[1];
Sleep 300;
}
if( bMoving )
{
Turn rarm to x-axis -2366 speed<-13349>;
Turn larm to x-axis 2912 speed<15777>;
Move lfoot to z-axis 5 speed[6];
Move rfoot to y-axis -7 speed[10];
Move rfoot to z-axis 5 speed[-10];
Move head to y-axis 22 speed[3];
Move head to z-axis 2 speed[-1];
Sleep 299;
}

} you were missing this bracket


walklegs()
{
if( bMoving )
{
Turn rarm to x-axis -2184 speed<-7281>;
Turn larm to x-axis 3276 speed<10922>;
Move lfoot to y-axis -9 speed[4];
Move lfoot to z-axis 0 speed[-23];
Move head to y-axis 21 speed[1];
Move head to z-axis 2 speed[-1];
Sleep 300;
}
if( bMoving )
{
Turn rarm to x-axis 1638 speed<12743>;
Turn larm to x-axis -1820 speed<-16990>;
Move lfoot to y-axis -11 speed[-8];
Move lfoot to z-axis 3 speed[13];
Move head to y-axis 21 speed[-1];
Move head to z-axis 3 speed[1];
Sleep 300;
}
if( bMoving )
{
Turn rarm to x-axis -2366 speed<-13349>;
Turn larm to x-axis 2912 speed<15777>;
Move lfoot to z-axis 5 speed[6];
Move rfoot to y-axis -7 speed[10];
Move rfoot to z-axis 5 speed[-10];
Move head to y-axis 22 speed[3];
Move head to z-axis 2 speed[-1];
Sleep 299;
}
if( bMoving )
{
Turn rarm to x-axis 0 speed<7888>;
Turn larm to x-axis 0 speed<-9709>;
Move rfoot to y-axis -11 speed[-11];
Move rfoot to z-axis 7 speed[8];
Move head to y-axis 21 speed[-3];
Move head to z-axis 3 speed[1];
Sleep 300;
}

} and this one


you also spell saber, "sabre" in your peice list.


enjoy.


Posted: 29 Apr 2007, 12:40
by kbutt
thank you! :lol:

Posted: 29 Apr 2007, 12:41
by smoth
No problem, good luck with your unit.

Posted: 29 Apr 2007, 15:45
by Tobi
code tags ftw even (or should I say definitely) if the text in it can't be pink.

Posted: 29 Apr 2007, 22:12
by rattle
I wish there was a better code tag which doesn't replace tabs with spaces and would allow you change the fontsize.

Posted: 29 Apr 2007, 22:52
by smoth
Tobi wrote:code tags ftw even (or should I say definitely) if the text in it can't be pink.
the code tags on my forum have colors :)