Page 1 of 1

[1.10.22] Custom loading texts/topics

Posted: 16 Dec 2021, 12:45
by Lobby
image.png
image.png (212.77 KiB) Viewed 46993 times
The short messages that are shown on loading screen are called topics. Verison 1.10.22 lets you add your own topics into the game by defining a plugin of type topic. That plugin's text will then be shown if the topic gets displayed by the game.

It's as simple as that :json

Code: Select all    Reset

[ { "id": "$topic_custom_unique_id", "type": "topic", "text":"Some custom text", // Text to show "weight": 10, // 1 by default "color": {"r": 255,"g": 0,"b": 0} // Color, yellow by default } ]
JSON checker
Check
The optional weight attribute can be used to specify the likelyhood of that topic to be shown relative to other topics. The default value is 1. A value of 2 would make it two times more likely for the topic to be shown.

The optional color attribute can be used specify a custom color for you topic. By default the game will use yellow to draw the topic.
 ! Message from: Lobby
Be careful to use a reasonable weight, otherwise your plugins may not get approval.

Re: [1.10.22] Custom loading texts/topics

Posted: 24 Dec 2021, 04:23
by Yakka
Finally my suggestions was granted :')
But is there a way to make this only shown on specific date of the IRL year?

Re: [1.10.22] Custom loading texts/topics

Posted: 06 Mar 2022, 19:39
by rtobby
Is using a weight lower than 1, e.g. 0.2 possible?

Re: [1.10.22] Custom loading texts/topics

Posted: 02 Apr 2022, 06:30
by Hadestia
How about an attribute on how often it would display? Around 0.2 would be enough as a max value

Also how about with lua?

Re: [1.10.22] Custom loading texts/topics

Posted: 17 May 2022, 10:55
by LightBlue
what if i change it to "never gonna give you up"?

Re: [1.10.22] Custom loading texts/topics

Posted: 17 May 2022, 14:55
by cesareborgia94
Will be going to do this next time when my laptop is fixed.