length-laughter
AcidRain Clan Forums: Cleanup scripts needed
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
NeverWinter Nights Scripting
 AcidRain Clan Forums : NeverWinter Nights Scripting
Subject Topic: Cleanup scripts needed Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
{AR}Ghost
{AR}Gaming Gods
{AR}Gaming Gods
Avatar
Psychotic maniacal yea. But I mean well!

Joined: January 26 2004
Location: United States
Online Status: Offline
Posts: 3430
Posted: April 09 2007 at 5:46pm | IP Logged Quote {AR}Ghost

The topic says it all.
Right now the module :PTR GVM is over 60 meg.
Every day the DM's and builders add a little more.

The current cleanup script we have is a heartbeat script that cleans all the areas at same time every 5 min.

I added another set of calls to MOST of the areas.

I did not write these scripts they came from the nwnvault on a recommendation from someone.

This is the documentation from that.
I have not added in all the NPC calls to make the NPC's spawn correctly yet because I wanted to see if the scripts help before I spent another 14-20 hours editing the module NPC's to have the NPC 1 variable in thier variables ssection..

Here is the documentation

This is an area despawning/cleanup system. It is
efficient, not waisting cycles checking things
outside of the area in question. It comes in five
parts:
ld_area_enter goes in the area OnEnter event
ld_area_exit goes in the area OnExit event
ld_town_enter goes in the town OnEnter event
ld_town_exit goes in the town OnExit event
ld_area_ud goes in the area and/or town OnUserDefined event

Update:
v1.01
Added a hook to address the issue of players exiting the module while in an area.
Added a check for a local value on items to address disarmed weapons.
v1.1
Added a redundant PC check before the cleanup actually kicks in.
v1.2
Added a variable check for NPC during the creature deletion loop
Added town based scripts for enter and exit and updated the user defined event script with a new event for towns.
*NOTE* To address concerns that the clean-up system did not preserve NPC's in the area I added a check,
       to take advantage of the new check you need to add the variable name:NPC type:integer value:1 to NPCs
       that are in an area where creatures also spawn.
v1.21
Corrected a minor error in the event handler.

Lord Delekhan
lorddelekhan@ldrealms.org
--------------
-----------------------------

I am trying anything I can think of at this point to speed the module up.
People are telling me that I will never stop the lag here that the module is too large.
I have also been told I should split the module in half and run it on 2 servers with one module vault.

But I dont see that as a viable possability as even if we could afford 2 servers for this module that would still take something away from the whols GVM thing.

Anyway I am open to debate and would really like some help here.



__________________

Back to Top View {AR}Ghost's Profile Search for other posts by {AR}Ghost Visit {AR}Ghost's Homepage
 
oDEMONo
New to the community
New to the community
Avatar

Joined: September 13 2005
Location: Canada
Online Status: Offline
Posts: 31
Posted: April 27 2007 at 6:43pm | IP Logged Quote oDEMONo

Was wondering how you are making out with the clean up script?

Would like to say that the modual lagg has improved quite better with some good efforts. How ever, there is still lagg some may expreriance more that others, how many people also has a factor, but is is good to see the number of people alowed to play has increased.

Other severs hosting game still experiance lagg, and if you are playing online should not be disapponted if you do as it is a fact of life anywere you play.

My expriance with clean up script you sould use one clean up script in the entire modual.

modual size is very important as you have stated, preformance is a issue with large file and data, quality not quanty is a key. There are rules to building PW as you are most likey aware of. like how many placeables pre tile, ect.

If i could offer anything from a players prespective, not knowing the whole mechanics that make GvsM.  the amount of merchants that are unused my understanding is this a lagg causing issuse.

Back to Top View oDEMONo's Profile Search for other posts by oDEMONo
 
Forgereth
New to the community
New to the community
Avatar

Joined: November 12 2007
Location: Brazil
Online Status: Offline
Posts: 11
Posted: December 31 2007 at 9:53am | IP Logged Quote Forgereth

Oks... i have one cleaner... it works in stant alone for each area using a invisible object spawned in a event called by module heartbeat event... in my base script ( that first one, before changes to my work module ) this destroy encounter creatures and area of effects by default when don't have any player in area... but i keep a "destroy list" easy to configurate, only needs the object tag... i use it in a RP server with like 20 players online all time and dont get lag by the calls of this cleanup...

So, {AR}Ghost, i send you a PM in foruns with my e-mail address... if you wanna see it... i can send you the base module...

 

EDIT... i little correction... i cant send the PM =/



Edited by Forgereth - December 31 2007 at 9:55am
Back to Top View Forgereth's Profile Search for other posts by Forgereth Visit Forgereth's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum