Editing Server:MacSupport
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== Opcodes == | |||
All opcodes are found at [https://github.com/EQMacEmu/Server/blob/fc08674c9bf0d02aa1b408b2d9c7e5cb578a0c75/loginserver/login_util/login_opcodes_oldver.conf login_opcodes_oldver.conf] and listed below for convenience: | |||
All opcodes are found at [https://github.com/EQMacEmu/Server/blob/fc08674c9bf0d02aa1b408b2d9c7e5cb578a0c75/loginserver/login_util/login_opcodes_oldver.conf login_opcodes_oldver.conf] | |||
* OP_SessionReady=0x5900 | * OP_SessionReady=0x5900 | ||
* OP_LoginOSX=0x8e00 | * OP_LoginOSX=0x8e00 | ||
* OP_LoginPC=0x0100 | |||
* OP_ClientError=0x0200 | |||
* OP_ServerListRequest=0x4600 | |||
* OP_PlayEverquestRequest=0x4700 | |||
* OP_LoginUnknown1=0x4800 | |||
* OP_LoginUnknown2=0x4A00 | |||
* <s>OP_PlayEverquestResponse=0x0021</s> | |||
* <s>OP_ChatMessage=0x0016</s> | |||
* OP_LoginAccepted=0x0400 | * OP_LoginAccepted=0x0400 | ||
* OP_LoginComplete=0x8800 | * OP_LoginComplete=0x8800 | ||
* OP_ServerName=0x4900 | * OP_ServerName=0x4900 | ||
* OP_LoginBanner=0x5200 | * OP_LoginBanner=0x5200 | ||
* <s>OP_ServerListResponse=0x004a</s> | |||
* <s>OP_Poll=0x0029</s> | |||
* <s>OP_EnterChat=0x000f</s> | |||
* <s>OP_PollResponse=0x0011</s> | |||
When a client first authenticates to the loginserver, it sends | == Login == | ||
When a client first authenticates to the loginserver, it sends the <span style="font-weight:bold">OP_LoginOSX</span> opcode followed by the username/password and eqworld-52.989studios.com. This url is no longer used but rather parsed server-side to validate mac clients (see [https://github.com/EQArchives/EQMacEmu/blob/09da8370ff01ea671fbc772511579b8d4876741e/loginserver/client.cpp#L62 OP_LoginOSX] and [https://github.com/EQArchives/EQMacEmu/blob/09da8370ff01ea671fbc772511579b8d4876741e/loginserver/client.cpp#L245 handle_login] behavior). | |||
The key difference between a Windows Client and OSX client successfully authenticating is the following [https://github.com/EQArchives/EQMacEmu/blob/09da8370ff01ea671fbc772511579b8d4876741e/loginserver/client.cpp#L337|block of code] that sends an extra packet: | |||
The key difference | |||
<pre> | <pre> | ||
string buf = server.options.GetNetworkIP(); | string buf = server.options.GetNetworkIP(); | ||
Line 39: | Line 35: | ||
</pre> | </pre> | ||
<span style="font-weight:bold">GetNetworkIP()</span> pulls the world server's URL from you login.ini file and/or the database as mentioned previously. This leaves you with a packet containing "0x4900" and your server's URL which the client will then use to reach server select. | |||
<span style="font-weight:bold">GetNetworkIP()</span> pulls the world server's URL from | |||
== Server Selection == | == Server Selection == | ||
Mac Clients do not have a server select option. As a result, server selection is passed to them after successful login. While there is a way to have the client select a server based on an Apple IPC mechanism, the server is currently hardcoded as a configuration setting in | Mac Clients do not have a server select option. As a result, server selection is passed to them after successful login. While there is a way to have the client select a server based on an Apple IPC mechanism, the server is currently hardcoded as a configuration setting in `login.ini` as well as the `loginserversettings` table. | ||