Hatsune-Imagine / l4d2-plugins

Bug fixes for some popular plugins
28 stars 3 forks source link

关于修改的linux_auto_restart 问题 #1

Closed apples1949 closed 10 months ago

apples1949 commented 10 months ago

手动重启服务器也需要考虑卸载Accelerator问题

Hatsune-Imagine commented 10 months ago

嗯嗯,那就在手动重启的那个方法里加上UnloadAccelerator();就行了咯

Action Cmd_RestartServer(int client, int args)
{
    PrintToChatAll("正在重启服务器...");
    UnloadAccelerator();
    CreateTimer(2.0, Timer_RestartServer);

    return Plugin_Continue;
}
Hatsune-Imagine commented 10 months ago

话说为什么要卸载Accelerator呀?是干嘛用的?

apples1949 commented 10 months ago

https://forums.alliedmods.net/showthread.php?t=277703

apples1949 commented 10 months ago

时间延迟建议改成5秒 否则有可能在卸载前直接崩溃服务器了

Hatsune-Imagine commented 10 months ago

哇,apples1949酱回的好快。懂了,Accelerator相当于会把奔溃日志上传,可供用户去查奔溃原因,而这种无人自动重启这种需求不需要上传奔溃日志。

嗯嗯,我改成5秒吧。