Request: More details on "FaceCharacter" error crash

Started by Dave Gilbert, Mon 09/09/2024 13:47:53

Previous topic - Next topic

Dave Gilbert

Hello! Currently if you make a "facecharacter" command and one of the characters isn't in the room, you get this error:



This error doesn't give me the script name or line number where the command was called, nor which character that is not in the room. Could those be added to the error message? It would save a lot of hassle.  :-D

Crimson Wizard

#1
There are likely multiple error messages that don't give any details, or not enough.
I even opened a ticket for bringing them to a uniformity:
https://github.com/adventuregamestudio/ags/issues/1486
and suggested that this should be done systematically.

There should be rather a list of messages to fix, instead of a separate topic per each single message.

This list is easier to gather from the engine source code, where it may be searched for function calls such as:
"debug_script_warn", "quit", "quitprintf" and similar.

Dave Gilbert


Crimson Wizard

#3
What bothers me about this particular case is that normally engine should have appended script location to this error, but somehow it did not.

EDIT: I confirm, script location is not posted, and it's not immediately clear whether this is specific to the given error. Could be it's broken for all error reporting in 3.6.1.

EDIT2: So, this was broken somewhere in the middle of 3.6.0 development.
Previously any such error would have a script line, but now it does not.

Dave Gilbert

I think (not at my desk now so can't confirm) if you get the error while in test-mode, it highlights the offending line of code. But if you're playing a stand-alone build, it just throws up the error.

Crimson Wizard

#5
Quote from: Dave Gilbert on Mon 09/09/2024 16:42:23I think (not at my desk now so can't confirm) if you get the error while in test-mode, it highlights the offending line of code. But if you're playing a stand-alone build, it just throws up the error.

Yes, but it should also append a script line to the error message. It did so in previous versions, but not anymore since 3.6.0. There's a mistake in the engine that prevents that.

EDIT: okay, i fixed this one, should be in the next 3.6.1 patch.



Dave Gilbert


SMF spam blocked by CleanTalk