View Single Post
@Stefan: realbot plugin not reloading after mapchange FIX
Old
  (#1)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default @Stefan: realbot plugin not reloading after mapchange FIX - 13-03-2004

Our flying Dutchman might be interested in knowing that I happened to discover the fix to the many times reported problem of metamods plugin not reloading after a mapchange.

As usuals, it's one of these fixes you discover the day you aren't searching for it.

@Stefan: your RealBot plugin info structure must look somewhat like this:
Code:
plugin_info_t Plugin_info = {
   META_INTERFACE_VERSION, // interface version
   "RealBot", // plugin name
   "2.0", // plugin version
   __DATE__, // date of creation
   "Stefan Hendriks", // plugin author
   "http://realbot.bots-united.com/", // plugin URL
   "REALBOT", // plugin logtag
   PT_STARTUP, // when loadable
   PT_ANYTIME, // when unloadable
};
change it to something like this:
Code:
plugin_info_t Plugin_info = {
   META_INTERFACE_VERSION, // interface version
   "RealBot", // plugin name
   "2.0", // plugin version
   __DATE__, // date of creation
   "Stefan Hendriks", // plugin author
   "http://realbot.bots-united.com/", // plugin URL
   "REALBOT", // plugin logtag
   PT_CHANGELEVEL, // when loadable <-- FIX
   PT_ANYTIME, // when unloadable
};
The weird thing is that PT_STARTUP is still supposed to let the plugin reload after a map change. PT_CHANGELEVEL will work, only thing is that it could allow a user to hot-load the RealBot DLL without rebooting the server, that which I'm not sure it can happen without failure. But for normal usage, it's fine. The fault is metamod's isn't it, I wonder if I should send Will Day a bug report.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote