Mirage Source
http://miragesource.net/forums/

Mirage WinSock
http://miragesource.net/forums/viewtopic.php?f=207&t=3570
Page 1 of 2

Author:  Xlithan [ Tue Apr 08, 2008 2:49 am ]
Post subject:  Mirage WinSock

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.

Author:  William [ Tue Apr 08, 2008 3:09 pm ]
Post subject:  Re: Mirage WinSock

http://www.planet-source-code.com/

Author:  Matt [ Tue Apr 08, 2008 3:47 pm ]
Post subject:  Re: Mirage WinSock

He wants to use the ms networking.

Author:  William [ Tue Apr 08, 2008 3:59 pm ]
Post subject:  Re: Mirage WinSock

It's the same winsock for everything basicly so he can download a winsock project from there.

Author:  Xlithan [ Tue Apr 08, 2008 4:06 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  William [ Tue Apr 08, 2008 4:16 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  Spodi [ Tue Apr 08, 2008 4:51 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  Robin [ Tue Apr 08, 2008 4:53 pm ]
Post subject:  Re: Mirage WinSock

Mirage is a text based winsock with the server socket using an array.

Simplicity.

Author:  Joost [ Tue Apr 08, 2008 9:07 pm ]
Post subject:  Re: Mirage WinSock

Lol at off-topicness.

Author:  Xlithan [ Tue Apr 08, 2008 10:24 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  William [ Wed Apr 09, 2008 3:54 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  Xlithan [ Thu Apr 10, 2008 12:25 am ]
Post subject:  Re: Mirage WinSock

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.

Author:  Xlithan [ Thu Apr 10, 2008 1:37 am ]
Post subject:  Re: Mirage WinSock

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

Author:  Joost [ Thu Apr 10, 2008 6:08 am ]
Post subject:  Re: Mirage WinSock

I'll look at it in...8 hours from now.

Author:  Xlithan [ Thu Apr 10, 2008 7:29 am ]
Post subject:  Re: Mirage WinSock

That's ok with me. I got work today.

Author:  William [ Thu Apr 10, 2008 2:34 pm ]
Post subject:  Re: Mirage WinSock

What is it that doesn't work? I can see that you have nothing to save a created account in the server.

Author:  Xlithan [ Thu Apr 10, 2008 10:17 pm ]
Post subject:  Re: Mirage WinSock

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.

Author:  seraphelic [ Thu Apr 10, 2008 10:48 pm ]
Post subject:  Re: Mirage WinSock

Are you gonna try building your own game engine off this? I'm kinda interested.

Author:  Xlithan [ Fri Apr 11, 2008 2:57 am ]
Post subject:  Re: Mirage WinSock

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.

Author:  Matt [ Fri Apr 11, 2008 4:18 am ]
Post subject:  Re: Mirage WinSock

Why not just rip the graphical stuff out of MS and go from there?

Author:  Xlithan [ Tue Apr 15, 2008 9:29 pm ]
Post subject:  Re: Mirage WinSock

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:

Author:  Anarchy [ Thu Apr 17, 2008 12:49 am ]
Post subject:  Re: Mirage WinSock

hmmm, i could use this can you please post it up when you are done??

Author:  Tony [ Thu Apr 17, 2008 2:12 am ]
Post subject:  Re: Mirage WinSock

Sound's fun :D

Make a new topic on this!

Or can someone clean this out?

;D

Author:  Joost [ Thu Apr 17, 2008 9:33 am ]
Post subject:  Re: Mirage WinSock

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.

Author:  Xlithan [ Fri Apr 18, 2008 10:22 pm ]
Post subject:  Re: Mirage WinSock

Well, atleast it opened up the idea.

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/