Bug #533

Map_restart after omnibot_enable 0 crashes the server

Added by IR4T4 about 5 years ago. Updated about 5 years ago.

Status:Fixed% Done:

100%

Priority:High
Assignee:-
Category:Mod QAGAME
Target version:2.71rc4
OS: Arch:

Description

As the title says ... listen and dedicated servers are affected. This might be fixed by changing the CVAR_NORESTART flag of omnibot_enable to CVAR_LATCH but we need to know why NORESTART flag is set. Finally OB lib has to be loaded/unloaded which requires a restart.


Related issues

Related to ET: Legacy Development - Feature #183: New referee menu for Omni-bot control In Progress 30.01.2013

Associated revisions

Revision 280bb6e3
Added by IR4T4 about 5 years ago

omnibot: map_restart crash fix fixes #533

History

#1 Updated by IR4T4 about 5 years ago

  • Description updated (diff)

#2 Updated by IR4T4 about 5 years ago

  • Related to Feature #183: New referee menu for Omni-bot control added

#3 Updated by RaFaL about 5 years ago

In my case on my pc
Tested on listen server and nothing happened everything works perfectly exept difficulty option
Dedicated server - nothing work but no crash
"unkown command bot"

#4 Updated by IR4T4 about 5 years ago

Line ent→think(ent); in g_main.c/G_RunThink causes the crash on my system. I can imagine a different behaviour on different OS when a library (omnibot) is unloaded.
Can anyone lese can reproduce this with current code?

#5 Updated by IR4T4 about 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#6 Updated by IR4T4 about 5 years ago

Note:
When omnibot_enable 0 is set and map_restart is called bots don’t leave the game self-controlled. This avoids bot zombies:

bot minbots -1; bot maxbots -1;bot kickall;set omnibot_enable 0; map_restart

Also available in: Atom PDF