Mirage Source

Free ORPG making software.
It is currently Sat Apr 27, 2024 6:02 pm

All times are UTC




Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Mirage WinSock
PostPosted: Tue Apr 08, 2008 2:49 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
I'm not good at network programming, so I was wondering if anybody could (or has) rip out the network code into a new project.

I'm asking because I like the way the MSE network system works, parsing the packets etc.

I just need everything from the source into a new project file that will allow me to immediately connect from client to server and send packets. From there I can work on adding new things like accounts and stuff.

The reason for this is because I want to work on a MUD engine from scratch (With a little help with the connection stuff).

Thanks.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 3:09 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
http://www.planet-source-code.com/

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 3:47 pm 
He wants to use the ms networking.


Top
  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 3:59 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
It's the same winsock for everything basicly so he can download a winsock project from there.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 4:06 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
No it's not. Most of the WinSock projects are just for sending text to and from client to server. The MS network system is obviously a working system for multiplayer connections.

The reason I want the MS system is because it already has the ability to assign each connection to the socket array.

If I wanted a crappy winsock project i'd goto PS Code, but I'm asking for the Mirage Source one, nothing else.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 4:16 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
It's easy as hell to setup for multiplayer.

Don't try and teach me about winsock, I suggest you go learning on your own instead. If you don't know winsock, you should not attempt a project with it.

MS is no better than any other multi assigned sockets.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 4:51 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
MS probably use one of the worst and most basic kind of networking you'll see in VB6. Theres really not much going on outside of just very simple blocking sends and event-based receives since it really doesn't need much more.

As far as using multiple sockets, thats hardly a step up in difficulty as long as you know how to use an array.

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 4:53 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Mirage is a text based winsock with the server socket using an array.

Simplicity.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 9:07 pm 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
Lol at off-topicness.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 08, 2008 10:24 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
lol William. I can work with it I just don't know how to initially code it. Why do people on this forum slate people for not knowing something?

It's rediculous.

Nevermind I'll ask somewhere else.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Wed Apr 09, 2008 3:54 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
I did it because of your stupid respons, you acted like you knew everything. And bashed me for posting a url to a place that has the source your looking for. MS winsock is nothing Special, everybody uses this method.

Quote:
No it's not. Most of the WinSock projects are just for sending text to and from client to server. The MS network system is obviously a working system for multiplayer connections.

The reason I want the MS system is because it already has the ability to assign each connection to the socket array.

If I wanted a crappy winsock project i'd goto PS Code, but I'm asking for the Mirage Source one, nothing else.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 12:25 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
Yes but you're not reading what I'm putting.

It's not JUST the WinSock control and WinSock code I want, it's the things like the SendData subs, the MAX constants, the HandleData stuff and packet parsing that's used in the engine.

I basically want Mirage Source, without the graphics, without the game functions. I want the account login stuff from the client and server, so I can start from there.

If I acted like I knew everything I wouldn't admit to not knowing much about WinSock.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 1:37 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
Ok, here is a RAR file containing what I've tried to do so far. All I've been trying to do at the moment is get account creation working so I have the core network stuff from MSE to be able to make a new account.

But it's not working at the moment and I know I'm probably missing some stuff.

But by downloading and opening the 2 projects, you'll understand what I mean when I say I want the MSE WinSock system. It's not just the basic stuff I need to be able to use it successfully, there's a lot more too it than that.

I don't mean to sound insulting, William, it's just that the things I want for this code-base, I can't find anywhere else.

Here's my code so far, I would imagine one of you guys could easily figure out what I'm trying to do here and maybe point me in the right direction.

http://www.nevetsweb.com/stuff/Network.rar


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 6:08 am 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
I'll look at it in...8 hours from now.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 7:29 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
That's ok with me. I got work today.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 2:34 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
What is it that doesn't work? I can see that you have nothing to save a created account in the server.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 10:17 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
The login details are sent to the packet. In the handledata mod you'll see where it tries to save the account. In the account save sub it just saves a basic ini file (For now).

However, the client doesn't seem to connect to the server.

If anybody could get a basic ini file saved, with data sent from the client i'll appreciate that very much.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 10, 2008 10:48 pm 
Offline
Regular
User avatar

Joined: Tue Oct 09, 2007 1:40 am
Posts: 93
Are you gonna try building your own game engine off this? I'm kinda interested.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Fri Apr 11, 2008 2:57 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
It will be a text-based game engine, based on Mirage Source. I want to use the MSE engine to build it. It's just something "different" to come from Mirage Source, and I can still call it a Mirage-based game as long as I try and use as much of the code as I can.

So if anybody can help me get this thing working, I can start working on it.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Fri Apr 11, 2008 4:18 am 
Why not just rip the graphical stuff out of MS and go from there?


Top
  
 
 Post subject: Re: Mirage WinSock
PostPosted: Tue Apr 15, 2008 9:29 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
It's not that simple. Most of the functions in Mirage Source are connected to the graphics engine.

All I need is the WinSock, packet handling systems and the account login system. From there I can re-add everything else.

It doesn't matter too much now though since I've started on a server that will work with Telnet (Atleast until I start writing the client). I'd like to make a Mirage-Based mud eventually, but without somebodys help I probably won't be able to achieve my goal.

Thanks anyway :mrgreen:


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 17, 2008 12:49 am 
Offline
Knowledgeable
User avatar

Joined: Thu Jun 01, 2006 11:16 pm
Posts: 112
hmmm, i could use this can you please post it up when you are done??

_________________
Matt wrote:
We need more black people around here, that way they don't have to dub a white person as the local black guy.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 17, 2008 2:12 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Sound's fun :D

Make a new topic on this!

Or can someone clean this out?

;D

_________________
Image


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Thu Apr 17, 2008 9:33 am 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
I've been working on it, but it really was a mess. Half the functions he called to did not exist (SendData, IsPlaying), stuff like that. Time consuming.


Top
 Profile  
 
 Post subject: Re: Mirage WinSock
PostPosted: Fri Apr 18, 2008 10:22 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
Well, atleast it opened up the idea.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 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