Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 9th, 2007, 04:39 PM
RDG's Avatar
RDG RDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Cancún. México
Posts: 141 RDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 32 m 51 sec
Reputation Power: 3
Post Live chatroom

Hey, I want to make an online room where people are 2D characters (or whatever) and they can talk with each other by typing messages. I'm doing this to get me started on online gaming. Now I don't want to make an MMORPG, I realize that's impossible for one person to make. Just let me know what tools will I need, what languages, everything. I have experience with:

- Actionscript
- C
- Objective C
- PHP (not alot)
- Assembly (although I don't think that would help)

But I don't know absolutely nothing about networking. Just tell me what tools will I need and I'll get started.

Thanks in advanced

Reply With Quote
  #2  
Old August 9th, 2007, 08:50 PM
gimp's Avatar
gimp gimp is offline
<?PHP user_title("gimp"); ?>
Click here for more information.
 
Join Date: Jan 2005
Location: Internet
Posts: 5,791 gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 1555 Folding Title: Novice Folder
Time spent in forums: 2 Months 2 Weeks 4 Days 57 m 25 sec
Reputation Power: 1469
Send a message via AIM to gimp
Well, let's look at your experience:

Actionscript: That's flash, yes? You can use flash. XML sockets is what you need to look at, IIRC.
C: Yep, C supports socket programming.
PHP: Egh. Possible, yes. Two ways: Refreshing or ajax. What that means is that you can either have your php page keep refreshing or you can use AJAX (Javascript) to keep checking for new messages. AJAX is prettier and all that. Both are bandwidth hogs though - you keep refreshing and refreshing and checking and checking...
Assembly: Well. Just about anything you could ever want is possible with assembly. I'm sure there are assembly libraries for socket programming. However, unless you're really hardcore, you don't want to get into this - if you had the abilities to go socket programming with assembly, you'd not be posting here.

What tools? Depends on the language. There are a few other languages that make socket programming easy - for example, in java, there are a bunch of ways to make a chat program, including sockets, and they're fairly easy to learn (but difficult to master, of course).

So pick a language.
And really, the tools you need: A computer that can handle both a server and a few clients running at once, or two computers (or more). Not much else. An editor, an IDE maybe. Packet sniffer if you want to check your own stuff to see how it looks. Encrypter if you want to make your chat program hardcore.

Yes, I've been going on about sockets even though there are different ways to do this. Why? Socket programming... well, the first thing someone does when they're learning socket programming is makes a simple chat program to see if they have the hang of it for a reason.
__________________
A work in progress: Card Game Platform (Status: On Hold) | Joke Thread
“Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was
its finest fruit.”

Reply With Quote
  #3  
Old August 9th, 2007, 10:34 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,476 Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 12 h 46 m 31 sec
Reputation Power: 426
Here's how many mainstream languages (for app development) you narrowed down: 0. Because of all them have some way of displaying 2D graphics and all of them also happen to have networking libraries.

Quote:
But I don't know absolutely nothing about networking. Just tell me what tools will I need and I'll get started.

The tool you actually need is knowledge. You're thinking in terms of "best tool", and there's no such thing. There's only constraints which you try to best fulfill. And you can't come up with any real constraints because you lack the knowledge to do so.

If you're really fidgeting over the vast sea of choices, follow the recommendation I give to nearly everyone who wants to start programming. Pick a very high level but mainstream language like Python or Ruby. If neither suits you, either C# or Java is fine as well, as they have large libraries of code to draw upon.

The thing about Flash is that you really need an intermediate. You need to know another programming language effectively. But Flash can get you good graphics for the web. Then again, you might be able to pull something off with an AJAX web app. That involves client-server communication which you can exploit as well.

Gimp basically explained it though. A chat app is basically a choice test app for sockets and networking logic. You get to define your own protocol, or figure out another (I personally picked IRC). And the essential comes down to message passing between client and server, which effectively is what you need to understand. But the idea is that you know the underlying concepts.
__________________
C/C++: Books, C FAQ, C++ FAQ, C/C++ Reference.
Python: Website, Beautiful Soup.

Reply With Quote
  #4  
Old August 10th, 2007, 12:00 AM
Yegg`'s Avatar
Yegg` Yegg` is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2004
Location: Meriden, Connecticut
Posts: 1,676 Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 13 h 49 m 41 sec
Reputation Power: 68
Send a message via AIM to Yegg`
RDG: It isn't impossible for one person to make an MMORPG. It would be a lot of work and would take quite some time, but Andrew Gower mostly made the original Runescape Classic alone. His brother helped out a little bit. Originally, it was just Andrew who was doing all the work.

gimp: "assembly libraries for socket programming"? Why would you need such a thing? Unless you're creating an operating system of some sort or a software that runs on a game console or some other not-as-often-used-as-a-personal-computer device, then you would simply use what your operating system provides. If you're on Windows and you're writing a program that requires socket support, you would simply make calls to the Winsock library. If you're on Linux, you would make the proper system socket calls. If you're really smart, I'm sure you could even figure out how to use a platform-independent framework (ie. wxWidgets) through assembly to write a program which uses sockets. This could also give you the advantage of writing a cross-platform assembly software that supports the use of sockets (provided you also have the right assembler (GAS comes to mind) and skills for the job) if you're that "hard core" -- as you worded it.

Reply With Quote
  #5  
Old August 10th, 2007, 09:06 AM
gimp's Avatar
gimp gimp is offline
<?PHP user_title("gimp"); ?>
Click here for more information.
 
Join Date: Jan 2005
Location: Internet
Posts: 5,791 gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 1555 Folding Title: Novice Folder
Time spent in forums: 2 Months 2 Weeks 4 Days 57 m 25 sec
Reputation Power: 1469
Send a message via AIM to gimp
You're right. I meant that there are things you can use with assembly so you don't have to recreate socket programming. I worded myself poorly.

Reply With Quote
  #6  
Old August 10th, 2007, 01:00 PM
RDG's Avatar
RDG RDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Cancún. México
Posts: 141 RDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 32 m 51 sec
Reputation Power: 3
Ok, so is it possible to make an online chat room with Flash and php?

Reply With Quote
  #7  
Old August 10th, 2007, 01:02 PM
gimp's Avatar
gimp gimp is offline
<?PHP user_title("gimp"); ?>
Click here for more information.
 
Join Date: Jan 2005
Location: Internet
Posts: 5,791 gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 1555 Folding Title: Novice Folder
Time spent in forums: 2 Months 2 Weeks 4 Days 57 m 25 sec
Reputation Power: 1469
Send a message via AIM to gimp
Possible? Yes. Any language that supports and sort of networking has the capabilities.

Some things you just don't want to do.

Tell me, why are you set on using php? Flash chat rooms are alright, but PHP chat rooms are... well, not really good, mostly.

Reply With Quote
  #8  
Old August 10th, 2007, 01:05 PM
RDG's Avatar
RDG RDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Cancún. México
Posts: 141 RDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 32 m 51 sec
Reputation Power: 3
Well the reason is because I have php installed in Apache and I have Flash. What should I use then?

Reply With Quote
  #9  
Old August 10th, 2007, 01:12 PM
gimp's Avatar
gimp gimp is offline
<?PHP user_title("gimp"); ?>
Click here for more information.
 
Join Date: Jan 2005
Location: Internet
Posts: 5,791 gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 1555 Folding Title: Novice Folder
Time spent in forums: 2 Months 2 Weeks 4 Days 57 m 25 sec
Reputation Power: 1469
Send a message via AIM to gimp
Well, how good are you with flash? If you learn XML socket programming with flash you can make yourself a little map with people walking around chatting.

Though personally I'd go with a real language and just pick up socket programming from there. C/C++/C#/Java/etc.

Reply With Quote
  #10  
Old August 10th, 2007, 01:13 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,476 Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 12 h 46 m 31 sec
Reputation Power: 426
Flash + PHP is fine. I don't get what Gimp is saying about Flash chatrooms being OK, but PHP not. Flash chatrooms need an intermediate, which could be PHP or any million other possibilities.

Reply With Quote
  #11  
Old August 10th, 2007, 01:17 PM
RDG's Avatar
RDG RDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Cancún. México
Posts: 141 RDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 32 m 51 sec
Reputation Power: 3
As far as I know Flash XML socket programming needs something to send data to and recieve data from, and that is a php file. SO is this a good choice?

Reply With Quote
  #12  
Old August 10th, 2007, 01:19 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,476 Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 12 h 46 m 31 sec
Reputation Power: 426
Quote:
As far as I know Flash XML socket programming needs something to send data to and recieve data from, and that is a php file. SO is this a good choice?
Yes. It's fine. The point I've being trying to (implicitly?) make is that choice of language(s) is irrelevant in the end. As long as they have a straightforward way of creating sockets or working with network protocols, you're fine. Flash + PHP makes a perfectly good combination.

Reply With Quote
  #13  
Old August 10th, 2007, 01:50 PM
gimp's Avatar
gimp gimp is offline
<?PHP user_title("gimp"); ?>
Click here for more information.
 
Join Date: Jan 2005
Location: Internet
Posts: 5,791 gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)gimp User rank is General 7th Grade (Above 100000 Reputation Level)