Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → jk dont execute the functions correctly
jk dont execute the functions correctly
2002-11-09, 10:39 PM #1
I mean, if i call to often ApplyForce, it will apply nothing.

I did a thing :

if (...)
print();
call move;

move:
dothings;

After a few moves, the bot was frozen, whereas i had the print message.

So i made this

IF (...)
print();
dothings;

And it worked

But now i have the pb, its the same for "Jk functions"

If in my doThings bloc i have "Applyforce". It wont apply anything after a few moves.

How can i correct this ?
what is the max function calls before "saturation" or i dunno?


----
i have an other question :

when you recieve a trigger, a pulse or anything, does it call it immediatly, or jk store the call with a fifo/lifo system, and waits :

-end of current execution ? ( i mean between{} )
-end of current function ?

[This message has been edited by TCNF_Merfolk (edited November 10, 2002).]
2002-11-09, 11:12 PM #2
I never heard of such a "saturation". Please post the code that is causing trouble. And you can easily find out the answer to your second question with some Print() statements at the right positions...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-11-12, 12:17 PM #3
If you have an if without {}s then it will only read the next 1 lines.
Use:
If(whatever)
{
Print("whatever");
call move;
Return;
}
I am _ Ace_1 _ , and I approve this message.

↑ Up to the top!