[C++]&OpenGL mmorpg ? my new game... the result of being bored.

Page 1 of 5 12345 LastLast
Results 1 to 15 of 66
  1. #1
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    [C++]&OpenGL mmorpg ? BlockRage Beta..?

    UPDATE - 2 AUGUST 2011:
    Finally i got some time to work on that game, open beta coming within 2-3 weeks! i need alot of testers nowdays
    My C++ MMORPG Gameplay - YouTube
    updates:
    My C++ MMORPG Gameplay 2.avi - YouTube

    Download updated version to test -> CLICK
    note- ACCOUNTS/Passwords: test1,test2... up to 7
    switch between user/pass- tab
    ex. acc:test1 pass:test1

    i started coding this... mmo game, since many many months. then i became addicted.

    notes - it is all written by me from the absolute 0, the only things i have used is the official documentations and opengl book/sockets books, no other source-codes involved. :)
    compilers used: Code Blocks & Eclipse
    The Client:
    Name: BlockRage
    Story: who wants to write it?
    Language: C++
    GFX lib : OpenGL 2.x (GFX) & Allegro44 (Loading Images & stuff)
    GFX: 2D but with 2.5d images and a bit of code :)
    fixed FPS : 60 - n (monitor refresh-rate)
    Network: non-blocking sockets / select()
    Threads: maximum 20, even with 1000 players walking in front of you, FPS will be >28, tested.
    Type: MMOG/MMORPG whatever it becomes.

    The Servers:
    1xConnect-Server : Threads-3, Up to 800 Players total.
    Network -> Asynchronous, using non-blocking sockets / select()
    Max memory usage: 5-50MB.

    up to 50x Game-Servers, up to 50 000 players total.
    Max planned memory usage: 5-100MB
    Network-> Asynchronous, using non-blocking sockets / select()
    Traffic usage-> optimized, low.
    Threads-> default 6, up to 20 , Max 1000 Players

    What you can do-> walk/run (key n), chat(enter), see other players in the server, see objects, build objects, delete objects.
    everything saves, alot more coming in a week.
    notes- if you see white space or have problems, update your GFX drivers (happens on Win7)
    Credits:
    Images-> this site & PSD tuts.
    the rest is my work
    old screenshotz attached.

    i'm serious about this. this is going commercial soon :).
    Attached Images Attached Images
    Last edited by penihop; 15-08-11 at 04:24 AM.


  2. #2
    iNewLegend , Leo123 zolamu is offline
    MemberRank
    Apr 2006 Join Date
    Холон, IsrLocation
    737Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    10/10 man i have entered the game and very good results the game is atmost optimized no words 10x good luck
    Last edited by zolamu; 15-10-10 at 08:53 AM.

  3. #3
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    tnx. where are all teh RZ ppl

  4. #4
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    the fuuuuuuck. this is hax to me :S
    i only wish I could c++ that well :\

  5. #5
    HAARP .Yoss. is offline
    MemberRank
    Dec 2006 Join Date
    localhost.localLocation
    784Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Cool beans

  6. #6
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Quote Originally Posted by EliteGM View Post
    the fuuuuuuck. this is hax to me :S
    i only wish I could c++ that well :\
    i can teach you some of my cpp, if u were a psd guy :|

    any other feedback? pl0x test the thing :) btw u can run 2 or 3 clients, wont take much resources :)

    am i the only one feeling alone in RZ these days ^^

    there are some problems with my ISP, you may be disconnected
    Last edited by penihop; 17-10-10 at 04:50 AM.

  7. #7
    Account Upgraded | Title Enabled! JewSanta is offline
    MemberRank
    Mar 2009 Join Date
    1,264Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Best of luck to ya Peni :D Ill test anything ya need.

  8. #8
    Watching from above Negata is offline
    LegendRank
    Apr 2004 Join Date
    FinlandLocation
    5,455Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    That looks very nice so far. How have you considered concurrency between several game servers? And how is your client and server (not?) affected by the number of connected users and objects in processing time? If you have this sorted out, very curious about how you've implemented it.

  9. #9
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Quote Originally Posted by Negata View Post
    That looks very nice so far. How have you considered concurrency between several game servers? And how is your client and server (not?) affected by the number of connected users and objects in processing time? If you have this sorted out, very curious about how you've implemented it.
    all done,

    since reading data from multiple threads is safe, but writing is not, problems may occur only when 2 threads attempt to alter data, or when 1 thread reads and another thread writes data... there may be 10 or more threads reading user data with pthread_rwlock read-lock (way faster than mutex, like critical section) but when write-lock attempts to write data, it will only alter data if the read-locks are released (but they release quite fast since i use reading-locks only when needed.)

    client uses critical section for each player, which is also fast because i don't expect player's location to be altered by the networking thread that fast (60+ or 75+ packets per second, thats crazy.) players location is being altered like 2 times in a second, and there is almost no chance that the networking or animation thread enters the same player section which drawing thread entered... and even if that happens it won't even cost me more than 1FPS of the drawing thread :)

    but there is something else, i don't enter critical section, draw the player and leave critical section, i enter critical section, set temporary player data and leave it.. so the chances of 2 threads entering 1 player CS are minimized.

    Mysql works well also, it has its own locks, and if you run the right query there is no chance to screw anything :)

    server and client network - non-blocking sockets - send/recv functions won't block until the data is send or received

    p.s client link updated, found some problems with monitors running over 75Hz, fixed. must get 75 or 100 FPS fine now.
    Last edited by penihop; 17-10-10 at 12:32 PM.

  10. #10
    Valued Member Sifex is offline
    MemberRank
    Jul 2010 Join Date
    AustraliaLocation
    139Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    I'm a Graphic and website designer, maybe I can help after I finish another project

    PM me if you need details/portfolio

  11. #11
    Ass > Tits Lapje is offline
    MemberRank
    Feb 2009 Join Date
    nullLocation
    1,879Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Wanted to test, but the site won't let me download it lol. Can you upload it somewhere else by any chance? =].

    Nope, i don't know graphics and am still a noob in C++. I won't be able to help you otherwise then testing ;].

  12. #12
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Quote Originally Posted by lapje View Post
    Wanted to test, but the site won't let me download it lol. Can you upload it somewhere else by any chance? =].

    Nope, i don't know graphics and am still a noob in C++. I won't be able to help you otherwise then testing ;].
    testing is more than coding, imagine i have to test it on hundreds of different PC's before releasing even beta :)

    Download otown.zip

  13. #13
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Tested it, really REALLY awesome work! Ran two clients and I could see the other :P

    I don't know if you have the time to explain but how, in C++ can you get data from/to a MySQL database?

  14. #14
    Apprentice NTGMut is offline
    MemberRank
    Oct 2010 Join Date
    13Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Can't PM you so I'll just post it here, how's your experience in source engine?

  15. #15
    Omega penihop is offline
    MemberRank
    Sep 2006 Join Date
    SpamzoneLocation
    5,569Posts

    Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.

    Quote Originally Posted by EliteGM View Post
    Tested it, really REALLY awesome work! Ran two clients and I could see the other :P

    I don't know if you have the time to explain but how, in C++ can you get data from/to a MySQL database?
    look at the screenshots, sure you can, i have the whole database ready
    how depends on your OS, you need the mysqlclient lib usually
    Last edited by penihop; 17-10-10 at 12:54 PM.



Page 1 of 5 12345 LastLast

Advertisement