Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Characters loosing EQ.

Characters loosing EQ.

2004-12-15       - By Valnir

 Back
Reply:     1     2     3     4     5     6  

Here is a good question for you guys.

We have a problem where when a character is loaded via "get_char_offline"
and then another function ALSO gets the same char online/offline and does
"unload_char", it dumps all the eq, then re-saves and unloads the char at
the end of the prior function.

Example.

void do_finger ( CHAR_DATA *ch, char *argument )
{
   CHAR_DATA *victim;

   victim = get_char_offline( argument );
   check_followers( victim );

   // OUTPUT HERE

   unload_char( victim );
   return;
}

void check_followers( CHAR_DATA *ch )
{
   if ( !get_char_offline( follower ) )
       blah blah blah.

   unload_char( follower );
   return;
}

In "get_char_offline" the system uses "load_char_obj" and in "load_char_obj"
it checks for a valid liege...... by "get_char_offline" and then
"unload_char".

So we are unloading the char, before we're really done with it.. did I lose
you?

I am sure SOMEONE has run across this issue.

- Valnir

--
ROM mailing list
ROM@(protected)
http://www.rom.org/cgi-bin/mailman/listinfo/rom