• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
RipIt

Beginning C++ / SFML--Goal is 2DtopdownRPG-basicMultiplayerOnline

19 posts in this topic

Sooo..Not sure quite where im going with this but my goal by the end of next year is to make a BASIC 2D top-down RPG that allows users to go to a website and login and play the game online with other players.

I am learning C++ and SFML. using code::blocks


Thank you for all the help and i hope this is a good explanation of what i want / am asking you.

Any help/suggestions/tips/guides will be wonderful thank you! Edited by RipIt
0

Share this post


Link to post
Share on other sites
With a blu-ray burner instead of a dvd writer it should work...

Just kidding. The truth is, nobody could tell you yet. How about coding your game first, then do some testing and once you reach 100 concurrent players, revisit your hardware. I won't be surprised if your internet upstream capability will be the bottleneck. Edited by Ashaman73
0

Share this post


Link to post
Share on other sites
How would i go about setting up a server for that situation i guess is my problem / question. What are free resources i could use to host it on a server i have at my house?
0

Share this post


Link to post
Share on other sites
To be completely honest, C++ and SFML are both bad fits for what you are trying to accomplish.

SFML is not a browser friendly technology and this isn't an area where C++ is really targeted. I did do a tutorial on [url="http://www.gamefromscratch.com/post/2012/01/31/Network-programming-with-SFML-and-Nodejs-Part-1.aspx"]connecting an SFML C++ client to a NodeJS based server[/url] that might give you some insights in to simple network programming with C++. ( Very simple, it is a high score board ).

However, for single developer server side development, C++ is a lousy fit. It will take you 10-100x times longer than working in a higher level language like JavaScript, Python, Ruby, etc... More importantly, C++'s strengths dont really come in to play. You code isn't going to be bound by CPU, but instead the network.

As to the client. SFML doesn't and cannot run in the browser. Period. SDL can through native client, but that is Chrome only.

JavaScript is a much better fit in this capacity, but Flash and Unity are two other alternatives. Edited by Serapth
0

Share this post


Link to post
Share on other sites
Ok, so in order to make a multiplayer 2D online topdown RPG Javascript and python would be better?

I thought C++ was used to make tons of games now a days?
0

Share this post


Link to post
Share on other sites
The thing with "can my computer handle this", is it entirely depends on what you are doing. Descibe the end result doesn't describe how your server will actually work under the hood, and it's the under-the-hood that determines the cost.

As a rough guess, I would say, yes you could support a userbase of 100 easily with that (bearing in mind that only 10% or less of your userbase will actually be on at the same time, on average).

When a friend and I were running a small 2D top-down RPG a few years back, we had up to 20 people online at the same time without a problem, and this was six years ago, so worse technology. Sometimes he even ran the server off an old laptop, over WiFi. The laptop ran it fine, the WiFi choked it up. Sometimes he'd stream video while the server was running, and we'd lag like crazy.
The old laptop wasn't the problem, but the WiFi or video streaming was - the bandwidth of the server was more important than the hardware, for our little 2D game. But it fully depends how you make your game, not the feature list of the game, but the implementation details.

Can I poorly make a junky game that uses all of my computers resources? Yep.
Can Call of Duty: Modern Warfare 3 run on my computer just fine? Yep.

It's how it works under-the-hood that determines the needed server hardware, not the "feature list" but the implementation details. Make your game, without worrying about it, then refine and rework your game as needed only when you hit the limitations.

However, if this is your first game you are making, then you are probably overshooting yourself anyway, and the server hardware is the least concern. Adding the words "Basic" and "Small" doesn't mean "easy to create".
"[i]I'm going to create a BASIC car from scratch. Just a SMALL car that only drives around the block. I don't have any experience with engines, but it's just a SMALL/BASIC car, so I figure I can knock it out in a year or less.[/i]" - Making any kind of car is difficult. Making any kind of game is difficult.
[list]
[*]Basic Game = Sort-of difficult [b]<- You should be starting here[/b]
[*]Non-basic game = Difficult
[*]Turn-based RPG = More difficult
[*]Action-based RPG = Even more difficult
[*]Online game (only 10 people at once) = More difficult
[*]Online game with persistence = Super difficult
[*]Online RPG = Super duper difficult [b]<- You are aiming here[/b]
[/list]

[b]Aim high, [i]long-term[/i], but start small [i]short-term[/i].[/b]
Have you already made Pong or Tetris? ([size=2]I heard you groan just now - but you have to crawl before you can walk before you can run[/size])
2

Share this post


Link to post
Share on other sites
[quote name='RipIt' timestamp='1348766421' post='4984411']
Ok, so in order to make a multiplayer 2D online topdown RPG Javascript and python would be better?

I thought C++ was used to make tons of games now a days?
[/quote]
The right tool for the right job. C++ isn't the right tool for web-based games. Java or another language or tool is. Edited by Servant of the Lord
0

Share this post


Link to post
Share on other sites
This help's a lot. Yes i want to start with a "simple" and "basic" game. i guess it just seemed a bit too simple in my head and i like to push ahead for results of what i want (impatient) lol.

So with your post and the prior post about c++ and SFML, would c++ and sfml be the ideal language to use / continue learning for a BASIC GAME and then move to an online RPG (eventually)?

I haven't made tetris or pong yet, i am deployed right now and i cant download the SFML due to blocked sites / restrictions on downloads :/

I am just reading C++ for dummies and using the contained CD with code::blocks and various internet sites for help like this site and cplusplus.com

It's really just a learning phase and planning phase for things i would like to happen when i get back with making games like tetris and pong in between then and hopefully if time permits a tiny 2D basic game.
0

Share this post


Link to post
Share on other sites
[b]First:[/b] Thanks for being deployed. If you can't download things from certain sites (bandwidth limitation, or filter?), once you come to a definite conclusion, you could decide what downloads you want, and ask a family member to download them onto a cheap flashdrive (it'll all fit into a 4GB drive, $10) and mail the flashdrive to you, if this doesn't violate your base's security rules (ask your superiors!).

[b]Second:[/b] If your goal is a RPG that runs in a browser, but your first goal is learning how to program, you'd probably want a language that can help with both those goals.
C++ [i]cannot [/i]run in the browser. It [i]can[/i] be used for the server-side, but [i]not[/i] the client-side, [i]unless[/i] the client is on the user's PC (like Everquest) and not in a webpage (like Runescape).

[b]C++:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [b][color=#800000]can't[/color][/b] run a webpage client
[b]Python:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [color=#800000][b]can't[/b][/color] run a webpage client
[b]Java:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [color=#008000][b]can[/b][/color] run a webpage client
[b]Flash:[/b] [color=#800000][b]Can't[/b][/color] run the server, [color=#008000][b]can[/b][/color] sort-of run a downloadable client (with some work-arounds), [color=#008000][b]can[/b][/color] run a webpage client
[b]Javascript:[/b] [color=#800000][b]Can't[/b][/color] run the server, [color=#800000][b]can't[/b][/color] run a downloadable client, [color=#008000][b]can[/b][/color] run a webpage client

It's not unusual for the server to be coded in a different language than the client - but if you are a beginner starting out, this does add complications for you.
Perhaps others can offer additional suggestions, or correct any mistake I might've made in the above - My experience is primarily C++ with only a little Python and very little Javascript, so I might've gotten some details wrong.

[b]C++:[/b] Hard-ish to learn, but still definitely doable. More "closer to the metal", requiring more code to do less, and making for slower development time, but gaining faster speeds.
[b]Python:[/b] Easier to learn. Runs fast, but not as close to the metal which means faster development time (less code to do more).
[b]Java:[/b] My impression is that it is somewhere between C++ and Python in terms of difficulty and development time, [u][i]but I've never used Java, so this is speculation[/i][/u].

[b]Your game's goals:[/b][list]
[*]2D, online (100 person community, 25 or less on at once), RPG, in a webpage.
[/list]
[b]Your game's requirements:[/b][list]
[*]Client speed isn't an issue (it's 2D).
[*]Server speed isn't an issue (it's 25 or less people).
[*]Client needs to run in a webpage.
[/list]

Using the knowledge above, you choose the right tool for the right job, from multiple options available, while keeping in mind both your short-term (Learning programming through Pong or Tetris or another small game or two) and long-term (Small online RPG) goals.

If you are set on your game running within a webpage, it would seem to me, [i]as someone who never made webpage games[/i], that Java might be the best choice.
If you are willing to have your game run on the user's PC instead of in a webpage, I'd recommend [url="http://www.python.org/"]Python[/url], but C++ would also work (it'll just take longer).
0

Share this post


Link to post
Share on other sites
[b]Would C++ be a good language to make a text based RPG / online text based RPG in?[/b]

[b]I would like to stick with one language through the whole process and not differentiate if at all possible, like use c++ from a basic game, text based RPG to a 2D graphics based ONLINE RPG, but if i cannot do this with C++ easily / at all[/b]

[b]What language should i use for a text based rpg online game?[/b]
0

Share this post


Link to post
Share on other sites
[quote name='RipIt' timestamp='1348771784' post='4984449']
[b]Would C++ be a good language to make a text based RPG / online text based RPG in?[/b]

[b]I would like to stick with one language through the whole process and not differentiate if at all possible, like use c++ from a basic game, text based RPG to a 2D graphics based ONLINE RPG, but if i cannot do this with C++ easily / at all[/b]

[b]What language should i use for a text based rpg online game?[/b]
[/quote]
I'm assuming you posted this post before seeing my previous post.

Few notes about internet etiquet:[list]
[*]Bold, italic, or colored text is for emphasizing a few words in a sentence - [b]not[/b] for highlighting your entire post. It's considered rude and pushy.
[*]This is an internet forum, not a chat room, it takes time for people to respond - it's also considered impolite to bump your post after only a single hour. We're helping you make an informed decision, giving our time for free. Have patience! We don't get paid to sit here, we're doing other things at the same time.
[*]We provide you with information so you can make informed decisions. If we told you, "Use python", it removes the burden of a decision from you, and while easier for you, doesn't help you know [i]why[/i] python is a good choice. Remember, nothing is "better" or "best", just different and better suited to certain situations.
[/list]

(Note: I am not a moderator, and I'm not giving you orders or commands - these are just general "How to be a proper gentleman when online" rules that apply to the entire internet)

That said, use [url="http://www.python.org/"]python[/url]. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
(You just can't embed in in a website, as far as I know) Edited by Servant of the Lord
0

Share this post


Link to post
Share on other sites
I am thinking more like Runescape as i played this game since it first started to just recently. Except mine would obviously be much worse movement and graphics, even worse than when Runescape started, haha. Thank you so much for this information as it has helped me a lot.

So if i were to want to do the Runescape type game, i could use say Java for an online RPG text based as well as long term Runescape type game? So i could use C++ for the server side / game engine ? and Java as the actual game code ? i may be confused to this part still.
0

Share this post


Link to post
Share on other sites
Java could do the server, and the web-client. Minecraft uses Java, and Runescape uses Java.
[url="https://www.google.com/search?q=beginning+with+java&oq=beginning+with+java&sugexp=chrome,mod=15&sourceid=chrome&ie=UTF-8"]Java[/url] could do everything you want, if you decide to invest time to learn it.

Text-only output maybe won't work too well, I'm not experienced enough with Java to say, but I'm sure a 3rd party library could help with that, if there is no native support. Edited by Servant of the Lord
0

Share this post


Link to post
Share on other sites
[quote name='Servant of the Lord' timestamp='1348772222' post='4984453']
[quote name='RipIt' timestamp='1348771784' post='4984449']
[b]Would C++ be a good language to make a text based RPG / online text based RPG in?[/b]

[b]I would like to stick with one language through the whole process and not differentiate if at all possible, like use c++ from a basic game, text based RPG to a 2D graphics based ONLINE RPG, but if i cannot do this with C++ easily / at all[/b]

[b]What language should i use for a text based rpg online game?[/b]
[/quote]
I'm assuming you posted this post before seeing my previous post.

Few notes about internet etiquet:[list]
[*]Bold, italic, or colored text is for emphasizing a few words in a sentence - [b]not[/b] for highlighting your entire post. It's considered rude and pushy.
[*]This is an internet forum, not a chat room, it takes time for people to respond - it's also considered impolite to bump your post after only a single hour. We're helping you make an informed decision, giving our time for free. Have patience! We don't get paid to sit here, we're doing other things at the same time.
[*]We provide you with information so you can make informed decisions. If we told you, "Use python", it removes the burden of a decision from you, and while easier for you, doesn't help you know [i]why[/i] python is a good choice. Remember, nothing is "better" or "best", just different and better suited to certain situations.
[/list]

(Note: I am not a moderator, and I'm not giving you orders or commands - these are just general "How to be a proper gentleman when online" rules that apply to the entire internet)

That said, use [url="http://www.python.org/"]python[/url]. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
(You just can't embed in in a website, as far as I know)
[/quote]




I wasn't meaning to bold it, i was actually suprised by that myself, i didnt mean to or know i did.

I know, i am not trying to be pushy or even bump my thread i was just posting that comment in here since i had a thread going already instead of making a new thread, i was just curious that is all. Sorry if i came / come off as pushy or a jerk. not my intentions :/
0

Share this post


Link to post
Share on other sites
[quote name='Servant of the Lord' timestamp='1348771668' post='4984448']

[b]C++:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [b][color=#800000]can't[/color][/b] run a webpage client
[b]Python:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [color=#800000][b]can't[/b][/color] run a webpage client
[b]Java:[/b] [color=#008000][b]Can[/b][/color] run the server, [color=#008000][b]can[/b][/color] run a downloadable client, [color=#008000][b]can[/b][/color] run a webpage client
[b]Flash:[/b] [color=#800000][b]Can't[/b][/color] run the server, [color=#008000][b]can[/b][/color] sort-of run a downloadable client (with some work-arounds), [color=#008000][b]can[/b][/color] run a webpage client
[b]Javascript:[/b] [color=#800000][b]Can't[/b][/color] run the server, [color=#800000][b]can't[/b][/color] run a downloadable client, [color=#008000][b]can[/b][/color] run a webpage client[/quote]


A few small corrections here. C++ can actually be used in the webpage, either via Google Native Client ( aka, a recent version of Chrome ), or through [url="http://labs.adobe.com/technologies/alchemy/"]Alchemy[/url]. Of course, C++ isn't particularly a good choice for server side development, and Alchemy and NaCL both impose pretty heavy limitations.

Java can run on the server, native or in a webpage, but it depends on a Java plugin existing... this is a gigantic flaw though, as plugins are going the way to the dodo. Safari, Chrome and Internet Explorer all anounced they are dropping support for them in the future. This is already pretty evident on tablets, where Java in the browser is a non-starter. I surf with JVM support disabled, and encourage most others to do the same, so don't rely on the browser supporting Java.

Flash has the same limitations. Thanks to Steve Jobs war on Flash, expect it as a browser technology to be dead very soon. All ready you can't run Flash on millions of iDevices and Adobe dropped development for Flash for Android and BB10.

As to JavaScript, frankly, it is the best language in this scenario. JavaScript *CAN* run on the server, and with the rise of Node is becoming extremely popular. JavaScript runs on all browsers, with varying degrees of success, requires no plugins, and is frankly the future of web game development. All that said, it can be a right pain in the ass to develop for, and the browser DOM is a complete mess.
1

Share this post


Link to post
Share on other sites
So if the support for Java in browsers is going to "die" what will then happen to such things like runescape or games like?
0

Share this post


Link to post
Share on other sites
So pertaining to Text-based online RPG's i could use C++ for all of it, or i could use it for just the server side
-also i can use python for this as well?

Or i could use javascript for all my needs?

I feel like i may have missed something so im just trying to clarify

What would be the "best" language to create the following, if its this simple, im still a bit lost lol sorry.
Text-based RPG in a web browser:
Text-based MMORPG in a webbrowser:
2D top down RPG not in a web browser:
2D top down MMORPG:
2D topdown MMORPG in a web browser ( if possible ) :

Or:

Any other variation i may have missed which i was aiming for.

My short term goal would be to make a text based RPG either playable through web browser / download, while my long term would be 2D/3D RPG through how Runescape is, Browser based MMORPG.

Sorry i am just trying so hard to narrow down my topic / needs so i am not looking into the wrong language / direction for what i want. I am new to it and want to learn with long term goals in mind.
0

Share this post


Link to post
Share on other sites
[quote name='RipIt' timestamp='1348773429' post='4984462']
So if the support for Java in browsers is going to "die" what will then happen to such things like runescape or games like?
[/quote]

They will require you to use a legacy browser, or they will turn their product into an app. Or, they will port to HTML5. Probably the last item.
0

Share this post


Link to post
Share on other sites
What would that mean for graphics and game play / user accesibility? (the porting to HTML5 part)
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0