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.