forum

Creating a site to host an online game?

posted
Total Posts
31
Topic Starter
gaph2000
So I'm making an online game (similar to osu! in that it will have a chat, multiplayer, etc.). Could someone go over the basics? Like what I will need and where to get it?
phill_old
Well, for chat/forums/website you generally use a normal LAMP setup + IRC server. For that you could get away with VPS hosting, but if you plan on having the server do more complex, game related, things you're going to want your own dedicated server in a datacenter somewhere.

Initially your userbase is going to be small, so start small and think big. If you don't have a spare PC to run linux/your own server, use VMWare. Get everything working nicely locally, then deploy to your chosen hosted solution.
Topic Starter
gaph2000

phill wrote:

Well, for chat/forums/website you generally use a normal LAMP setup + IRC server. For that you could get away with VPS hosting, but if you plan on having the server do more complex, game related, things you're going to want your own dedicated server in a datacenter somewhere.

Initially your userbase is going to be small, so start small and think big. If you don't have a spare PC to run linux/your own server, use VMWare. Get everything working nicely locally, then deploy to your chosen hosted solution.
Unfortunately, I only understand 5% pf what you just said ;_;

Thanks anyway, I'll have to look into whatever that means.
phill_old
Well, it's not a small thing really. There are many many components that come together to present what you see ingame, through the website and in chat, and most of them have had hours and hours of customisation and modification put into them by peppy.

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

A webserver - Apache, Lighttpd, IIS etc. Osu uses Apache.

A chat server - IRC. Peppy pretty much re-rolled his own on this. Normal IRC clients work fine with it but it's not IRC in the normal sense.

A scripting language: Your website needs to talk to the db and soforth. Osu uses PHP, mostly.

LAMP = Linux, Apache, MySQL, PHP. It's abbreviated because it's a very common set of applications for web-related duties.
Topic Starter
gaph2000

phill wrote:

Well, it's not a small thing really. There are many many components that come together to present what you see ingame, through the website and in chat, and most of them have had hours and hours of customisation and modification put into them by peppy.

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

A webserver - Apache, Lighttpd, IIS etc. Osu uses Lighttpd.

A chat server - IRC. Peppy pretty much re-rolled his own on this. Normal IRC clients work fine with it but it's not IRC in the normal sense.

A scripting language: Your website needs to talk to the db and soforth. Osu uses PHP, mostly.

LAMP = Linux, Apache, MySQL, PHP. It's abbreviated because it's a very common set of applications for web-related duties.
Now THIS I can understand! Thanks! Also, If anyone else has anything to contribute, it's welcome!
peppy

phill wrote:

Well, it's not a small thing really. There are many many components that come together to present what you see ingame, through the website and in chat, and most of them have had hours and hours of customisation and modification put into them by peppy.

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

A webserver - Apache, Lighttpd, IIS etc. Osu uses apache.

A chat server - IRC. Peppy pretty much re-rolled his own on this. Normal IRC clients work fine with it but it's not IRC in the normal sense.

A scripting language: Your website needs to talk to the db and soforth. Osu uses PHP, mostly.

LAMP = Linux, Apache, MySQL, PHP. It's abbreviated because it's a very common set of applications for web-related duties.
Also I lol'd at avoiding mssql ;). Presumably due to the obscene licence fees.
Atmey
Or if you are just getting started and don't want to install LAMP, I suggest WAMP.
Its basically the same thing for Windows (except maybe without chat).
http://www.wampserver.com/en/

I'm currently working on this game, hopefully will see the light someday.
Topic Starter
gaph2000
This map has been deleted on the request of its creator. It is no longer available.
phill_old

peppy wrote:

phill wrote:

Well, it's not a small thing really. There are many many components that come together to present what you see ingame, through the website and in chat, and most of them have had hours and hours of customisation and modification put into them by peppy.

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

A webserver - Apache, Lighttpd, IIS etc. Osu uses apache.

A chat server - IRC. Peppy pretty much re-rolled his own on this. Normal IRC clients work fine with it but it's not IRC in the normal sense.

A scripting language: Your website needs to talk to the db and soforth. Osu uses PHP, mostly.

LAMP = Linux, Apache, MySQL, PHP. It's abbreviated because it's a very common set of applications for web-related duties.
Also I lol'd at avoiding mssql ;). Presumably due to the obscene licence fees.
I was working on the assumption that some people prefer to go the MS route for hosting and would probably pirate MSSQL :D

And yeah, wasn't sure about lighttpd/apache.
phill_old

gaph2000 wrote:

phill wrote:

Well, it's not a small thing really. There are many many components that come together to present what you see ingame, through the website and in chat, and most of them have had hours and hours of customisation and modification put into them by peppy.

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

A webserver - Apache, Lighttpd, IIS etc. Osu uses Lighttpd.

A chat server - IRC. Peppy pretty much re-rolled his own on this. Normal IRC clients work fine with it but it's not IRC in the normal sense.

A scripting language: Your website needs to talk to the db and soforth. Osu uses PHP, mostly.

LAMP = Linux, Apache, MySQL, PHP. It's abbreviated because it's a very common set of applications for web-related duties.
Err, uh, I just came up with a bunch more questions (Which I will probably forget as I'm writing them)

So this sounds like Ill need a whole other PC to run all this on. If this is the case, what specs does it need, and about how much do they cost? And will it need to be on constantly? Also... You mentioned something about going to a data center? Could you tell me more?

And if you don't mind (I know it's asking slot) Could you explain what each of the things you mentioned do?

One more thing - I have the Adobe CS3 Master Collection, which includes Dreamweaver, which I beleive is used for creating websites. Would it basically start out as me using that and, say, getting a domain name from a place like GoDaddy? Or something more complex?

If only I could find some tutorial kind of thing. You'd think there was one somewhere, but I sure cant find it.
How much 'game' have you made yet? You don't need to think about this stuff until your game is fairly developed. It sounds like you'd be better off finding a friend who is familiar with all this to set it up for you.
peppy
Yup. Game first. Online functionality later. Sounds like you have a lot of reading to do, anwyays.
Atmey
You can use dreamweaver to write php, for php I recommend w3schools.
Echo
When you say an online game, do you mean a game you play from your browser, or standalone like osu?
phill_old

Atmey wrote:

You can use dreamweaver to write php, for php I recommend w3schools.
You *can* but what's the point? There are better syntax-highlighting editors out there.
Topic Starter
gaph2000
This map has been deleted on the request of its creator. It is no longer available.
Loginer
This map has been deleted on the request of its creator. It is no longer available.
Topic Starter
gaph2000

Loginer wrote:

gaph2000 wrote:

But I need to know about how much this will cost me, so I know if I going to go through with this at all.
The domain will cost about $10/year, and the hosting will be free if you use your own computer as a server (which should do for the moment, but you'll have to keep your computer on 24/7). A "real" dedicated server will cost you about $150/month.

gaph2000 wrote:

Oh, and if anyone knows a place where I can go for help once I'm at the point where I'm going to add in online capabilities, that would be nice.
That depends on what language/program you're using.
$150 a month!? If it's possible to use any computer, why wouldn't I just buy a new, dedicated computer to run it on? Would'nt that be cheaper?

And as for the programming language, I'm working in C++ on Visual Studio 8, if that helps.
Topic Starter
gaph2000
Oh, and peppy, mind if I ask you a proramming question?

Assuming osu! is programmed in C++, HOW DO YOU MAKE THE FRIKIN' PROGRAM FULLSCREEN!? It's been buggin me all day ;_; If you don't want to answer (or osu! isn't programmed in C++) it's a'ight. I'll just have to keep looking.
phill_old
Sorry gaph, I think you should focus on your programming for now. If you end up with a client-server type multiplayer game you can get it working locally first and then think about finding a server to support more than a few players.

As for a website like this, you can definitely do the forum/irc/frontpage part for cheap/free/no effort. It won't look nearly as nice/integrated as the Osu! site does unless you put effort into learning some php/html/css though.

some ok free hosting...
http://www.000webhost.com/

then some software to get you going...
frontpage - http://www.phpnuke.org
forums - http://www.phpbb.com
chat / irc - http://cgiirc.org/ (find an existing irc server, make a channel on there to discuss your game)
peppy

gaph2000 wrote:

HOW DO YOU MAKE THE FRIKIN' PROGRAM FULLSCREEN!?
Depends on what library you are using to display your content. There are different API calls for directx and opengl, and i'm sure if you search google for "directx fullscreen" or something similar, you will feel lucky.
Atmey

phill wrote:

Atmey wrote:

You can use dreamweaver to write php, for php I recommend w3schools.
You *can* but what's the point? There are better syntax-highlighting editors out there.
I've been searching for an alternative lately, would do you suggest?
also lol @ phpbb website.
Azure_Kite

phill wrote:

The basics:
Hardware:
A server - this can be windows for your game server, but your way better off hosting websites/chat on a linux box.

Software
A database - Osu uses MySQL for example. Avoid MSSQL. PostgrSQL is good but there a less examples and support if you're new to db's in general

Microsoft Windows Servers are pretty lame compared to Linux; The big L runs More efficiently, with just a little extra work put in. You definitely want to stay away from Microsoft SQL as well, Microsoft condenses and tried to package their programs with little to no cross compatibility. SQL is no exception, access taught me that
phill_old

Atmey wrote:

phill wrote:

Atmey wrote:

You can use dreamweaver to write php, for php I recommend w3schools.
You *can* but what's the point? There are better syntax-highlighting editors out there.
I've been searching for an alternative lately, would do you suggest?
also lol @ phpbb website.
I use Textmate on OSX and Notepad++ on Windows.

http://www.macromates.com

http://notepad-plus.sf.net
peppy

Azure_Kyte wrote:

Microsoft Windows Servers are pretty lame compared to Linux; The big L runs More efficiently, with just a little extra work put in. You definitely want to stay away from Microsoft SQL as well, Microsoft condenses and tried to package their programs with little to no cross compatibility. SQL is no exception, access taught me that
This is very debatable. PHP applications actually run faster when compiled to CLR (.NET) bytecode. MSSQL outperforms MySQL by miles - just search for any benchmarks. It also features management, security, optimisation and tracing, and logging beyond what MySQL could ever hope for. I'm not sure what you mean by "cross compatibility", but I'm pretty sure you are looking at this from an unnecessarily and unfairly negative viewpoint.

I don't want to start a debate though - just informing you of the blatant facts :). Linux wins hands down for not having insane license fees and restrictions.

phill wrote:

I use Textmate on OSX and Notepad++ on Windows.
http://www.macromates.com
http://notepad-plus.sf.net
I recommend Cream for windows - a prepackaged gVim installation. Of course, use visual studio over everything if you are coding in c, c++, or .net of any kind.
Echo
I use Programmer's Notepad for my non-.NET dev
Topic Starter
gaph2000
Ooooh, a debate?

Anyway, thanks peppy! After trying about 6 different methods (spanning 4 hours :P) I finally found one that worked, and to top it off, used only 2 lines of code, unlike the other ones using about 30. Now I'm just trying to figure out how to make the program close as the method I'm using to make the program fullscreen doesn't use a window. That, and how to switch in and out of Window/Fullscreen without a program restart, then I can really get going on this! Thanks again!
peppy
So what are you actually using as your 2d/3d interface?
Topic Starter
gaph2000

peppy wrote:

So what are you actually using as your 2d/3d interface?
OpenGL. And if you're curious as to what I'm making, I've got a thread about it on the "Other Games" Forum

http://osu.ppy.sh/forum/viewtopic.php?f=17&t=9767
awp

phill wrote:

Notepad++
I use straight-up Notepad.

Thug life.
phill_old
I bet you have your font set to Comic Sans MS, bold 14pt too.
devkit4384
i find this thread oddly amusing.

awp wrote:

phill wrote:

Notepad++
I use straight-up Notepad.

Thug life.
dam, and i thought my bloodshed Dev-C++ was gangsta'.
Please sign in to reply.

New reply