Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-22-2012, 03:28 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
V6 Function Requests

Just in case my post in the V6 Bug Thread doesn't get lost. If anyone has small function requests feel free to post them.

V6 Function/Event Requests:

PHP Code:
// This will do exactly what paused and 100ap does -- player doesn't block and swords do nothing. 
InvinciblePlayer(seconds); // Makes the player invincible for a set amount of time 
InvinciblePlayer2(); // Makes the player invincible until it uses... 
UnInvinciblePlayer();

player.dontblock();
player.blockagain(); 
Thread Explaining InvinciblePlayer:
Invincible Functions

A client-side event to detect when a flag (like attr[], client, clientr, serverr) is synced with the server-side value, so instead of doing:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setTimer(0.05);
}

function 
onTimeout() {
  if (
this.last != clientr.test) {
    
updateClientStuff();
    
this.last clientr.test;
  }
  
setTimer(0.05);

I could do:

PHP Code:
//#CLIENTSIDE
function onFlagSynced(flag) {
  if (
flag == "clientr.test") {
    
updateClientStuff();
  }

__________________
Quote:
Reply With Quote
  #2  
Old 10-22-2012, 06:43 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
player.setShape(x, y, width, height) could be handy along with the blocking functions
__________________
Reply With Quote
  #3  
Old 10-22-2012, 10:34 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by salesman View Post
player.setShape(x, y, width, height) could be handy along with the blocking functions
also player.setShapePoly(poly).
__________________
Reply With Quote
  #4  
Old 10-22-2012, 10:34 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
I'd really like to see some functions for the sake of being able to optimise custom systems, under the assumption that native code is much faster than GScript. If Graal is ever going to expand and try to attract a higher number of players, it's important to reduce the lag that can occur around a lot of players.

PHP Code:
getScreenPlayers(); //returns an array of all players visible on your screen
getAreaPlayers(xywh); //returns an array of all players within the specified box
getNicknameNPCs(); //returns an array of all NPCs which have a nickname and are visible
hideAllImages(); //hides all displays, instead of either hideimg(start, end); or multiple hideimg(index);
display.attachToObject(object); //makes a display automatically move along with the specified object, such as a player, similar to attachtoowner
2DBoxIntersect(box array 1box array 2); //returns whether 2 boxes touch edge-on or closer, {x, y, w, h}
2DBoxOverlaps(box array 1box array 2); //returns whether 2 boxes touch beyond their edge, {x, y, w, h}
2DBoxIntersectsPlayer(xywh); //returns if a box touches edge-on or closer with the player's own blocking area, , {x, y, w, h} + {player.x + 0.5, player.y + 1, 2, 2}
2DBoxOverlapsPlayer(xywh); //returns if a box touches beyond the edge of the player's own blocking area, , {x, y, w, h} + {player.x + 0.5, player.y + 1, 2, 2}
pixelRound(number); //rounds the number to the nearest pixel or 0.0625 
Reply With Quote
  #5  
Old 10-22-2012, 11:16 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
The ability to get an array of tiles in a box(equivalent to onwall2) without looping would be nice.

Like tilesBox(x,y,width,height) would return an array of all the tiles detected within the constraints.

Also tiletypeBox(x,y,width,height) which would do the same, but return tiletypes.

This is off the top of my head and there may be a more graceful function scheme, but all I know is when you start getting into customizing anything involving tile checks, you always have to loop and check tiles individually which is a pain and can be expensive at times.
Reply With Quote
  #6  
Old 10-23-2012, 02:13 AM
smirt362 smirt362 is offline
Tee Hee
smirt362's Avatar
Join Date: Feb 2005
Location: Texas
Posts: 2,101
smirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant future
Send a message via AIM to smirt362 Send a message via MSN to smirt362
Masking functions
__________________

Don Hertzfeldt <3
Reply With Quote
  #7  
Old 10-23-2012, 08:47 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by smirt362 View Post
Masking functions
Ohh, yes please. TShowImg objects need support for masks. 1-bit masks would be nifty already, but if possible, I wouldn't mind more advanced ones either
__________________
Reply With Quote
  #8  
Old 11-10-2012, 11:06 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
The isinvincible flag that was added doesn't protect the player from projectiles or explosions.
__________________
Quote:

Last edited by fowlplay4; 11-11-2012 at 12:17 AM..
Reply With Quote
  #9  
Old 11-11-2012, 12:25 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Since we're doing requests, I'd like profiles to allow highlighting in the text field. That would be very helpful.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 09:39 PM.


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