http://robowiki.net/w/index.php?title=Thread:User_talk:Wompi/Skipped_Turns_..._what_to_know_about%3F/reply_(14)&feed=atom&action=historyThread:User talk:Wompi/Skipped Turns ... what to know about?/reply (14) - Revision history2024-03-28T14:38:18ZRevision history for this page on the wikiMediaWiki 1.34.1http://robowiki.net/w/index.php?title=Thread:User_talk:Wompi/Skipped_Turns_..._what_to_know_about%3F/reply_(14)&diff=24881&oldid=prevWompi: Reply to Skipped Turns ... what to know about?2012-06-12T00:59:12Z<p>Reply to <a href="/wiki/Thread:User_talk:Wompi/Skipped_Turns_..._what_to_know_about%3F/reply_(9)" title="Thread:User talk:Wompi/Skipped Turns ... what to know about?/reply (9)">Skipped Turns ... what to know about?</a></p>
<p><b>New page</b></p><div>I think i got your bug figured out. Right now i'm to overtired to give you the numbers but i will do this tomorrow. <br />
<br />
Basically what it does is the system skips some turns without a skip turn event, it just misses the turns out (happens very frequently). So it looks like this:<br />
<br />
* 1 normal turn<br />
* 2 lost turn without any data and no skip event<br />
* 3 normal turn, you try to calculate the enemys x y but you get the wrong bearing from the system, your own values are ok<br />
* 4 normal turn with delta time = 1, you calculate the enemys x y with the right values but if you calculate the distance to the last (wrong) x,y you get some distance that is way out of line<br />
<br />
You can check this very easy if you just put the follow in onStatus(...)<br />
<syntaxhighlight><br />
if ((getTime() - lastTime) > 1)<br />
{<br />
System.out.format("blabla...\n");<br />
}<br />
lastTime = getTime();<br />
</syntaxhighlight><br />
<br />
blabla should print out without a skipped turn event or console message. <br />
<br />
Buahh 3:00am ... i have to sleep :)<br />
take care</div>Wompi