Question (SYSERR)

  • Castillo
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 weeks 2 days ago #8490 by Castillo
Question (SYSERR) was created by Castillo
/* Accessing player specific data structures on a mobile is a very bad thing
 * to do.  Consider that changing these variables for a single mob will change
 * it for every other single mob in the game.  If we didn't specifically check
 * for it, 'wimpy' would be an extremely bad thing for a mob to do, as an
 * example.  If you really couldn't care less, change this to a '#if 0'. */
#if 1
/** Warn if accessing player_specials on a mob.
 * @todo Subtle bug in the var reporting, but works well for now. */
#define CHECK_PLAYER_SPECIAL(ch, var) \
        (*(((ch)->player_specials == &dummy_mob) ? (log("SYSERR: Mob using '"#var"' at %s:%d.", __FILE__, __LINE__), &(var)) : &(var)))
#else
#define CHECK_PLAYER_SPECIAL(ch, var)   (var)
#endif

Hello,
If i understand correctly this was created to chase down a bug, and can be turned off right?

I'm wondering, because if i switch to a mobile and type: help (as eg.).
The system is flooded by those SYSERR.

Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.page_length)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.page_length)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.page_length)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.page_length)' at modify.c:412.
Jan 22 23:02:44 2020 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at modify.c:412.
(a lot more)

There is some from db.c too:
an 22 23:07:55 2020 :: SYSERR: Mob using '((pt->character)->player_specials->saved.pref)' at db.c:2561.
Jan 22 23:08:05 2020 :: SYSERR: Mob using '((pt->character)->player_specials->saved.pref)' at db.c:2561.
(more)

Turn off? Ignore?
Well, just to says that switching as a mobile generate a lot of SYSERR.

Bob

Please Log in or Create an account to join the conversation.

  • thomas
  • thomas's Avatar
  • Away
  • Administrator
  • Administrator
More
4 weeks 1 day ago #8491 by thomas
Replied by thomas on topic Question (SYSERR)
Thank you for the bug report. We will look into it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds