Recently, a long time online friend of mine who I met in a MUD a long time ago come up with the idea that we rewrite our favorite MUD after it's recent closing, but with a spin by adding some basic graphics to the client.
I thought about it for a moment and thought it would be pretty cool of a project but what language should we use for the server? Now I am only comfortable with a few languages(PB and C) so my first thought was PB for the simplicity but I can't help but think that PB may not be up for the task of handling such a strenuous task as an advanced multiplayer game server.
I've had a few experiences with PB's network library with several programs I've done in the past but never anything as advanced as this, so I would like to get some input from the more advanced users of this fine language.
What do you guys think the limit of PB's network library is?
Has anyone done anything similar to this in PureBasic? If so, is their work available to see?
Is PB Viable for multiplayer games?
Is PB Viable for multiplayer games?
▓▓▓▓▓▒▒▒▒▒░░░░░
-
Zach
- Addict

- Posts: 1678
- Joined: Sun Dec 12, 2010 12:36 am
- Location: Somewhere in the midwest
- Contact:
Re: Is PB Viable for multiplayer games?
I don't really have any experience. But I don't see why you wouldn't be able to make a good server with PB. The network library is after all, just a library.. If you find it is lacking, you could always swap it out for another network library via a wrapper, right?
As for the server itself, I see no reason why PB would not do the job well.
I'm currently in the process making a MUD/Text Adveture RPG style game and I was planning on using PB's Network library for some basic small-scale multiplayer (If I decide to implement that). I don't think I've seen anything that would give me pause about that.
As for the server itself, I see no reason why PB would not do the job well.
I'm currently in the process making a MUD/Text Adveture RPG style game and I was planning on using PB's Network library for some basic small-scale multiplayer (If I decide to implement that). I don't think I've seen anything that would give me pause about that.
Re: Is PB Viable for multiplayer games?
I did do a server stress test when I just got PureBasic, and networking wise, I was was able to hit the server with about 1000 simultanious requests and it coped just fine.
I did try more, but it failed, but that may be something to do with the hardware or OS. Regardless, 1000 concurrent requests was more than adequate for my purposes.
p.s. if C can do it, PB can do it - without the headaches!
I did try more, but it failed, but that may be something to do with the hardware or OS. Regardless, 1000 concurrent requests was more than adequate for my purposes.
p.s. if C can do it, PB can do it - without the headaches!
Re: Is PB Viable for multiplayer games?
As Zach said you dont need to use the PB network lib if it does not offer what you need.
C itself does not have any network support, so you need to use API or a lib, both can also be used with PB. You dont need a wrapper for C libs, only for C++ libs because of OOP.
C itself does not have any network support, so you need to use API or a lib, both can also be used with PB. You dont need a wrapper for C libs, only for C++ libs because of OOP.