From 338d82546f0603fcd08215cca3b2da497c723728 Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Mon, 4 Dec 2023 23:19:59 -0300 Subject: [PATCH 1/7] feat(client_background/background.otui): modify 'UIWidget' text --- modules/client_background/background.otui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client_background/background.otui b/modules/client_background/background.otui index 7630bc3fef..db1d140f26 100644 --- a/modules/client_background/background.otui +++ b/modules/client_background/background.otui @@ -18,7 +18,7 @@ Panel text-auto-resize: true margin-top: 50 color: #e98d02 - text: OTCLient Redemption + text: Mythria font: verdana-11px-rounded font-scale: 4 shader: Map - Party From e81356265826aca28f66f8494ac41a5afd647fae Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Mon, 4 Dec 2023 23:20:41 -0300 Subject: [PATCH 2/7] feat(src/framework/config.h): change RPC config --- src/framework/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/config.h b/src/framework/config.h index 3b109c2326..90f507f8d4 100644 --- a/src/framework/config.h +++ b/src/framework/config.h @@ -50,6 +50,6 @@ #define SHOW_CHARACTER_LEVEL_RPC 1 // 1 to enable | 0 to disable #define SHOW_CHARACTER_WORLD_RPC 1 // 1 to enable | 0 to disable #define OFFLINE_RPC_TEXT "Selecting Character..." // Message at client startup | offline character -#define STATE_RPC_TEXT "github.com/mehah/otclient" // State Text +#define STATE_RPC_TEXT "github.com/mythriaot/otclient" // State Text #define RPC_LARGE_IMAGE "rpc-logo" // Large Image Name (Imported to API) -#define RPC_LARGE_TEXT "OTClient - Redemption" // Large Text (Text showed at tooltip large image) +#define RPC_LARGE_TEXT "Mythria" // Large Text (Text showed at tooltip large image) From 77d9d044880bcf124b4ccb1b2210376cd13e207f Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Mon, 4 Dec 2023 23:21:21 -0300 Subject: [PATCH 3/7] feat(init.lua): change app names --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e398b2bc0b..e3c0d4321b 100644 --- a/init.lua +++ b/init.lua @@ -6,9 +6,9 @@ Services = { --updater = "http://localhost/api/updater.php", } -g_app.setName("OTClient - Redemption"); -g_app.setCompactName("otclient"); -g_app.setOrganizationName("otcr"); +g_app.setName("Mythria"); +g_app.setCompactName("mythria"); +g_app.setOrganizationName("mythria"); g_app.hasUpdater = function() return (Services.updater and Services.updater ~= "" and g_modules.getModule("updater")) From b4fc25d90e7a6517f6a803880addaf55d1aeb6ff Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Tue, 5 Dec 2023 01:01:06 -0300 Subject: [PATCH 4/7] feat: increase map viewport to 16 9 --- data/setup.otml | 2 +- src/client/gameconfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/setup.otml b/data/setup.otml index 8b3eaf1488..bde7dad409 100644 --- a/data/setup.otml +++ b/data/setup.otml @@ -3,7 +3,7 @@ game last-supported-version: 1321 map - viewport: 8 6 + viewport: 16 9 max-z: 15 sea-floor: 7 underground-floor: 8 diff --git a/src/client/gameconfig.h b/src/client/gameconfig.h index 48f39231d7..0284867eea 100644 --- a/src/client/gameconfig.h +++ b/src/client/gameconfig.h @@ -80,7 +80,7 @@ class GameConfig uint16_t m_lastSupportedVersion{ 1321 }; // Map - Size m_mapViewPort{ 8,6 }; + Size m_mapViewPort{ 16,9 }; uint8_t m_mapMaxZ{ 15 }; uint8_t m_mapSeaFloor{ 7 }; uint8_t m_mapUndergroundFloorRange{ 2 }; From 0d49e789a85a30cd7f8d8675982ceab20107e01e Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Tue, 5 Dec 2023 03:38:44 -0300 Subject: [PATCH 5/7] feat(game_features/features.lua): enable new features for version 860 and above --- modules/game_features/features.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/game_features/features.lua b/modules/game_features/features.lua index 84093e2952..dd9856440f 100644 --- a/modules/game_features/features.lua +++ b/modules/game_features/features.lua @@ -48,6 +48,11 @@ controller:registerEvents(g_game, { end if version >= 860 then + g_game.enableFeature(GameSpritesU32); -- Enable extended sprites + g_game.enableFeature(GameMagicEffectU16); -- Enable increased effects + g_game.enableFeature(GameDistanceEffectU16); + g_game.enableFeature(GameExtendedOpcode); + g_game.enableFeature(GameChangeMapAwareRange); g_game.enableFeature(GameAttackSeq); end From 4a9c63442f1588daf5fc58c7f146d840f18441ca Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Tue, 5 Dec 2023 03:39:13 -0300 Subject: [PATCH 6/7] feat: increase map viewport to 32 18 --- data/setup.otml | 2 +- src/client/gameconfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/setup.otml b/data/setup.otml index bde7dad409..e935046cfe 100644 --- a/data/setup.otml +++ b/data/setup.otml @@ -3,7 +3,7 @@ game last-supported-version: 1321 map - viewport: 16 9 + viewport: 32 18 max-z: 15 sea-floor: 7 underground-floor: 8 diff --git a/src/client/gameconfig.h b/src/client/gameconfig.h index 0284867eea..97d1732160 100644 --- a/src/client/gameconfig.h +++ b/src/client/gameconfig.h @@ -80,7 +80,7 @@ class GameConfig uint16_t m_lastSupportedVersion{ 1321 }; // Map - Size m_mapViewPort{ 16,9 }; + Size m_mapViewPort{ 32,18 }; uint8_t m_mapMaxZ{ 15 }; uint8_t m_mapSeaFloor{ 7 }; uint8_t m_mapUndergroundFloorRange{ 2 }; From eb85009c00475ddfae9382d323426bbf91c5e6f1 Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Tue, 5 Dec 2023 05:37:48 -0300 Subject: [PATCH 7/7] feat(modules/game_things): add items opacity management --- modules/game_things/things.lua | 1 + modules/game_things/things.otml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 modules/game_things/things.otml diff --git a/modules/game_things/things.lua b/modules/game_things/things.lua index 2b3d023377..341e1ff094 100644 --- a/modules/game_things/things.lua +++ b/modules/game_things/things.lua @@ -74,4 +74,5 @@ function load(version) onClientVersionChange = load }) end + g_things.loadOtml('things.otml') end diff --git a/modules/game_things/things.otml b/modules/game_things/things.otml new file mode 100644 index 0000000000..ba712ea7d0 --- /dev/null +++ b/modules/game_things/things.otml @@ -0,0 +1,4 @@ +items + 622 + opacity: 0.5 + full-ground: false \ No newline at end of file