auto reset implant?

Post your tips, ideas for improvements, requests for new features, etc. here
Zing
Developer
Posts: 1422
Joined: Tue Oct 25, 2005 8:44 am
Location: ...Looking for a new Chew Toy

Post by Zing »

A heartbeat script is a script that gets fired every 6 seconds or so. On area enter triggers etc are different.

A heartbeat can be giving to just about anything, placeables, areas, npc's

For example a command for a NPC to say "hello" applied to a heartbeat script would cause the NPC to say hello approximately every 6 seconds or so without any requirement for interaction from players.

This is why we keep heatbeat commands to a minimum - as they get fired often (imagine 1000 scripts firing every 6 seconds) making them too long or bogging them down with complex code really eats into the available cpu cycles
Talos - God of Rebellion.


...zing broke you didnt he...ITS ZINGS EVIL THAT HAS BROUGHT THIS DAY....
-mgrjebbo

Elagneros
How is any of this relevant to my guild?
Posts: 950
Joined: Fri Apr 15, 2005 11:56 am
Contact:

Post by Elagneros »

More to the point the heartbeat scripts go off about every 6 seconds, and that's what makes them so memory intensive.
Former leader of the Legendary Brethren.
Elagneros' Excellent Equipment Emporium

Zing
Developer
Posts: 1422
Joined: Tue Oct 25, 2005 8:44 am
Location: ...Looking for a new Chew Toy

Post by Zing »

Elagneros wrote:More to the point the heartbeat scripts go off about every 6 seconds, and that's what makes them so memory intensive.
Oh sorry was my last post in Spanish? Silly me will try English next time
Talos - God of Rebellion.


...zing broke you didnt he...ITS ZINGS EVIL THAT HAS BROUGHT THIS DAY....
-mgrjebbo

JesterOI
Resident Spam King
Posts: 1016
Joined: Wed Jan 15, 2003 4:14 am
Location: SPAM!!!ville
Contact:

Post by JesterOI »

I can honestly see why Zing has his AV...

Is there no way to stagger HB's firing so they don't all fire at once or to lengthen the interval between HB's to help reduce server load?

Or why not have special versions of spells for monsters that last forever duration wise and once the monsters are finished buffing the HB's cut out.

Then, if there is going to be an unlimited duration version for monsters, may as well make it a version that includes all pertinent buffs for that monster in 1 spell cast.

Make the buff fire whenever they spawn or when a PC enters the area or however it works. Then they have that buff for the duration of their existence or until the buff is dispelled and they only recast on spawn or PC activity.

Would that get rid of the HB's?

I know it's probably A LOT of drudgery, but it would drastically reduce server load would it not?

Personally I know that if I had to give up seeing the dragons in sleeth take their naps just to get server stability like we used to have, I wouldn't miss it much.
LVL 69 LFGS!!!
Image
Image
The Hasselhoff 4 3v3r!!! Metis n3v3r!!!

User avatar
Joran
Spamalot
Posts: 584
Joined: Mon Dec 16, 2002 1:00 am
Location: Austin, TX

Post by Joran »

Yeah, the cool thing about a module like Neversummer4 is, the larger the area count, the more erratic heartbeat scripts get. I ran a few tests once and it turns out with anything more than about 80 areas, even with NO creatures in them, and NO code in any of the heartbeat scripts, the heartbeats begin to lag to about 10 seconds....I can't imagine how bad they're lagging with all the areas we have now.

It leads to situations where the heartbeat scripts get so far behind they either just skip a few beats or lag significantly.

What might be good is to latch the buff scripts to the onSpawn event of the creature, and then in the onPerceive check to see if they've worn off yet and if they have, just re-apply the effects (without having the creature go through the motions of casting them). It'd be quirky but could be less heartbeat-intensive.

Elagneros
How is any of this relevant to my guild?
Posts: 950
Joined: Fri Apr 15, 2005 11:56 am
Contact:

Post by Elagneros »

Zing wrote:
Elagneros wrote:More to the point the heartbeat scripts go off about every 6 seconds, and that's what makes them so memory intensive.
Oh sorry was my last post in Spanish? Silly me will try English next time
Eh, I didn't notice the thread had gotten to two pages.
Former leader of the Legendary Brethren.
Elagneros' Excellent Equipment Emporium

Elagneros
How is any of this relevant to my guild?
Posts: 950
Joined: Fri Apr 15, 2005 11:56 am
Contact:

Post by Elagneros »

Joran wrote:What might be good is to latch the buff scripts to the onSpawn event of the creature, and then in the onPerceive check to see if they've worn off yet and if they have, just re-apply the effects (without having the creature go through the motions of casting them). It'd be quirky but could be less heartbeat-intensive.
That's an interesting approach, but would the effects go on the creature fast enough to mean anything if they were put in OnPercieve?
Former leader of the Legendary Brethren.
Elagneros' Excellent Equipment Emporium

User avatar
Joran
Spamalot
Posts: 584
Joined: Mon Dec 16, 2002 1:00 am
Location: Austin, TX

Post by Joran »

Elagneros wrote:
Joran wrote:What might be good is to latch the buff scripts to the onSpawn event of the creature, and then in the onPerceive check to see if they've worn off yet and if they have, just re-apply the effects (without having the creature go through the motions of casting them). It'd be quirky but could be less heartbeat-intensive.
That's an interesting approach, but would the effects go on the creature fast enough to mean anything if they were put in OnPercieve?
Sure, they'd be instantly applied.

MasterYoda
PKer
Posts: 1251
Joined: Sat Feb 25, 2006 2:14 pm

Post by MasterYoda »

LOL

the other day a hill giant chased me and my friends down the hill to oger pass........ he was crazy buffed be thankfull you didnt get attacked by him :D
TGPO wrote:Man, dont u hate it when yoda is right
Amoenotep wrote:yeah....he's a little right :(
Image

Elagneros
How is any of this relevant to my guild?
Posts: 950
Joined: Fri Apr 15, 2005 11:56 am
Contact:

Post by Elagneros »

Joran wrote: Sure, they'd be instantly applied.
That might be a good solution to the lag problems that have been hitting NS 4 ever since the hearbeat scripts went in.
Former leader of the Legendary Brethren.
Elagneros' Excellent Equipment Emporium

Lorkar1

Post by Lorkar1 »

*bump*

Hey zing,
Is there any further word on the auto reset feature you had mentioned earlier in this thread? Is it going to be along the lines of the 3.5 reset?

Zing
Developer
Posts: 1422
Joined: Tue Oct 25, 2005 8:44 am
Location: ...Looking for a new Chew Toy

Post by Zing »

It's possible without much more tweaking from me.

However, we've just increased the DM staff so the requirement for this should be even less now.

An auto-reset has to be a last resort in my opinion.

More of you need to get connected to our IRC channel it's staffed often ;)
Talos - God of Rebellion.


...zing broke you didnt he...ITS ZINGS EVIL THAT HAS BROUGHT THIS DAY....
-mgrjebbo

Amoenotep
Lord DM Supreme
Posts: 4717
Joined: Wed Aug 30, 2006 4:09 pm
Location: in the mists of eternity

Post by Amoenotep »

almost the full 24 hour day there is bound to be a dm/dev idling away in IRC. make use of this tool if you need to. jump on and give them a shout.
Mask, Lord of the Shadows
Gruumsh, One-Eye
amoenotep@hotmail.com
----------------------------------
Image

User avatar
CrazyJ
Relic Raider
Posts: 881
Joined: Fri Mar 10, 2006 7:06 pm

Post by CrazyJ »

Did the irc client on the website ever get fixed?

Amoenotep
Lord DM Supreme
Posts: 4717
Joined: Wed Aug 30, 2006 4:09 pm
Location: in the mists of eternity

Post by Amoenotep »

it should work
Mask, Lord of the Shadows
Gruumsh, One-Eye
amoenotep@hotmail.com
----------------------------------
Image

Locked

Return to “NS4 Ideas and Suggestions”