Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Problems on playerworld53 (Mythic Legends) (https://forums.graalonline.com/forums/showthread.php?t=70551)

xXziroXx 12-02-2006 10:13 PM

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.

Chompy 12-02-2006 10:46 PM

You've tried to restart gserver/npcserver? Just a guess..

xXziroXx 12-02-2006 10:50 PM

Quote:

Originally Posted by Chompy (Post 1249435)
You've tried to restart gserver/npcserver? Just a guess..

Duh. :noob:

Chompy 12-03-2006 12:33 AM

Quote:

Originally Posted by xXziroXx (Post 1249436)
Duh. :noob:

:)

xXziroXx 12-03-2006 07:45 PM

Tried restarting them yet again, but still the same problem..

Chompy 12-03-2006 08:11 PM

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.. :[

DrakilorP2P 12-12-2006 11:40 PM

/stats revealed nothing immediately suspicious.

Twinny 12-13-2006 09:29 AM

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. ^^

WanDaMan 12-13-2006 09:58 AM

NPC Code:
function onActionCalled(currentX, currentY)
{
temp.curList = findnearestplayers(temp.currentX, temp.currentY);
for (temp.curPlayer: temp.curList)
{
//stuff
}
}



Wouldn't this work?

Twinny 12-13-2006 11:23 AM

I've never used that function. I made mine since I could control the distance used in searching.

DrakilorP2P 12-14-2006 07:46 PM

Ziro wanted me to highlight that he have already tested findnearestplayers() and testplayer(), both of which worked on other servers.

WanDaMan 12-14-2006 08:13 PM

Quote:

Originally Posted by DrakilorP2P (Post 1253507)
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...

xXziroXx 12-15-2006 06:04 PM

Quote:

Originally Posted by WanDaMan (Post 1253516)
Ugh, did he try 'findnearestplayers()' and not ''getnearestplayer()''; that's an old function...


Quote:

Originally Posted by xXziroXx (Post 1249423)
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. :\

Admins 12-16-2006 12:46 AM

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.

xXziroXx 12-16-2006 03:47 PM

Quote:

Originally Posted by Stefan (Post 1254057)
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 (Post 1254057)
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 (Post 1254057)
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* :noob:

Quote:

Originally Posted by Stefan (Post 1254057)
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. :)

Twinny 12-29-2006 05:41 PM

I went their and in one of my scripts i tried a clientside echo() and it didn't work. It works on Bomymon/Graal X for me so it's not my client =x.


All times are GMT +2. The time now is 02:40 PM.

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