From bad106ceba393e106a4ec6eb98460f08d9b9938c Mon Sep 17 00:00:00 2001 From: EmmyHeart Date: Mon, 9 Oct 2023 06:35:14 +0000 Subject: [PATCH 1/2] Fixed typo with game_cfg/game_config This resulted in an exception on Plost and earlier, leading to games not actually working. --- titles/chuni/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/chuni/base.py b/titles/chuni/base.py index 0783b55..21a6719 100644 --- a/titles/chuni/base.py +++ b/titles/chuni/base.py @@ -187,7 +187,7 @@ class ChuniBase: "gameMessageList": [{ "id": 1, "type": 1, - "message": f"Welcome to {self.core_cfg.server.name} network!" if not self.game_config.server.news_msg else self.game_config.server.news_msg, + "message": f"Welcome to {self.core_cfg.server.name} network!" if not self.game_cfg.server.news_msg else self.game_cfg.server.news_msg, "startDate": "2017-12-05 07:00:00.0", "endDate": "2099-12-31 00:00:00.0" }] From 0a12e935931dd765b90e99a679fbe18f930ab4ef Mon Sep 17 00:00:00 2001 From: EmmyHeart Date: Mon, 9 Oct 2023 06:47:55 +0000 Subject: [PATCH 2/2] news_msg config option doesn't actually return anything. Fixed! --- titles/chuni/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/chuni/config.py b/titles/chuni/config.py index 2ec1368..05cc8ad 100644 --- a/titles/chuni/config.py +++ b/titles/chuni/config.py @@ -22,7 +22,7 @@ class ChuniServerConfig: @property def news_msg(self) -> str: - CoreConfig.get_config_field( + return CoreConfig.get_config_field( self.__config, "chuni", "server", "news_msg", default="" )