-
Notifications
You must be signed in to change notification settings - Fork 772
Added *consolemes script command #2440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
nice. will mean lots of updates for custom script is needed, but much better! |
npc/custom/etc/quest_warper.txt
Outdated
| warp $QW_SP_WarpMap$, $QW_SP_WarpX, $QW_SP_WarpY; | ||
| close2; | ||
| debugmes "Please check your special warp menu settings on the Warpra."; | ||
| consolemes(CONSOLEMES_INFO, "Please check your special warp menu settings on the Warpra."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be a warning too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
src/map/script.c
Outdated
| ShowDebug("consolemes: %s\n", StrBuf->Value(&buf)); | ||
| break; | ||
| case CONSOLEMES_ERROR: | ||
| ShowError("consolemes: (st->rid:%d) (st->oid:%d) %s\n", st->rid, st->oid, StrBuf->Value(&buf)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please put a space after :, eg (st->oid: %d)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
src/map/script.c
Outdated
| ShowError("consolemes: (st->rid:%d) (st->oid:%d) %s\n", st->rid, st->oid, StrBuf->Value(&buf)); | ||
| break; | ||
| case CONSOLEMES_WARNING: | ||
| ShowWarning("consolemes: (st->rid:%d) (st->oid:%d) %s\n", st->rid, st->oid, StrBuf->Value(&buf)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please put a space after :, eg (st->oid: %d)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
Also please change your target branch to master, it's impossible to merge right now as it's target stable branch. |
- deprecated `*debugmes` script command. - added `*consolemes` script command which display the console message based on `type`. - allow map-server console to auto logging into text file depend on type of message.
212c762 to
9f6ffd2
Compare
Pull Request Prelude
Changes Proposed
*debugmesscript command.*consolemesscript command which display the console message based ontype.Currently, the
st->ridandst->oidvalues, i keep it in bothShowWarning()andShowError(). Should we still remain it inShowDebug()? any advice?Issues addressed:
debugmeshas hardcoded stringscript debug ....seem unnecessary most of the time, and tend to ignored it.Sometime we use
debugmesto display info, which aren't really "debugging" just purely for information display, so its more appropriate to use other likeShowInfo,ShowStatusetc.Preview :
Details