Mirage Source

Free ORPG making software.
It is currently Tue Jun 04, 2024 1:43 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ] 
Author Message
PostPosted: Sat May 02, 2009 11:16 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sat May 02, 2009 11:30 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
IOCP sucks.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
PostPosted: Sat May 02, 2009 11:36 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
GIAKEN wrote:
IOCP sucks.

Why that?

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sat May 02, 2009 11:49 pm 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
This might help

http://www.xtremevbtalk.com/showthread.php?t=285255

_________________
Image


Top
 Profile  
 
PostPosted: Sat May 02, 2009 11:55 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
I just saw this article.
It's very old.
I can't find anything that really helps.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sat May 02, 2009 11:57 pm 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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.

_________________
Image


Top
 Profile  
 
PostPosted: Sun May 03, 2009 12:03 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
Ok, but what should I use instead, and no, I'm not going back to simple WinSocket.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sun May 03, 2009 12:16 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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

_________________
Image


Top
 Profile  
 
PostPosted: Sun May 03, 2009 12:17 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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?

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sun May 03, 2009 5:39 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
Any one got SOX with a WORKING SENDDATA function?
I need binary data ><
Tnx in advance.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sun May 03, 2009 6:11 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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 ><

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Mon May 04, 2009 2:18 am 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
Dragoons Master wrote:
Any one got SOX with a WORKING SENDDATA function?
I need binary data ><
Tnx in advance.


Use GOREsock.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
PostPosted: Wed May 06, 2009 10:15 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Thu May 07, 2009 12:53 am 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
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


Top
 Profile  
 
PostPosted: Thu May 07, 2009 1:12 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
What if I just install WS2k3? I'm aware of this damn compatibility issues.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Thu May 07, 2009 8:08 am 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
Do that.


Top
 Profile  
 
PostPosted: Thu May 07, 2009 8:56 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
I'll try that next weekend, I'm totally out of time right now.
Thanks everybody.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sun May 10, 2009 8:10 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
Fantastic! Windows Application Compatibility Toolkit solved the problem! My server is back online!
:D

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
PostPosted: Sun May 10, 2009 9:25 pm 
Dragoons Master wrote:
Fantastic! Windows Application Compatibility Toolkit solved the problem! My server is back online!
:D


Awesome! :D


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group