Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2011, 04:12 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
keydown, float, and more.

When checking if the direction keys are pressed,
PHP Code:
temp.sum 0;
for (
temp.i: {0,1,2,3})
  
temp.sum += keydown(temp.i);
echo(
temp.sum); 
is always less than or equal to 2. I can understand doing this as an optimization, but can it at least choose to report the keys that do not also have the reverse direction pressed?
e: Nevermind the above. Thanks, Jazz.

Additionally,
PHP Code:
echo(float("0.0")) 
prints -1.

e: Another bug just recently discovered. sleep-like functions are messing up the callstack. The specifics are:
  • the parent caller is a public function
  • the call is to a public function of another object (I've tried both weapon and TStaticVar)
  • the public function contains a sleep-like function. Before the sleep, the callstack correctly contains an entry for the caller, afterwards, it does not
  • script hangs indefinitely

In as terse a script as possible:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
temp.= new TStaticVar();
  
temp.b.= function () { return this.c.a("f"); };
  
temp.b.= new TStaticVar();
  
temp.b.c.= function (b) { sleep(1); return "a" b; };
  
player.chat temp.b.a();
  
/* the below never gets executed */
  
player.chat "?";

__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 10-13-2011 at 05:29 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.