Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
He wants to use the ms networking.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
It's the same winsock for everything basicly so he can download a winsock project from there.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
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.
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.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
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.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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
I'll look at it in...8 hours from now.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
That's ok with me. I got work today.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
What is it that doesn't work? I can see that you have nothing to save a created account in the server.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Are you gonna try building your own game engine off this? I'm kinda interested.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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.
Why not just rip the graphical stuff out of MS and go from there?
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
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:
hmmm, i could use this can you please post it up when you are done??
Sound's fun
Make a new topic on this!
Or can someone clean this out?
;D
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.
Posts: 343
Threads: 46
Joined: Nov 2021
Reputation:
0
Well, atleast it opened up the idea.
|