Is PB Viable for multiplayer games?

Everything else that doesn't fall into one of the other PB categories.
Nituvious
Addict
Addict
Posts: 1033
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Is PB Viable for multiplayer games?

Post by Nituvious »

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?
▓▓▓▓▓▒▒▒▒▒░░░░░
Zach
Addict
Addict
Posts: 1678
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Is PB Viable for multiplayer games?

Post by Zach »

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.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: Is PB Viable for multiplayer games?

Post by Foz »

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! ;)
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: Is PB Viable for multiplayer games?

Post by Thorium »

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.
Post Reply