Project Zomboid

Project Zomboid

123 个评价
SSR: Newsboard
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
145.395 KB
2017 年 10 月 23 日 上午 9:54
2023 年 8 月 30 日 上午 1:52
25 项改动说明 ( 查看 )

订阅以下载
SSR: Newsboard

在 Oneline 的 1 个合集中
SpiffoSpace Russia
5 件物品
描述
This mod implements newsboard with real-time updates

Tested on Build 41.78

Client-side installation:
1) Subscribe
2) Enjoy

Server-side installation:
Step 1: Java mod (optional)
Install of java mod is required for new server command to work.

Download the latest version of java mod[drive.google.com] and unpack the archive to pzserver.
If your server is running on Windows, open the batch file you use to launch it and replace zombie.network.GameServer with zombie.SSROverride.
If your server is running on Linux, use start-server-jm.sh script to launch it.

forceTab command allows users with access level of observer and above to show other player a specific tab of news panel and lock close button for N seconds.
/forcetab "username" tab_id time
If time is not specified, close button will be locked for 10 seconds.
If player is surrounded by zombies, panel won't show up.

Step 2: Configuration
After installing mod to your server, launch it and go to Zomboid\Lua\NFO directory. A config file named config.ini will be generated with the following parameters:
showPanelOnEveryLogin=false // if false panel show up only if player hasn't seen the latest version of the document checkSafetyWithinSquares=0 // prevents panel appearing if zombies detected in X squares from player lockPanelForSeconds=0 // if greater than 0, close button will be locked for X seconds on update

After you're done changing settings, restart the server and login into the game. Upon joining you'll see a panel with demo layout from default.txt.
Refer to the syntax below in order to edit and fill in the document.
To send players an update change the number at <VERSION: 1.0> and save the text file.
To create a separate layout for specific language make a copy of default.txt with the name X.txt, where X is a language code (e.g. en, fr, es, ko, ru, etc).

Syntax:
<PAGE> - Splits pages <LINE> - Defines new line <H1> - Defines the most important heading <H2> - Defines the most least important heading <CENTRE> - Specifies the alignment to centre <LEFT> - Specifies the alignment to left side <RIGHT> - Specifies the alignment to right side <LINK:X> (url without protocol) - Creates a button to copy text with one click <SIZE:X> (small/medium/large) - Specifies text size <IMAGE:X> - (path to file) - Represents an image <IMAGECENTRE:> - Represents an image in centre <RGB:1.0,1.0,1.0> (0.0-1.0) - Specifies text color using RGB values <HEX:X> (000000-ffffff) - Specifies text color using HEX values <RED> - Specifies red text color <GREEN> - Specifies green text color <BLUE> - Specifies blue text color <ORANGE> - Specifies orange text color
Note: images must be placed into media/ui folder of your own mod.



Join my discord server for updates and support:
[discord.gg]

If you like my mods, please, consider donating.
Even $1 is highly appreciated and shows that you care.
[boosty.to]
[www.blockchain.com]

Redistribution of this mod without explicit permission from the original creator is prohibited under any circumstances. This includes, but not limited to, uploading this mod to the Steam Workshop or any other site, distribution as part of another mod or modpack, distribution of modified versions. The product can be published on Steam only through an account with the name Oneline.

© 2017-2023 Oneline
[theindiestone.com]

Workshop ID: 1178773471
Mod ID: ssr-news
热门讨论 查看全部(1)
7
2024 年 8 月 10 日 下午 10:45
Bug Reports
Oneline
106 条留言
Oneline  [作者] 5 月 30 日 上午 5:38 
@Rick Grimes не раньше, чем вернут мультиплеер.
Rick Grimes 5 月 29 日 上午 9:12 
будет в 42?
Stray 2024 年 9 月 26 日 上午 4:07 
No worries. Thanks anyways.
Oneline  [作者] 2024 年 9 月 25 日 下午 11:08 
@Stray sorry, but no. I don't allow repacking/reuploading my mods.
Stray 2024 年 9 月 25 日 上午 1:18 
Hi @Oneline, great mod to have. Can I add this to my modpack? Thank you.
S4ro 2024 年 9 月 6 日 上午 8:06 
it's clear now ty XD
Oneline  [作者] 2024 年 9 月 6 日 上午 7:54 
@S4ro you must close each page with <PAGE> tag, even if you only have one page.
S4ro 2024 年 9 月 6 日 上午 6:50 
got the problem, i had to close the pages with PAGE and the end
Oneline  [作者] 2024 年 4 月 5 日 下午 11:16 
no, either your image is corrupted or you did something wrong. Make sure it's real png, not renamed jpeg.
S4ro 2024 年 4 月 5 日 下午 9:47 
my result is an empty page, the resolution is 700x700 is it too big?