Skip to content
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

[WCCMMUD] Majormud - train stats full screen editor does not return control to the character #552

Closed
fletcherm opened this issue Mar 15, 2022 · 3 comments · Fixed by #571
Assignees
Labels
bug Something isn't working full screen display aka full screen editor majormud

Comments

@fletcherm
Copy link
Member

Module Information

  • Identifier WCCMMUD
  • Module Name Majormud
  • Version 1.11p package

Describe the bug

There are at least two ways to edit your character's stats with the full screen editor:

  1. Initial character creation.
  2. Walking into a room with a trainer and using the train stats command
  3. ... maybe more - perhaps there is something exotic that triggers training... not relevant for this item

Case #1 is working mostly ok (except for the extra line being printed, which is #544). Once training is finished you get control of your character.

Case #2 is causing this issue - after training stats, control never returns to the character. I have been getting control back by forcing Megamud to hangup, reconnect, and re-enter the game.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new character and save it with whatever stats. Default is fine. Wait until you get control of your character.
  2. Walk w, w, n. This will take you to the Newhaven trainer room.
  3. train stats
  4. Step through the editor again and save.
  5. See that control never returns to the player - it looks like it has hung after the SET SUICIDE message.

Expected behavior

Control should immediately return to the player.

Screenshots

Screen Shot 2022-03-15 at 14 35 57

Screenshot of me, patiently waiting.

Software Information:

  • OS: mbbsemu docker
  • Telnet Client: Megamud
@fletcherm fletcherm added bug Something isn't working module Defect/Issue related to a specific Module majormud and removed module Defect/Issue related to a specific Module labels Mar 15, 2022
@enusbaum
Copy link
Member

enusbaum commented Jan 31, 2023

Looked into this with @fletcherm

The error seemed to be related to the incrementing of substt when returning control from the FSD back to the module. Entering the FSD to train stats, the channel substt is 130. After exiting the FSD, substt is incremented by one and sttrou is called, which enters with a substt value of 131.

The result was that the subsequent call to sttrou entered a switch statement off substt, where value 130 would call _EXECUTE_INPUT, while 131 enters a brief branch with a Command Interrupted error being processed.

Commenting out the substt increment in FsdRoutines.cs method ExitingFullScreenDisplay.

The change was introduced here:
95f73bc#diff-a87ac8064611f7de11b831951571dabd6135f79766b72de80e5f93725dbb2c6aR690

Commenting out incrementing substt appears to fix this issue.

@enusbaum enusbaum self-assigned this Jan 31, 2023
@fletcherm
Copy link
Member Author

fletcherm commented Feb 1, 2023

@enusbaum I believe you said Swords of Chaos is the other module we've had that uses the FSD.

I know 0% about that game beyond its name and that it exists.

Do you know it well enough to test out the FSD in it and confirm the substt change does not break it?

If not I can start poking at it, but certainly won't have a big enough time block until at least this Sunday.

@fletcherm fletcherm added the full screen display aka full screen editor label Feb 6, 2023
@fletcherm
Copy link
Member Author

@enusbaum What'd yah wanna do about this one? Time to YOLO the change and hope no other modules complain? ;-)

@fletcherm fletcherm linked a pull request Feb 8, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working full screen display aka full screen editor majormud
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants