. . .
varlist[2]->lVal = 1
varlist[2]->lVal = -1
varlist[2]->lVal = 0
varlist[2]->lVal = 0
varlist[2]->lVal = 1
varlist[2]->lVal = -1
varlist[2]->lVal = 1073217536
varlist[2]->lVal = 1074266112
@cmd changeentityproperty getlocalvar("self") "velocity" -0.8 0 0
void dasher( float Vx, float Vy, float Vz )
{// Dash with desired speed!
void self = getlocalvar("self");
getentityproperty(self,"direction") == 0 ? Vx = -Vx:"";
changeentityproperty(self, "velocity", Vx, Vz, Vy); //Move!
}
msmalik681 said:@DC
Will you still be looking into this. If you are just to confirm the only problem is when you pass the first argument (token) of "velocity" and it is a un-rounded minus figure ( example: -0.4 ) the Wii will not get the correct figure rounded fugues (example: -2) are OK. I am currently looking over axis.c but I can't figure out what I am looking at lol.
@White Dragon
Code:@cmd changeentityproperty getlocalvar("self") "velocity" -0.8 0 0
The fact that this above code works perfectly proves the argument is being corrupt when taken from a animation script like this:
void dasher( float Vx, float Vy, float Vz )
{// Dash with desired speed!
void self = getlocalvar("self");
getentityproperty(self,"direction") == 0 ? Vx = -Vx:"";
changeentityproperty(self, "velocity", Vx, Vz, Vy); //Move!
}
msmalik681 said:yes 0.8 will work as expected. but when the script reverses it to -0.8 that is the issue or even it you manually type any negative decimal placed value.
msmalik681 said:@DC
Will you still be looking into this. If you are just to confirm the only problem is when you pass the first argument (token) of "velocity" and it is a un-rounded minus figure ( example: -0.4 ) the Wii will not get the correct figure rounded fugues (example: -2) are OK.
I am currently looking over axis.c but I can't figure out what I am looking at lol.
White Dragon said:
int direction;
// Get current direction.
direction = getentityproperty(self, "direction");
// Reverse the X velocity adjustment if facing left.
if (direction == openborconstant("DIRECTION_LEFT"))
{
Vx = -Vx;
}
msmalik681 said:@WD
thanks for the pointer (no coding joke intended) it was one of my many tests to fix this issue.
MaxBeta said:Wait. So you guys finally managed to fix the directional bug???
OH HAPPY DAY! Congratulations to both of you!
I cannot wait to get home to test!
msmalik681 said:MaxBeta said:Wait. So you guys finally managed to fix the directional bug???
OH HAPPY DAY! Congratulations to both of you!
I cannot wait to get home to test!
Nope White Dragon fixed I just complained about it![]()
Thanks to Malik to investigate!!MaxBeta said:msmalik681 said:MaxBeta said:Wait. So you guys finally managed to fix the directional bug???
OH HAPPY DAY! Congratulations to both of you!
I cannot wait to get home to test!
Nope White Dragon fixed I just complained about it![]()
LOL But you did the research and found the potential problem.
Thank you for all your work Malik and thank you White Dragon for kicking this nasty bug in the butt. 8)
Parser_AddInstructionViaToken(pparser, NEG, (Token *)NULL, NULL );
Parser_AddInstructionViaToken(pparser, NEG, (Token *)NULL, NULL );
Parser_AddInstructionViaToken(pparser, SAVE, pInstruction->theToken, NULL );
Parser_AddInstructionViaToken(pparser, LOAD, pInstruction->theToken, NULL );
case VT_DECIMAL:
svar->dblVal = -(svar->dblVal);
case VT_INTEGER:
svar->lVal = -(svar->lVal);
case VT_DECIMAL:
svar->dblVal = -(svar->dblVal);
break;
case VT_INTEGER:
svar->lVal = -(svar->lVal);
break;
Script compile error in 'data/scripts/f_drago.c': line 0, column 0
Script error: failed to import 'data/scripts/f_drago.c': failed to compile
************* An Error Occured ***************
* Shutting Down *
Can't Compile script 'Cody' data/chars/cody/cody.txt
Total Ram: 75497471 Bytes
Free Ram: 59383839 Bytes
Used Ram: 16113632 Bytes