Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Need help with fread_char!

Need help with fread_char!

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Toy   (206 posts)  Bio
Date Fri 20 Feb 2004 10:41 PM (UTC)
Message
For some reason, all of a sudden, whenever a character logs in, including Imms, any changes made don't seem to load right.

For example I oinvoked 10 torches into my Imm's inventory, then made all my skills 100, and then saved. I checked the player file and it showed the torched and skills saved. Next I attempted to log back in, and upon doing so the Imm's skills were at 0 and he had no torches. While I was logged in, I checked the player file again, and it still showed the skills at 100 and him carrying 10 torches.

I'm sorta stumped because it isn't giving off any bug messages or crashing. I figure I need to to debug, but I'm not sure how to go about it using gdb to find the fread_char error.

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Fri 20 Feb 2004 10:43 PM (UTC)
Message
This would happen to me on my Windows Smaug. I'm not sure what caused it, or why it happened. I think there are some topics like this, that say how to solve this. I'm not sure though.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Toy   (206 posts)  Bio
Date Reply #2 on Fri 20 Feb 2004 11:15 PM (UTC)
Message
On your Windows Smaug? Has it ever happened with Linux?

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Sat 21 Feb 2004 04:22 AM (UTC)
Message
Nope, never. Linux smaug was always fine. Never had character saving problems. Hrm.. Maybe its fwrite_char. I'm not sure.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Toy   (206 posts)  Bio
Date Reply #4 on Sat 21 Feb 2004 06:02 AM (UTC)
Message
Alright, I think I may have narrowed my problem down a bit. I've found that if I make any changes to my Imm, such as raising HP, they stay and load after I log back in. It appears that the only things that aren't loading right and items in the inventory and skills.

I'm not sure which of the two, fwrite_char or fread_char, is giving me trouble. Any help would be greatly appreciated.

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Toy   (206 posts)  Bio
Date Reply #5 on Sat 21 Feb 2004 11:21 AM (UTC)
Message
In a strange twist, I was able to solve the problem. I removed a snippet I had added for a login menu, and the problem cleaned itself up. Was probably a CON_STATE problem, seeing as the snippet I removed was in comm.c.

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,103 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.