Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify some texts, increase map viewport and add items opacity management #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/setup.otml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ game
last-supported-version: 1321

map
viewport: 8 6
viewport: 32 18
max-z: 15
sea-floor: 7
underground-floor: 8
Expand Down
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion modules/client_background/background.otui
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions modules/game_features/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions modules/game_things/things.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ function load(version)
onClientVersionChange = load
})
end
g_things.loadOtml('things.otml')
end
4 changes: 4 additions & 0 deletions modules/game_things/things.otml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
items
622
opacity: 0.5
full-ground: false
2 changes: 1 addition & 1 deletion src/client/gameconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class GameConfig
uint16_t m_lastSupportedVersion{ 1321 };

// Map
Size m_mapViewPort{ 8,6 };
Size m_mapViewPort{ 32,18 };
uint8_t m_mapMaxZ{ 15 };
uint8_t m_mapSeaFloor{ 7 };
uint8_t m_mapUndergroundFloorRange{ 2 };
Expand Down
4 changes: 2 additions & 2 deletions src/framework/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)