Author Topic: BootPC Crashing server  (Read 309 times)

Legacy_Madasahatter

  • Full Member
  • ***
  • Posts: 214
  • Karma: +0/-0
BootPC Crashing server
« on: June 26, 2011, 08:45:28 am »


               Any ideas as to why this would be crashing the server, server is running NWNX2
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
BootPC Crashing server
« Reply #1 on: June 26, 2011, 09:19:47 am »


               Yes. If you boot a character that's already left the server, it will crash. Use a wrapper when booting:


void DoBoot(object oPC)
{
    if (GetIsObjectValid(oPC))
    {
        BootPC(oPC);
    }
}

Funky
               
               

               
            

Legacy_Madasahatter

  • Full Member
  • ***
  • Posts: 214
  • Karma: +0/-0
BootPC Crashing server
« Reply #2 on: June 26, 2011, 08:35:55 pm »


               Thanks all working now