Author Topic: best language for multiplayer game?  (Read 1739 times)

0 Members and 1 Guest are viewing this topic.

Offline IrishYoga

  • Serf
  • *
  • Posts: 31
  • Cookies: -2
    • View Profile
best language for multiplayer game?
« on: April 28, 2013, 07:48:43 pm »
I would like to create a "game" that focuses on the rankings of people at my school. For example, you would have to put your name, and your grade point average and you submit and the tables are refreshed and you find out your ranking in the game(not the school because everyone in the school would have to play the game for that to happen). Any suggestions? Could you guys also provide some pseudo code for me to start working on? I haven't made any multiplayer programs only single player programs, so i don't have much experience. The game doesn't have to have amazing graphics, it will only have this simple table. I know their will be a lot of people cheating with like 5.0 gpa, but it'll just be for fun lol.

Offline Zesh

  • Royal Highness
  • ****
  • Posts: 699
  • Cookies: 42
    • View Profile
Re: best language for multiplayer game?
« Reply #1 on: April 28, 2013, 10:31:59 pm »
Any language that can use sockets will do. You can store the grade point averages in a file or better yet a database. You will have the the client program connect to the server and the server will pull the data from file/database and send it to the client so it can be displayed.

Better yet, as this will be used in school, is to place the file/database on a local drive that can be accessed from anywhere within the school network and just create a program to pull the data from the file/database, sort it into rank and display it.

Do you know any programming languages? I'm sure all languages can work with sockets and do some simple file I/O.

Offline IrishYoga

  • Serf
  • *
  • Posts: 31
  • Cookies: -2
    • View Profile
Re: best language for multiplayer game?
« Reply #2 on: April 29, 2013, 11:41:08 pm »
I know python, but i don't know much about ports. I would like this to be accessed from anywhere that has internet connection, is this possible? Because many students don't have access to a computer lab in my school.

Offline Zesh

  • Royal Highness
  • ****
  • Posts: 699
  • Cookies: 42
    • View Profile
Re: best language for multiplayer game?
« Reply #3 on: April 30, 2013, 12:28:42 am »
You can Google "python winsock" for some examples on how to create client and server programs. Is the school network on all the time? If so then maybe you could host your server program on the school network instead of buying a VPS.

So basically, you'll create a client and a server. The server will be hosted on a VPS, home computer or maybe even the school network. The client program is what you'll give to the students.

Offline Fur

  • Knight
  • **
  • Posts: 216
  • Cookies: 34
    • View Profile
Re: best language for multiplayer game?
« Reply #4 on: April 30, 2013, 08:18:17 pm »
If you just want a comparison to other users' grades (perhaps a rank and a bunch of people sprites with a coloured one that indicates the user, like www.7billionworld.com), I'd go with PHP and MySQL. Much more accessible than a Python script.


Just keep an eye on the personal information laws in your country and don't forget to tell the user that submitted data will be stored.

Offline IrishYoga

  • Serf
  • *
  • Posts: 31
  • Cookies: -2
    • View Profile
Re: best language for multiplayer game?
« Reply #5 on: May 01, 2013, 12:08:04 am »
How could i host my program on the school servers? I've tried to code php, but i haven't tried mysql. It doesn't have to be that fancy, i just need a chart saying the person's name and their gpa and their ranking based in the game. I think the school servers are on all the time.

Offline bluechill

  • Cybermancer
  • Royal Highness
  • ****
  • Posts: 682
  • Cookies: 344
  • I am the existence in these walls
    • View Profile
Re: best language for multiplayer game?
« Reply #6 on: May 01, 2013, 04:30:30 am »
Any language that can use sockets will do. You can store the grade point averages in a file or better yet a database. You will have the the client program connect to the server and the server will pull the data from file/database and send it to the client so it can be displayed.

Better yet, as this will be used in school, is to place the file/database on a local drive that can be accessed from anywhere within the school network and just create a program to pull the data from the file/database, sort it into rank and display it.

Do you know any programming languages? I'm sure all languages can work with sockets and do some simple file I/O.

Never *ever* *ever* do something like a multiplayer game through commits in a database.  Use UDP and a dedicated (or built into client) server.  If you use a database it will be *extremely* slow because of position info and what not. 
I have dreamed a dream, but now that dream has gone from me.  In its place now exists my own reality, a reality which I have created for myself by myself.

Offline IrishYoga

  • Serf
  • *
  • Posts: 31
  • Cookies: -2
    • View Profile
Re: best language for multiplayer game?
« Reply #7 on: May 01, 2013, 01:18:15 pm »
Thanks for a straightforward answer! I was afraid that if i uploaded this post, i would have responses like "Use the program that you think is best."

Offline Xinapse

  • NULL
  • Posts: 3
  • Cookies: 0
    • View Profile
    • iExploit
Re: best language for multiplayer game?
« Reply #8 on: May 08, 2013, 01:16:49 pm »
While its possible writing it from scratch with sockets, I would use a prewritten game engine, you will develop with it a lot faster as it does most of the work for you.
http://unity3d.com/ Is very popular, but here is a list
https://en.wikipedia.org/wiki/List_of_game_engines

Xin
Admin at iexploit.org | #iExploit irc.evilzone.org

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: best language for multiplayer game?
« Reply #9 on: May 08, 2013, 04:45:16 pm »
An engine for a simple web game? Impractical and overkill...
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline bluechill

  • Cybermancer
  • Royal Highness
  • ****
  • Posts: 682
  • Cookies: 344
  • I am the existence in these walls
    • View Profile
Re: best language for multiplayer game?
« Reply #10 on: May 09, 2013, 04:32:55 am »
An engine for a simple web game? Impractical and overkill...

You'll end up making one anyways.  All games should, if they're done right, use some kind of framework however simple.  It can be as simple as a basic starter class and an object class but it has to have some kind of game engine to be extendible and easily coded ( the game) .
I have dreamed a dream, but now that dream has gone from me.  In its place now exists my own reality, a reality which I have created for myself by myself.

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: best language for multiplayer game?
« Reply #11 on: May 09, 2013, 04:42:59 am »
Oh yes, I do understand that a game's codebase is by itself an engine, but I was referring that a heavy engine with advanced AI, rendering, lighting, physics, etc. frameworks is unnecessary. This is effectively a game that manipulates HTML tables.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline evensteven

  • /dev/null
  • *
  • Posts: 18
  • Cookies: 0
  • creationary tale
    • View Profile
Re: best language for multiplayer game?
« Reply #12 on: May 09, 2013, 07:09:13 am »
Python great for general game logic design.
If you want to accomplish something in the world, idealism is not enough - you need to choose a method that works to achieve the goal.
-Richard Stallman