| Mirage Source http://www.miragesource.net/forums/ |
|
| Problems over Windows Server 2008 http://www.miragesource.net/forums/viewtopic.php?f=193&t=5564 |
Page 1 of 1 |
| Author: | Dragoons Master [ Sat May 02, 2009 11:16 pm ] |
| Post subject: | Problems over Windows Server 2008 |
I'm having some troubles since I formatted my server and installed Windows Server 2008. I've installed everything needed for the server to work. And it does. It loads/runs like it is supposed to, I've even opened the port so outsiders can connect, and then can. But when a client connects it got stuck on character loading. I tried connecting a vanilla MSE2 client, and it works normally. So the problem is my game, not the OS. Well, now I'm really on a dilemma. Whats should I do? I'm using JetByte Socket Server 1.0 and I think that's the problem... Now I'm thinking if it is worth using this or there is something better out there. |
|
| Author: | GIAKEN [ Sat May 02, 2009 11:30 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
IOCP sucks. |
|
| Author: | Dragoons Master [ Sat May 02, 2009 11:36 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
GIAKEN wrote: IOCP sucks. Why that? |
|
| Author: | Tony [ Sat May 02, 2009 11:49 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
This might help http://www.xtremevbtalk.com/showthread.php?t=285255 |
|
| Author: | Dragoons Master [ Sat May 02, 2009 11:55 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
I just saw this article. It's very old. I can't find anything that really helps. |
|
| Author: | Tony [ Sat May 02, 2009 11:57 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Quote: I've tried the original COM DLL created to support VB6. I'm unimpressed with the results I am getting, which can freeze up a compiled EXE or crash the IDE. Since the later verions don't offer COM support I think I'll let this fade back into obscurity. Guess it means you shouldn't use it since that guy himself had major problems with it. |
|
| Author: | Dragoons Master [ Sun May 03, 2009 12:03 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Ok, but what should I use instead, and no, I'm not going back to simple WinSocket. |
|
| Author: | Tony [ Sun May 03, 2009 12:16 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Hmm, follow Spodi's path? "SOX with optimized binary packet sending" Don't know how he does it though. Spodi wrote: SOX is just a nice wrapper for the Winsock API. Theres a few hacks you want to do on the socket itself to get it prepped for a game engine, though. For example, it sends a 4-byte (long) overhead for every SEND command, which is pretty useless for a game server (integer would suffice), the default send/recv buffer comes at 8192 bytes (you'd be fine lowering that to around 512 bytes easily), etc. And just a heads up, you cant use IOCP with SOX I believe, so you can't have an IOCP server and SOX client, because of the additional header I mentioned earlier. http://www.planet-source-code.com/vb/sc ... 4&lngWId=3 |
|
| Author: | Dragoons Master [ Sun May 03, 2009 12:17 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Thanks Toni, I'll take a look. EDIT: I found this: http://echostorms.net/Mirage/MS%20Tutor ... s/SOX.html Seems good. Downloaded SOX source from this: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6364&lngWId=3 OK, it kind of worked, but I can't manage to send Binary data through the sox. Any one got any idea? |
|
| Author: | Dragoons Master [ Sun May 03, 2009 5:39 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Any one got SOX with a WORKING SENDDATA function? I need binary data >< Tnx in advance. |
|
| Author: | Dragoons Master [ Sun May 03, 2009 6:11 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Damn >< Ok, I found out that the problem is NOT the SOX nor the IOCP nor even WinSock xD It's some kind of problem with my packet handling. I'll post the code. Client side is the same things as a simple binary packets client. I add to the header the size of the packet and the packet's code(enum). The problem seems to be that the packets in win server 2008 are going too fast, somehow really, can't explain, or baaaaaaaaaaaaaaaaaaaaaah, I DON'T KNOW!!! DAMN THIS IS DRIVING ME NUTS!!! I'll try to disable Naggle's algorithm. EDIT: BTW, sry for triple post >< |
|
| Author: | GIAKEN [ Mon May 04, 2009 2:18 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Dragoons Master wrote: Any one got SOX with a WORKING SENDDATA function? I need binary data >< Tnx in advance. Use GOREsock. |
|
| Author: | Dragoons Master [ Wed May 06, 2009 10:15 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
I tried, didn't work. It's some kind of problem I'm having with my server. Maybe is how I handle the packets, but I'm not sure. A vanilla MSE2 works normally, even thou it uses string packets and I use binary. |
|
| Author: | Coke [ Thu May 07, 2009 12:53 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Mate, I can guarantee you if it is the OS, it is something to do with Windows Group Policies. I built and maintain one of the servers at work running windows server 2008 and its a fecking nightmare, VM a Win2k3 Server image in ubuntu, put a stable distro of windows in a tight little box where it can't hurt anything. You will lose out slightly on hardware accelerated performance but an MS server will not suffer from it - my home server for Mirage Realms is a slow waste of space box built from scrap work parts running ubuntu and a vm of windows xp and lag is never an issue (unless I decide to hammer the torrents). Also, IOCP has considerable disadvantages when used with vb6 - get rid of it. :3 |
|
| Author: | Dragoons Master [ Thu May 07, 2009 1:12 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
What if I just install WS2k3? I'm aware of this damn compatibility issues. |
|
| Author: | Coke [ Thu May 07, 2009 8:08 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Do that. |
|
| Author: | Dragoons Master [ Thu May 07, 2009 8:56 am ] |
| Post subject: | Re: Problems over Windows Server 2008 |
I'll try that next weekend, I'm totally out of time right now. Thanks everybody. |
|
| Author: | Dragoons Master [ Sun May 10, 2009 8:10 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Fantastic! Windows Application Compatibility Toolkit solved the problem! My server is back online! |
|
| Author: | Matt [ Sun May 10, 2009 9:25 pm ] |
| Post subject: | Re: Problems over Windows Server 2008 |
Dragoons Master wrote: Fantastic! Windows Application Compatibility Toolkit solved the problem! My server is back online! Awesome! |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|