Client/Server Crashing Preventative Script

Here is a patch to address a rare crashing bug. I'm not going to go into detail about the specifics of it, but here is a patch that appears to entirely negate it. Both clients and servers should stick the cmdArmor.cs file in their GameData/base/scripts/autoexec folders.

Comments

  • Even in t1 kicks are best done via schedule. Or suffer a potential crash.
  • Even in t1 kicks are best done via schedule. Or suffer a potential crash.

    That server end code was pulled right out of my Classic install. The client end code in there is talking about calling messageBoxOK immediately after disconnecting. The game doesn't like it if you call messageBoxOK much earlier than 700ms after calling disconnect().
    disconnect();
    messageBoxOK("Death","You most likely wouldn't see this if you were in a server executing this code.");
    
  • Altimor pointed out a small issue with the old code and contributed fixed machine code. Here is the updated version attached to this post.
Sign In or Register to comment.