Project Zomboid

Project Zomboid

评价数不足
Server Alert Fix [ONLY B41 - Fixed in B42]
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
602.266 KB
2024 年 11 月 28 日 上午 5:16
1 月 2 日 上午 10:42
4 项改动说明 ( 查看 )

订阅以下载
Server Alert Fix [ONLY B41 - Fixed in B42]

描述
This mod fixes a critical bug where players would miss server alert messages when the in-game chat was closed. With this fix, essential notifications like restart warnings, emergency announcements, or anything from the "servermsg" command will always appear on-screen, ensuring no player misses vital information. A must-have for smooth multiplayer server management in Project Zomboid!

Please note: This mod is not necessary for Build 42, as the developers have implemented a new event (Events.OnAlertMessage.Add(ISAlert.getAlert)) to handle server alerts independently of the chat. However, it's an excellent solution for those who wish to maintain a server on Build 41, as it replicates nearly the same functionality introduced in Build 42.

Workshop ID: 3373262658
Mod ID: ServerAlertFix
16 条留言
SiCK 1 月 6 日 上午 5:20 
Thank YOU for your friendly and detailed responses :) Highly recommended as a person and as a mod author <3<3<3
Vorshim  [作者] 1 月 6 日 上午 5:17 
Thanks for the feedback SiCK! Really appreciate it! <3 <3 <3
SiCK 1 月 6 日 上午 5:14 
After the last Update it works like a charme.

We use the mod in conjunction with UdderlyUpToDate so that the red message is shown on the display when the server restarts during mod updates.

!!!! WITH THIS MOD YOU NO LONGER NEED TO LEAVE THE CHAT WINDOW OPEN !!!!

Finally no more players complaining because the server restarts without warning :)
Vorshim  [作者] 1 月 1 日 下午 2:40 
@Sick hello! thaanks!! you too mate, happy new year.
These days I'm free, and I'll finally be able to try Udderly in combo with my mod (server alert fix).
In the meantime, I'd be curious to understand how the system you're using on your host works. If you want to add me on Steam or Discord, I can try to help and see if you can simply use my script, which is much simpler and saves you from using mods altogether (except for server alert fix itself). Let me know!
SiCK 1 月 1 日 下午 1:12 
Hi @Vorshim, wish you a blessed new year my friend :)

The thing is, my hoster offers a direct option in the dashboard for restarting the server in conjunction with udderlyuptodate. They even have a link to this mod in their wiki.
Does the script you posted here also work like the udderly mod and restarts the server automatically when there is a mod update? Or do you have to do it manually with this script?
We have someone on the server at almost any time and at night I couldn't restart manually because I'm asleep :D
that's why I decided on the udderly variant.

Translated with DeepL.com (free version)
Vorshim  [作者] 2024 年 12 月 31 日 上午 8:46 
hi @Sick ! Thanks for your response. It seems very strange to me because I tried using the same method that Udderly uses to send the message, and it works on my end. I have some doubts, maybe about the order of the installed mods? As soon as I have a moment, I’ll try using this mod (which I don’t use for safety reasons because I knew it had a problem with saving). Anyway, I don’t use these mods to manage the server restart. I use an external script that handles everything through RCON (with discord webhook message also). If you’re interested, it’s simple to use and there’s a guide. I’m leaving you the GitHub link: https://github.com/Vorshim92/PZ-WATCHDOG
SiCK 2024 年 12 月 31 日 上午 8:05 
Hi Vorshim, sorry for the late response. Normal servermsg command is working fine
Vorshim  [作者] 2024 年 12 月 4 日 下午 3:18 
Hi Sick! Interesting!!! did you test if servermsg is working?
SiCK 2024 年 12 月 4 日 下午 1:45 
hi vorshim, thank you for the nice responses.

i tested your mod right now (with udderly up to date) and sadly there was no red message on screen while chat was closed.

After reopening the chat the red message on screen appeared in the same moment.
Vorshim  [作者] 2024 年 12 月 4 日 上午 5:12 
Even though I believe that from the chat, as an admin, you can already type:
/servermsg "HELLO"

And since my mod is active, it will still work, even if the chat is disabled.