C++ Rpg

This is a discussion on C++ Rpg within the C++ Programming forums, part of the General Programming Boards category; OK, I learned C++ 4 days ago. I am planning on making a MMORPG, but I don't know how to ...

C++ Rpg

OK, I learned C++ 4 days ago. I am planning on making a MMORPG, but I don't know how to do a few things.

First of all, how do you get the program to run in MSDOS as I see all of yours doing? I have MSVC++ and DEVCC++, but when I try and "run" the programs it never works...Any help on this would be greatly appreciated.

Second, how do you incorperate premade graphics into your program? I can make my own 3D models, but I don't know how to inlude them into the code

Lastly, does anyone know a site where I could learn how to program the Multiplayer feature, or a program that already does it for you?

Belongs in game forum, games might be a bit too advanced for a beginner, specifically a non-text one.
1. code?
2. Uses DirectX/Open-GL, killing use of ms-dos promt
3. I don't, there should be functions for that in DX or GL.

I agree with Cat, if you really want to make games it will be a long while...If you were to look at the code for even a pac-man game in DirectX right now you would never believe that you could ever understand it. Also, don't forget to concentrate on your math skills in the meantime--they will come in handy when you get to game programming...for now, if you really want to make a game, start with a simple text-rpg and work your way though the basics

ok that is true, with 4 days experiance this seems very unlikely!!!! then programmers would not make a penny! however like its been told before, true Desire and Passion will make mountains move and code evolve!

Sorry about posting in the wrong spot >.<, and thanks for all of your help

As for programming skills work, I will be fine. I already went through all the tutorials here and fully understand them. This is easy for me as I already know Basic, HTML, SQL, and PHP, and computer programming seems easy to me.

When it comes down to math, I know all that I should need to know for computer programming. (At least I think, I'm not really sure what else I would need)

I already wrote the basic elements of the game such as leveling up, the combat system, the ranking up system. The ability to add points to specific stats, and the formulas needed to calculate all of this.

I just need to know how to incorporate graphics I make in my 3d Map,world, and model editors, and how to create the multiplayer part. I do not have anyone besides people to teach me any of this, as my high school does not offer ANY computer programming classes.

Can some one please tell me where I can run my program? I have tried to run it from MSVC++ and DevC++, but nothing happens. There are no errors in it, or at least that is what the computer said. I just want to see for myself that it all works...and have something to show from all my hard work. Maybe I need to download a new program of some sort?

Should I take this to the games forum, or continue this here (I do not want to spam this place up).

It's not hard to code the multiplayer part using DirectX, but it is hard getting all of it to sync correctly and not lag. Most of the finesse of multiplayer is not coding the lobbies or game portion but in getting 2 computers in 2 different locations to communicate at nearly the same speed or instant in time.

If you code a generic class for the RPG then it will not be hard to place a pointer in the class for the multiplayer portion. As well only a small amount of data really needs to be streamed from system to system and then let the engine that resides on the local machine make something out of the data.

For instance I don't recommend sending 3D models over the net because it's way to laggy. If you play most multiplayer games there are pre-set models - even in games where you can add on most of the time both local machines must have a copy of the model to display it correctly.

Some important things you need to stream are the finite character states - stored within your class members, and global projectile information and any other object info that other players can be affected by. There are millions of approaches and if you get the right one in 4 days you need to go work for EA or something.

Basically get your base engine working correctly - the rest is simply being able to view other players and what they are doing - which only requires small amounts of data.

Originally posted by Mecha
As for programming skills work, I will be fine. I already went through all the tutorials here and fully understand them. This is easy for me as I already know Basic, HTML, SQL, and PHP, and computer programming seems easy to me.

Computer programming IS easy for me, but this kind of project would take years of my time to do. And I have 12 years of C++ experience.

Trust me, don't start with an MMORPG. Work towards it, yes, but program lots of simpler games first, and build your skills. OOP design will be absolutely essential to your programming, and I think you will need to know a lot about the STL.

Do also be aware the tutorials on this site are both very elementary and also outdated; they were written before the current C++ revision and nobody updated them, so you probably want newer tutorials.

You should also invest in a book about the STL; its importance cannot be overemphasized. And tutorials can't truly give the depth of an 800 page book.