Not a crash - but another entry in file error from 3 days ago

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
1 month 1 week ago #7893 by JTP
JTP created the topic: Not a crash - but another entry in file error from 3 days ago
What might have happened here since i see this in file error:

Apr 4 22:06:04 :: SYSERR: no valid target to act()!

?
Game didnt crash, but maybe a good idea to find out.

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

More
1 month 1 week ago #7897 by thomas
thomas replied the topic: Not a crash - but another entry in file error from 3 days ago
github.com/tbamud/tbamud/blob/0bb51e2bc2...36b/src/comm.c#L2676 :
 /* ASSUMPTION: at this point we know type must be TO_NOTVICT or TO_ROOM */

  if (ch && IN_ROOM(ch) != NOWHERE)
    to = world[IN_ROOM(ch)].people;
  else if (obj && IN_ROOM(obj) != NOWHERE)
    to = world[IN_ROOM(obj)].people;
  else {
    log("SYSERR: no valid target to act()!");
    return NULL;
  }
So, you are calling act(.., TO_ROOM) with a character in NOWHERE.

act() then warns about it and ignores the call.

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

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
1 month 1 week ago - 1 month 1 week ago #7898 by JTP
JTP replied the topic: Not a crash - but another entry in file error from 3 days ago
A so just a heads up. I'm beginning to hate these NOWHERE people haha
Last Edit: 1 month 1 week ago by JTP.

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

More
1 month 1 week ago #7901 by lacrc
lacrc replied the topic: Not a crash - but another entry in file error from 3 days ago
Not sure if that would help but, we had an issue with one of those act() TO_ROOM calls and we just couldn't track it properly, so we added the act() message to the warning output.
It was kinda of messy in the logs but it worked. Something like:
log("SYSERR: no valid target to act()! - Text: %s", str);

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

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
1 month 1 week ago #7902 by JTP
JTP replied the topic: Not a crash - but another entry in file error from 3 days ago
I'm almost sure that mine was again a person that logged out before message was received.

But Nice idea with string

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

Time to create page: 1.051 seconds