Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2006, 10:13 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Problems on playerworld53 (Mythic Legends)

Its seems to be some sort of a problem on the server, dont know exactly what it is other then that all levels have to be updated when you enter them or the tiles are weird (no script is doing it, Ive checked and double checked), and from time to time other players are only shown as shadows..

When using testplayer() and getnearestplayer(), you can only detect yourself, but all other players are shown with players[].

All the scripts have been tested on other servers where they work perfectly, so it have to be a problem with this playerworld or possibly the server its on.


Please check into it as soon as possible, we've had this problem for as long as I can remember.
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 12-02-2006 at 10:50 PM..
Reply With Quote
  #2  
Old 12-02-2006, 10:46 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
You've tried to restart gserver/npcserver? Just a guess..
__________________
Reply With Quote
  #3  
Old 12-02-2006, 10:50 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Chompy View Post
You've tried to restart gserver/npcserver? Just a guess..
Duh.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 12-03-2006, 12:33 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
Duh.
__________________
Reply With Quote
  #5  
Old 12-03-2006, 07:45 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Tried restarting them yet again, but still the same problem..
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 12-03-2006, 08:11 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Is there any difference then using testplayer() clientside or serverside?

Also, is much of you scripts using those?
try say /stats in rc and look for something that not right, that might help

If that didn't help, all you can do is too wait.. :[
__________________
Reply With Quote
  #7  
Old 12-12-2006, 11:40 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
/stats revealed nothing immediately suspicious.
Reply With Quote
  #8  
Old 12-13-2006, 09:29 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I've had problems with test player so I made my own function

PHP Code:
function findNearestPlayers(fx,fy,dist)
{
  for (
pl players)
  {
    if (
pl.x in |fx-dist,fx+dist|)
    {
      if (
pl.y in |fy-dist,fy+dist|)
      {
        return 
pl;
      }
    }
  }

You can edit it to make it add all accounts into an array or make it return an account name instead of an object =p.

You could also change it to look for players in a square area instead of a circle.
Reply With Quote
  #9  
Old 12-13-2006, 09:58 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
NPC Code:
function onActionCalled(currentX, currentY)
{
temp.curList = findnearestplayers(temp.currentX, temp.currentY);
for (temp.curPlayer: temp.curList)
{
//stuff
}
}



Wouldn't this work?
__________________
V$:CONFL16T
Reply With Quote
  #10  
Old 12-13-2006, 11:23 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I've never used that function. I made mine since I could control the distance used in searching.
Reply With Quote
  #11  
Old 12-14-2006, 07:46 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Ziro wanted me to highlight that he have already tested findnearestplayers() and testplayer(), both of which worked on other servers.
Reply With Quote
  #12  
Old 12-14-2006, 08:13 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally Posted by DrakilorP2P View Post
Ziro wanted me to highlight that he have already tested findnearestplayers() and testplayer(), both of which worked on other servers.
Ugh, did he try 'findnearestplayers()' and not ''getnearestplayer()''; that's an old function...
__________________
V$:CONFL16T
Reply With Quote
  #13  
Old 12-15-2006, 06:04 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by WanDaMan View Post
Ugh, did he try 'findnearestplayers()' and not ''getnearestplayer()''; that's an old function...

Quote:
Originally Posted by xXziroXx View Post
All the scripts have been tested on other servers where they work perfectly, so it have to be a problem with this playerworld or possibly the server its on.

Yes, Ive had problems with alot of commands on THIS server, and Ive tested the exact same things on several other servers. Something IS wrong with this server, and I am very dissapointed in GraalOnline right now since there has been no respons from a GraalOnline official in 2 WEEKS about this problem.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 12-16-2006, 12:46 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I have checked the things, the only big problem I have found was a lagging loop in the npcserver when opening the inventory, i have modified function_itemexists (the System/Inventory weapon was basicly triggering itself).

About tiles: better don't use the default flower tile, because when loading the level it will try to find the default flower tile and replace it. I have fixed this in my Graal version so that it is using the correct flower tile(s) depending on the tileset.

testplayer(): doesn't work when the level is noplayerkilling(), since it is only checking for things that are blocking. findnearestplayer/s are only working on serverside.

The problem with the shadow didn't happen to me.
Reply With Quote
  #15  
Old 12-16-2006, 03:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
I have checked the things, the only big problem I have found was a lagging loop in the npcserver when opening the inventory, i have modified function_itemexists (the System/Inventory weapon was basicly triggering itself).
Ah, that explains that lag - thanks for pointing that out.

Quote:
Originally Posted by Stefan View Post
About tiles: better don't use the default flower tile, because when loading the level it will try to find the default flower tile and replace it. I have fixed this in my Graal version so that it is using the correct flower tile(s) depending on the tileset.
Didnt know that, HOWEVER that doesnt explain why the same tile problem happens in onlinestartlocal.graal - only why it happens in ml_tiletest.nw .

Quote:
Originally Posted by Stefan View Post
testplayer(): doesn't work when the level is noplayerkilling(), since it is only checking for things that are blocking. findnearestplayer/s are only working on serverside.
Duh.. *slaps head*

Quote:
Originally Posted by Stefan View Post
The problem with the shadow didn't happen to me.
Like I said, only happens to some players BUT I think it was related to the old ganis since it havent happened with the new ones. Thanks Stefan, really appriciate your response.
__________________
Follow my work on social media post-Graal:Updated august 2025.
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 07:53 PM.


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