I was just about to make this thread.
So far I have been unable to completely get a server working (any version). I am currently playing with Trapped's server. Everything is done in a seperate wineprefix, all ports are forwarded...
Summary:
- mysql works perfectly fine (obviously, no emulation needed). Successfully added accounts + characters/whatnot
- server.exe runs (usually) and can connect to the mysql database.
- client can connect to the server, login, view characters etc.
- wserver.exe runs, but client is unable to connect to it. After selection of character, client is unable to connect to worldserver.
Details:
Tried several different versions from Trapped's ****** (after failing with MMOE and Krazy) and am currently using "Guild board now fully working".
mysql is using ./db/structure.sql, I tried patching the dump to make it work before realising it was so out of date it didnt have whitelist/bans, it partially worked regardless.
Accounts + characters added to mysql database are useable in client.
server.exe usually starts with two errors, but otherwise communicates with client fine. Errors:
- Problems loading config.cfg. The default data has been used instead #(shouldnt be a problem)
- protocol "IP" not found; You might want to add this to /etc/protocol #(server.exe seems to work fine so maybe not an issue?)
Server also likes to hang for no reason and refuses to terminate, all without errors. Restarting server.exe fixes this.
Although sometimes spams an error message and hangs or quits. Stopping and waiting a bit usually fixes this...
Error message:
Code:
Unhandled Exception:
System.Net.Sockets.SocketException: Error looking up error string
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Error looking up error string
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[user@ProjectCinnamon ~]$ WINEPREFIX=~/.wine-rotmg wine /home/user/Downloads/rotmg_svr-final/rotmg_svr-96f1a022b690ff66b0631defadd9685df7c57350/server/bin/Release/server.exe
Problems loading config.cfg. The default data has been used instead
protocol "IP" not found; You might want to add this to /etc/protocols
Wserver.exe runs seemingly fine, with the protocol "IP" not found error (aswell as the lagged and merchant spam). Nothing would indicate that it is not working, seems more stable than server.exe, never crashed. As mentioned previously, when a character is selected by client, the message "Connecting to EUSouth" appears as expected, then the error message "Security Error:Error
#2048 Connection Failed! Retrying...". I suspect this is simply the client being unable to communicate with the wserver, as wserver.exe looks like it is working, and client can connect to server.exe. EDIT: this is probably due to server.exe not properly directing the client to wserver...
I have tried running the client through firefox aswell as flashprojecter in the same wineprefix as the server and wserver, both have the same results. Can login with various accounts, can view all characters associated with said accounts.
Note: KrazyServer works on windows...
Thank you @
Trapped for entertaining me for a weekend, and providing me with this educational experience
PS: Arch Linux