Post by Ozymandius on Mar 15, 2018 20:34:21 GMT
This message goes out to whomever is in charge of scripting for this module...
I've been playing NWN for a long time, almost since it's inception. I can script and I've created modules, so I know most of the ins & outs. However, I am new to this server and I've only been playing for 3 days. I met one of your steady players on another server. He said he was a recruiter for this server, so I figured I'd come and check it out.
One of the first things I've noticed when I logged in, was an enormous amount of lag. Now, I own a high-end PC and I usually run between 250-600 fps, and latency is almost non-existent for me, so I know it wasn't my PC. Then I heard a lot of other people complaining about lag, and not being able to do a "Daos Run" because it would be a death trap.
One of the things I know, for a fact, that causes lag, is an overloaded item shop. I've only come across 2 shops in your module... One in the Inn and the other in the Library (which no one uses because his buy-back percentage is low). So, essentially there's only one that everybody uses. I see pages upon pages of player-sold gear sitting in the shop with hardly anyone buying. The "Armor" tab alone, as of yesterday (03-14-2018), had 25 pages.
This is a big problem, so, I'll explain how the shop creates lag...
When someone sells an item to the shop, the game mechanics groups the same items together. So, for example, if I sold Bracers +1 to the shop, it gets placed next to the other Bracers +1 already in the shop. And let's say those bracers are located on page 2, and, to use yesterday's situation, there's 25 pages on the "Armor" tab. The game mechanics will insert those bracers next to the similar bracers on page 2, but page 2 is already full. So that means the last item on page 2 gets bumped to page 3. But page 3 is full, too. So, the last item on page 3 gets bumped to page 4, etc..., etc..., rinse, repeat, all the way to page 25. Compound this with the number of people using the same shopkeeper at the same time, all inserting and removing items from various tabs in the shop... and... Houston, we have a problem.
The server crashed about 13 hours ago because of this.
To resolve this problem and make everyone's gaming a lot more enjoyable, all that's needed is a small clean-up script in the shop. Have it run once per hour or every few hours (real time), and reset the shop to default. It'll give players enough time to buy things they may want, without overloading the shop.
I have noticed that logging in after a fresh server reset, when the shops are relatively empty, that there is a noticeable difference in playablility, and it only gets worse after a couple of hours have passed. So yeah, the overloaded shop is your culprit for the lag on your server.
I've been playing NWN for a long time, almost since it's inception. I can script and I've created modules, so I know most of the ins & outs. However, I am new to this server and I've only been playing for 3 days. I met one of your steady players on another server. He said he was a recruiter for this server, so I figured I'd come and check it out.
One of the first things I've noticed when I logged in, was an enormous amount of lag. Now, I own a high-end PC and I usually run between 250-600 fps, and latency is almost non-existent for me, so I know it wasn't my PC. Then I heard a lot of other people complaining about lag, and not being able to do a "Daos Run" because it would be a death trap.
One of the things I know, for a fact, that causes lag, is an overloaded item shop. I've only come across 2 shops in your module... One in the Inn and the other in the Library (which no one uses because his buy-back percentage is low). So, essentially there's only one that everybody uses. I see pages upon pages of player-sold gear sitting in the shop with hardly anyone buying. The "Armor" tab alone, as of yesterday (03-14-2018), had 25 pages.
This is a big problem, so, I'll explain how the shop creates lag...
When someone sells an item to the shop, the game mechanics groups the same items together. So, for example, if I sold Bracers +1 to the shop, it gets placed next to the other Bracers +1 already in the shop. And let's say those bracers are located on page 2, and, to use yesterday's situation, there's 25 pages on the "Armor" tab. The game mechanics will insert those bracers next to the similar bracers on page 2, but page 2 is already full. So that means the last item on page 2 gets bumped to page 3. But page 3 is full, too. So, the last item on page 3 gets bumped to page 4, etc..., etc..., rinse, repeat, all the way to page 25. Compound this with the number of people using the same shopkeeper at the same time, all inserting and removing items from various tabs in the shop... and... Houston, we have a problem.
The server crashed about 13 hours ago because of this.
To resolve this problem and make everyone's gaming a lot more enjoyable, all that's needed is a small clean-up script in the shop. Have it run once per hour or every few hours (real time), and reset the shop to default. It'll give players enough time to buy things they may want, without overloading the shop.
I have noticed that logging in after a fresh server reset, when the shops are relatively empty, that there is a noticeable difference in playablility, and it only gets worse after a couple of hours have passed. So yeah, the overloaded shop is your culprit for the lag on your server.