Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-04-2004, 03:29 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
GServer + NPCServer updates

Tomorrow all servers will be restarted. It will fix some bugs and improve the speed of gmaps.

Bug fixes:
- adding server flags by script works again (before it was blocked after some hours of uptime)
- the script command setplayerprop and setcharprop can only set valid color values (max 19), it was possible before to set more colors but that could possibly crash the client
- getnearestplayers(searchx,searchy,searchcondition) is sorting the player indices correctly (it's returning an array of player indices, starting with the closest player)
- a memory leak in the npcserver has been removed

Gmap optimizations:
To speed up the loading of gmaps, the parts of the gmaps are not loaded at startup anymore. They are only loaded when a player enters it or an npc accesses things on the map part. After a few minutes when all player left the map part and npcs don't do timeouts anymore, the map part will be removed from memory again. So the server can load gmaps faster and takes less memory, also you have less npcs on the gmap which should make some npc scripts faster.
The drawback is that npcs of those map parts (local npcs saved in the .nw file) are not loaded at startup, so when they do important things then there would be problems. To avoid that there are two new options for the gmap, which you need to specify in the .gmap file:

LOADFULLMAP
is loading all map parts at startup and is not removing them from memory, this would be the old behaviour

LOADATSTART
levelname, levelname, ...
levelname, levelname, ...
LOADATSTARTEND
is loading the specified levels at startup and is not removing them from memory, this way you can enforce the loading of important map parts without losing the advantages of the optimizations.

Normally you don't need to use the LOADFULLMAP flag, things should work quite smoothly without it since the map parts are loaded into memory as needed. Following npc functions/variables are enforcing the loading of map parts: onwall,onwall2,getareanpcs,testnpcs,putnpc2,npcsco unt,tiles[]
Reply With Quote
  #2  
Old 06-04-2004, 03:32 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Stefan
LOADFULLMAP, LOADATSTART, LOADATSTARTEND
Already got that :P
Reply With Quote
  #3  
Old 06-04-2004, 03:59 AM
LegendaryTsukasa LegendaryTsukasa is offline
Banned
LegendaryTsukasa's Avatar
Join Date: Dec 2003
Posts: 552
LegendaryTsukasa is on a distinguished road
Send a message via AIM to LegendaryTsukasa
Special
Reply With Quote
  #4  
Old 06-04-2004, 04:13 AM
matt8891 matt8891 is offline
Registered User
matt8891's Avatar
Join Date: Jul 2003
Location: New York
Posts: 0
matt8891 is on a distinguished road
Send a message via AIM to matt8891 Send a message via Yahoo to matt8891
Quote:
Originally Posted by Stefan
Tomorrow all servers will be restarted. It will fix some bugs and improve the speed of gmaps.

Bug fixes:
- adding server flags by script works again (before it was blocked after some hours of uptime)
- the script command setplayerprop and setcharprop can only set valid color values (max 19), it was possible before to set more colors but that could possibly crash the client
- getnearestplayers(searchx,searchy,searchcondition) is sorting the player indices correctly (it's returning an array of player indices, starting with the closest player)
- a memory leak in the npcserver has been removed

Gmap optimizations:
To speed up the loading of gmaps, the parts of the gmaps are not loaded at startup anymore. They are only loaded when a player enters it or an npc accesses things on the map part. After a few minutes when all player left the map part and npcs don't do timeouts anymore, the map part will be removed from memory again. So the server can load gmaps faster and takes less memory, also you have less npcs on the gmap which should make some npc scripts faster.
The drawback is that npcs of those map parts (local npcs saved in the .nw file) are not loaded at startup, so when they do important things then there would be problems. To avoid that there are two new options for the gmap, which you need to specify in the .gmap file:

LOADFULLMAP
is loading all map parts at startup and is not removing them from memory, this would be the old behaviour

LOADATSTART
levelname, levelname, ...
levelname, levelname, ...
LOADATSTARTEND
is loading the specified levels at startup and is not removing them from memory, this way you can enforce the loading of important map parts without losing the advantages of the optimizations.

Normally you don't need to use the LOADFULLMAP flag, things should work quite smoothly without it since the map parts are loaded into memory as needed. Following npc functions/variables are enforcing the loading of map parts: onwall,onwall2,getareanpcs,testnpcs,putnpc2,npcsco unt,tiles[]
Nice work stefan
Reply With Quote
  #5  
Old 06-04-2004, 08:46 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Stefan
- a memory leak in the npcserver has been removed
OMG YES!
(About time, but thank you )
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 06-04-2004, 11:36 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Read the damn netiquette or something and stop quoting in full you have not even anything to add.
Reply With Quote
  #7  
Old 06-06-2004, 08:14 AM
Curt1zzle Curt1zzle is offline
Starting not to love you
Curt1zzle's Avatar
Join Date: Sep 2003
Posts: 3,669
Curt1zzle has a spectacular aura about
Send a message via AIM to Curt1zzle
Quote:
Originally Posted by zokemon
OMG YES!
(About time, but thank you )
Damn I second that, hehe. Thank you!
__________________

This message has been deleted by Sam. Reason: you should better stop it now
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 04:41 PM.


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