4 Attachment(s)
[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:love:
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 :).
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
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
tnx. where are all teh RZ ppl
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 :\
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
EliteGM
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
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Best of luck to ya Peni :D Ill test anything ya need.
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.
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
Negata
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.
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
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 ;].
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
lapje
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
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?
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?
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
EliteGM
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