Fix cross-platform rendering and optimize frame performance
Correct selection orientation, game-entry lifecycle, mounted NPCs, labels and skill panels. Add the native GPU scene path, resident geometry, bounded texture and Python caches, and collision broad phase. Pin the independently maintained Metin2 SDK through a submodule and document reproducible setup. Include rendering regressions and macOS packaging improvements. Validation: client Debug build and 12 targeted client tests passed; SDK build and all 14 SDK tests passed.
This commit is contained in:
+14
-2
@@ -17,6 +17,7 @@ class LoginView(object):
|
||||
net.SetAccountConnectorHandler(self)
|
||||
net.SetPhaseWindow(net.PHASE_WINDOW_LOGIN, self)
|
||||
net.SetPhaseWindow(net.PHASE_WINDOW_SELECT, self)
|
||||
net.SetPhaseWindow(net.PHASE_WINDOW_LOAD, self)
|
||||
net.SetPhaseWindow(net.PHASE_WINDOW_GAME, self)
|
||||
|
||||
def Connect(self, game_host, game_port, auth_host, auth_port, account, password):
|
||||
@@ -69,6 +70,11 @@ class LoginView(object):
|
||||
self.phase = 'loading'
|
||||
self.message = 'Server accepted selection. Loading game...'
|
||||
|
||||
def LoadData(self, playerX, playerY):
|
||||
self.phase = 'loading'
|
||||
self.message = 'Character loaded at (%d, %d). Starting game...' % (playerX, playerY)
|
||||
net.StartGame()
|
||||
|
||||
def SetGamePhase(self):
|
||||
self.phase = 'game'
|
||||
self.message = 'In game phase.'
|
||||
@@ -89,9 +95,15 @@ class LoginView(object):
|
||||
def Enter(self):
|
||||
if self.selected < 0:
|
||||
raise ValueError('Choose an occupied character slot first')
|
||||
net.SendSelectCharacterPacket(self.selected)
|
||||
port = net.GetAccountCharacterSlotDataInteger(self.selected, net.ACCOUNT_CHARACTER_SLOT_PORT)
|
||||
addr = net.GetAccountCharacterSlotDataInteger(self.selected, net.ACCOUNT_CHARACTER_SLOT_ADDR)
|
||||
if port != 0 and addr != 0:
|
||||
net.DirectEnter(self.selected)
|
||||
self.message = "DirectEnter sent. Reconnecting to map server and loading..."
|
||||
else:
|
||||
net.SendSelectCharacterPacket(self.selected)
|
||||
self.message = "Selection sent. Waiting for server loading phase..."
|
||||
self.phase = 'entering'
|
||||
self.message = 'Selection sent. Waiting for server loading phase...'
|
||||
|
||||
def Snapshot(self):
|
||||
slots = []
|
||||
|
||||
Reference in New Issue
Block a user