Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Google, Yandex

Members: 0
Guests: 18
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Error saving player files
Forum Rules | Mark all | Recent Posts

Error saving player files
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jul 16, 2002, 7:37 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

This is odd.

I installed lockers snippet yesterday.

After I did that I had a player tell me to look at his inventory.
He had like 1000 balls of light in his inventory.

Today I was getting an error when players tried to save.
Log: [*****] BUG: Error writing temp file for ../player/d/Dasaern -- not copying
Log: [*****] LAG: Dasaern: save (R:10319 S:9.182158)

The player quit and relogged filling my systems bug file with........

Log: [*****] BUG: Fread_obj: too many layers 0
Log: [*****] FILE: ../player/d/Dasaern LINE: 3653
Log: [*****] BUG: Equip_char: already equipped (17).

Im sure its from the lockers snippet, but I cant imagine what as I followed it exactly.

Thanks for the help.

I figured out what the problem was. As usual for me anyways I was rushing it. I had 2 versions of his locker snippet and they conflicted.

This is where you get lockers
http://www.geocities.com/SiliconValley/Mouse/6754/



Vladaar
       
Post is unread #2 Jul 16, 2002, 7:57 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

Erm.. okay.. Never seen the snippet in my life so time for some guesswork.

The lag on saving is probably because you are talking about a large number of objects (a 1000 though.. hrm..), this'll just be simply the sheer amount of disk I/O it has to perform (I've managed to generate a 59Meg pfile once due to badly setup linked lists before Although this save lag may be more down to how the objects are stored because...

..the load routine is complaining about what seems to be loading the same object over and over, into the same equip location with the same layer, same status etc.. So while they are duplicates they appear to be trying to be EXACTLY the same object (same wear loc for example, thus the already equipped message).

If you are storing the locker with the pfile (which makes sense) and reloading the information, is this information being tied into the inventory list? is it being linked in properly? Is something nasty like a circular entry in the list being created? (Its possible, only takes a small typo with the loop being broken by some form of prevention mechanism (I dunno if you have one built in, or whatever..).

I'd flush the pfile of all objects (locker and not so) and try to reproduce the problem. Watching how the object lists save and load and see if the logic is alright.

This is all conjecture based on how I'd approach the problem, if you can point me towards the snippet I can prolly work something better out, unless someone else beats me to it
       
Post is unread #3 Jul 16, 2002, 12:31 pm
Go to the top of the page
Go to the bottom of the page

BroRich

GroupMembers
Posts20
JoinedJul 12, 2002

I am interested in this too as i would like to add this snippet. Where did you get it from?
       
Post is unread #4 Jul 22, 2002, 6:04 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

One place to find the snippet is here. I haven't even looked at this one to much.
http://www.shadow-lands.com/snippets.html

Another one can be found here.
http://www.vikingassociates.com/src/

And another one here.
http://www.geocities.com/SiliconValley/Mouse/6754/

I think the last two are the same not sure. I used the last one when I installed lockers awhile back. You will have to modify them some but over all its a good start.
       
Post is unread #5 Jul 22, 2002, 2:05 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Or if you're feeling adventurous, you could download a copy of Resortmud 4 and pluck the locker code from it. They're using one of those 2 versions. I forget which. But Senir had debugged this awhile back so it should work
Can't find a link to it at the moment though. It must have been taken offline for some reason.
       
Pages:<< prev 1 next >>