Describe the bug
Crashes on creating board (2nd step of a game)
To Reproduce
Steps to reproduce the behavior:
Add module to moduleConfig.json
Start MBBSEmu
Enter game and select size of grid
See error
Expected behavior
Able to play Number Shuffle
Screenshots
Unhandled exception. System.DivideByZeroException: Attempted to divide by zero.
at System.Math.DivRem(Int32 a, Int32 b, Int32& result)
at MBBSEmu.HostProcess.ExportedModules.Majorbbs.f_ldiv()
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.WorkerThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Module Information
Describe the bug Crashes on creating board (2nd step of a game)
To Reproduce Steps to reproduce the behavior:
Expected behavior Able to play Number Shuffle
Screenshots
Software Information: