Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #16  
Old 09-16-2014, 04:57 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 354
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
here is a quick example of why it would be great if bitwise operations were fixed on serverside -

PHP Code:

function onPlayerLogin(temp.pl
  
temp.pl.attr[20] = 0;
  
public function 
setFlag(temp.pltemp.f)
  
temp.pl.attr[20] |= temp.f;

function 
unsetFlag(temp.pltemp.f)
  
temp.pl.attr[20] &= ~temp.f;

public function 
setHidden(temp.pl)
  
this.setFlag(temp.pl16);
  
public function 
unsetHidden(temp.pl)
  
this.unsetFlag(temp.pl16);
  
public function 
setGodMode(temp.pl)
  
this.setFlag(temp.pl256);
  
public function 
unsetGodMode(temp.pl)
  
this.unsetFlag(temp.pl256);

//#CLIENTSIDE
function onCreated()
  
this.onTimeout();

function 
onTimeout() {
  for (
temp.pl players) {
    
temp.temp.pl.attr[20];
    if (
temp.pl.attrSave != temp.a) {
      
temp.pl.attrSave temp.a;
      
temp.pl.isPaused temp.1;
      
temp.pl.isNotBlocking temp.2;
      
temp.pl.canNotAttack temp.4;
      
temp.pl.isRecoiling temp.8;
      
temp.pl.isHidden temp.16;
      
temp.pl.isRotating temp.32;
      
temp.pl.isShrinking temp.64;
      
temp.pl.isDead temp.128;
      
temp.pl.hasGodMode temp.256;
    }
  }
  
this.setTimer(0.05);

attack system -

PHP Code:
//#CLIENTSIDE
function canHarm(temp.pl)
  return
    !
temp.pl.canNotAttack &&
    !
temp.pl.isHidden
  

wall checking system -

PHP Code:
//#CLIENTSIDE
function isPlayerBlocking(temp.pl)
  return
    !
temp.pl.isPaused &&
    !
temp.pl.isNotBlocking &&
    !
temp.pl.canNotAttack &&
    !
temp.pl.isHidden &&
    !
temp.pl.isDead
  

__________________
This signature has been deleted by Darlene159.

Last edited by Jakov_the_Jakovasaur; 09-16-2014 at 06:54 PM..
Reply With Quote
  #17  
Old 10-06-2014, 03:43 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 354
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #18  
Old 10-25-2014, 09:20 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 354
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #19  
Old 10-26-2014, 06:09 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Jakov_the_Jakovasaur View Post
can somebody who works on a mobile server pretend that bitwise operations are used on serverside so this can be fixed?
btw i can confirm it being broken on mobile servers
__________________
MEEP!
Reply With Quote
  #20  
Old 12-07-2014, 09:16 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 354
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
__________________
This signature has been deleted by Darlene159.
Reply With Quote
Reply


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 12:01 PM.


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