mbbsemu / MBBSEmu

The MajorBBS Emulation Project is an Open Source, Cross-Platform emulator for easily running The MajorBBS & Worldgroup Modules
https://www.mbbsemu.com
MIT License
128 stars 14 forks source link

[MUICHAOS] Swords of Chaos - Error during 1ST run of game (never sets up items) #169

Closed tuday2 closed 3 years ago

tuday2 commented 3 years ago

Module Information

Describe the bug Error during 1ST run of game (never sets up items), will initialize on second run but unable to move once entering realm, only exit is "out" and does not process command

To Reproduce Steps to reproduce the behavior:

  1. Enter module
  2. Create character
  3. "E"xplore the Realm
  4. See error/behavior

Expected behavior Able to move around realm

Screenshots

**===Error occurs on 1ST run only===**
AUDIT DETAIL: INSTALLING ITEMS
2020-10-06 05:51:48.1231 Warn MBBSEmu.HostProcess.ExportedModules.Majorbbs.f_read Attempting to read EOF file, returning null pointer
2020-10-06 05:51:48.1461 Error MBBSEmu.HostProcess.ExportedModules.Majorbbs.Invoke Unknown Exported Function Ordinal in MAJORBBS: 535:SETCNF
Critical Exception has occurred:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'Unknown Exported Function Ordinal in MAJORBBS: 535:SETCNF')
   at MBBSEmu.HostProcess.ExportedModules.Majorbbs.Invoke(UInt16 ordinal, Boolean offsetsOnly)
   at MBBSEmu.HostProcess.ExecutionUnits.ExecutionUnit.ExternalFunctionDelegate(UInt16 ordinal, UInt16 functionOrdinal)
   at MBBSEmu.HostProcess.ExecutionUnits.ExecutionUnit.Execute(IntPtr16 entryPoint, UInt16 channelNumber, Boolean simulateCallFar, Boolean bypassState, Queue`1 initialStackValues, UInt16 initialStackPointer)
   at MBBSEmu.Module.MbbsModule.Execute(IntPtr16 entryPoint, UInt16 channelNumber, Boolean simulateCallFar, Boolean bypassSetState, Queue`1 initialStackValues, UInt16 initialStackPointer)
   at MBBSEmu.HostProcess.MbbsHost.AddModule(MbbsModule module)
   at MBBSEmu.Program.Run(String[] args)

Main Menu: Screenshot 2020-10-06 062215-555

"E"xplore Realm Screenshot 2020-10-06 062128-444

Software Information:

enusbaum commented 3 years ago

Ordinal MAJORBBS:535 is SETCNF looks like it SETS a value in the currently open MSG file.

image

It then calls APPLYEM (MAJORBBS.73) to save the new values to the MSG file.

tuday2 commented 3 years ago

MBBSEmu Build 110920-7 - Update -- Still cannot move out of starting room (issue in screenshot above), messages from console log:

2020-11-08 23:12:47.5292 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set soft-CR character 0A on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:47.7419 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set hard-CR character 0D on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:47.7469 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set soft-CR character 0A on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:48.0092 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set hard-CR character 0D on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:48.0126 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set soft-CR character 0A on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:48.3252 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set hard-CR character 0D on Channel 0 (Ignored -- only for ASCII mode)
2020-11-08 23:12:48.3252 Info MBBSEmu.HostProcess.ExportedModules.Galgsbl.Invoke Set soft-CR character 0A on Channel 0 (Ignored -- only for ASCII mode)
tuday2 commented 3 years ago

image image