DysoForums Forum Index DysoForums
 
GalleryGallery   Donate to DysotopiaDonate   Dysotopia.com homepageDyso.com
SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStats   RegisterRegister 
 Login to check your private messagesLogin to check your private messages   LoginLogin 

Scripting - Items - Lag- Help?

 
Post new topic   Reply to topic    DysoForums Forum Index -> Help
View previous topic :: View next topic :: Hide signatures  
Author Message
dreamin'
Hero


Joined: 11 Nov 2002
Posts: 625

Level: 22
XP
EXP: 51 / 59 EXP: 51 / 59 EXP: 51 / 59
 86%
PostPosted: Sun Apr 20, 2003 8:33 pm    Post subject: Scripting - Items - Lag- Help? Reply with quote

I'm writing a persistant player shop system at the moment. It'll allow players to sell items via a npc merchant/containers.
It uses nwnx/mysql to store the items and their owners.
Now I have to make a design decision:
Lag-wise, would it be better to

a) spawn all items the players want to sell in the merchants containers on module load, meaning that the merchant area would have lots of containers with lots of items during the whole uptime of the server

b) spawn the items only when a player enters the area and destroy them again when no player is left in the area

On a server like Dyso, i think we'd be talking about 10-20 containers with about 10 items each.

Thanks for your input


Last edited by dreamin' on Mon Apr 21, 2003 12:06 am, edited 1 time in total
Back to top
View users profile Send private message
Conrad Hollows
Har-Rhun Project Leader


Joined: 07 Sep 2002
Posts: 2161

Level: 38
XP
EXP: 13 / 153 EXP: 13 / 153 EXP: 13 / 153
 8%
PostPosted: Sun Apr 20, 2003 9:47 pm    Post subject: Reply with quote

Hmmm ... you tried to ask me about this in game and I was buried in stuff. icon_sad.gif

I am of a mind to think that spawning/destroying upon entry/exit would be the better way to go ... so long as it is actually clearing out the item footprints. If not, then it may just be easier to go the first route.
_________________
Envision something suitably witty here.
Back to top
View users profile Send private message Send email MSN Messenger
dreamin'
Hero


Joined: 11 Nov 2002
Posts: 625

Level: 22
XP
EXP: 51 / 59 EXP: 51 / 59 EXP: 51 / 59
 86%
PostPosted: Mon Apr 21, 2003 1:35 am    Post subject: Reply with quote

I chose the middle route for now, spawning the items when the first player enters, and destroying them after a certain time of inactivity.
But now I'm wondering whether containers have limited inventories, or if there'll just pop up new pages when i add new items.
icon_question.gif
Not that I want to build containers with 100 pages of inventory, but it'll make things easier if I wouldn't have to worry about it wether or not the 22nd sword will still fit in the container...

bah, i shouldn't be thinking about stuff like that at 3:36am, I'll go to sleep now. Or I'll log on to dyso icon_biggrin.gif
Back to top
View users profile Send private message
Jase
PostMon 04/21/03 1:41am
i dont know... I just use Mojo's Tradeskil One.....  Reply with quote
 
Marine436
Lamer


Joined: 26 Jan 2003
Posts: 1687

Level: 34
XP
EXP: 75 / 124 EXP: 75 / 124 EXP: 75 / 124
 60%
PostPosted: Mon Apr 21, 2003 2:25 pm    Post subject: Reply with quote

Destory them on exit and load on enter, But may i suggest you kill the items and the merchent, and reload the items and merchents...




I know a PW witch did away with the NWN merchents, due to the Lag and made there own chest system and table's
_________________
PHEAR DA CORD !
Back to top
View users profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DysoForums Forum Index -> Help All times are GMT
Page 1 of 1

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


Powered by phpBB 2.0.2 © 2001, 2002 phpBB Group