Thread: C++ Rpg

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    9

    Talking 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?

    Thanks for your time

  2. #2
    Spaced Cadet
    Join Date
    Aug 2003
    Posts
    110
    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.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Mecha,

    I'd strongly recommend you work your way up to an MMORPG. An MMORPG is probably one of the most difficult things to code -- there is a reason people start with tic-tac-toe and pac-man.

    The fact you can't compile *a* program really means you're a long way. You can get there, of course, with hard work and effort, but something like this doesn't get programmed overnight.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  4. #4
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    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
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  5. #5
    Registered User actionbasti's Avatar
    Join Date
    Dec 2002
    Posts
    48
    what does The MMO in MMORPG stand for anyway ????

    yeah

  6. #6
    Registered User
    Join Date
    May 2003
    Posts
    161
    MMO = Massively Multiplayer Online

  7. #7
    Registered User actionbasti's Avatar
    Join Date
    Dec 2002
    Posts
    48
    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!

  8. #8
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    have you ever tried that?

    hint: it won't work
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  9. #9
    Registered User
    Join Date
    Oct 2003
    Posts
    9
    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).
    Last edited by Mecha; 10-30-2003 at 10:07 PM.

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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.

  11. #11
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    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.
    Last edited by Cat; 10-30-2003 at 11:27 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem
    By ExDHaos in forum C++ Programming
    Replies: 12
    Last Post: 05-22-2009, 04:50 AM
  2. (dev) C++ Ascii Rpg
    By kevinawad in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 08-10-2008, 11:10 AM
  3. Beta Arena Extreme RPG
    By Padawan in forum Game Programming
    Replies: 1
    Last Post: 08-11-2004, 08:58 AM
  4. Strange complier error in simple RPG
    By Marcos in forum Game Programming
    Replies: 4
    Last Post: 03-27-2003, 06:57 AM
  5. Char Variable Probelm
    By Krak in forum C++ Programming
    Replies: 1
    Last Post: 01-26-2003, 12:34 PM