Do I just see this happen because I have VS2017 installed? If I didnt have it installed, would it just be like "oh well" and close the command prompt window and I would never know intead of offer to debug?
The reason I ask is because it appears that maybe anything that causes one of these FATAL_UOX3_* lines to fire in UOX.cpp seems to cause unhappiness.
We have your edit:
Code: Select all
if( retCode != FATAL_UOX3_ALLOC_NETWORK )
cons.join();
We screw up our map path so they are not found:
Console:
Code: Select all
ERROR: Fatal Error: No maps found
| ERROR: Check the settings for DATADIRECTORY in uox.ini
o----------------------------------------------------------------------------------------------------------------------o|
| Beginning UOX final shut down sequence...
| HTMLTemplates object detected. Writing Offline HTML Now...
| Cleaning up item and character memory... [done]
| Destroying class objects and pointers... Destroying JS instances... [done]
| [done]
Then you get your UOX3 has stopped working window, Debug, Close Program.
Debug In VS2017 has:
Code: Select all
Unhandled exception at 0x00007FF684E43900 in UOX3.exe: Fatal program exit requested.
UOX3.exe!abort() Line 77 C++
UOX3.exe!terminate() Line 58 C++
[External Code]
> [Inline Frame] UOX3.exe!std::thread::join() Line 182 C++
UOX3.exe!Shutdown(int retCode) Line 1745 C++
UOX3.exe!CMulHandler::Load() Line 446 C++
UOX3.exe!main(int argc, char * * argv) Line 2642 C++
[External Code]
Now if we change your edit to this:
Code: Select all
if( retCode != FATAL_UOX3_MAP_NOT_FOUND )
cons.join();
Console:
Code: Select all
ERROR: Fatal Error: No maps found
| ERROR: Check the settings for DATADIRECTORY in uox.ini
o----------------------------------------------------------------------------------------------------------------------o|
| Beginning UOX final shut down sequence...
| HTMLTemplates object detected. Writing Offline HTML Now...
| Cleaning up item and character memory... [done]
| Destroying class objects and pointers... Destroying JS instances... [done]
| [done]
o----------------------------------------------------------------------------------------------------------------------o| Server shutdown complete!
| Thank you for supporting UOX3
o----------------------------------------------------------------------------------------------------------------------o| Exiting UOX with errorlevel 350
| Press Return to exit
Do keyboards still have a Return key?

Hit Enter, console window closes.
I guess if the cleanup finishes up ok, it really doesn't matter what happens at the end there, so feel free to ignore this one.
Thanks!