-
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
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Ok, this is how far I got for now:
For me, it peaked my CPU. I had a hard time selecting the nub world. After that I finally got a screen with a char. The character would move with a 20 second lag. --> all because my CPU was 100%. You could blame my laptop for that, but it runs MS and any other MMORPG I've played fine.
Dunno if there's a way to reduce CPU usage? Well, this seems pretty negative, but I just tell you what I encoutered. I'll try to play more and tell you about it =].
Don't get me wrong and see this as flaming, cause I'm not.
*Oh, and when walking out the map, the screen doesn't follow the char. Or maybe thats because of the peaking.
Btw, thanks for re-uploading it =].
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
lapje
Ok, this is how far I got for now:
For me, it peaked my CPU. I had a hard time selecting the nub world. After that I finally got a screen with a char. The character would move with a 20 second lag. --> all because my CPU was 100%. You could blame my laptop for that, but it runs MS and any other MMORPG I've played fine.
Dunno if there's a way to reduce CPU usage? Well, this seems pretty negative, but I just tell you what I encoutered. I'll try to play more and tell you about it =].
Don't get me wrong and see this as flaming, cause I'm not.
*Oh, and when walking out the map, the screen doesn't follow the char. Or maybe thats because of the peaking.
Btw, thanks for re-uploading it =].
nop, this actually helps , i'll need to know your laptop resolution,screen refresh-rate,OS, do you run on fullscreen, and what is the opengl version you've got?
that happens with some laptops, still no idea why but i guess its the complex combination of widescreen resolution&win7 :p
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
I run on a 5 year old (yes 5 year xD) Windows XP laptop. It amazes me how its able to keep up with everything. No intention of buying a new one for now.
Comp:
OS Windows XP Home Edition Service Pack 3
DirectX 9.0c
CPU Type Mobile Intel Celeron M 1466MHz (11x133)
Clockspeed 1466MHz
Motherboard NEC COMPUTERS INTERNATIONAL NEC Versa Premium
Chipset unknown
systememory 960 mb
BIOS Type Insyde (07/12/04)
Screen:
Video cart ATI Radeon XPRESS 200M Series 256mb (twice)
3D accelerator ATI Radeon XPRESS 200M(RC410M)
Quick specs. Tell me if you need more.
Originally ran on Fullscreen, couldnt select Nub world so switched to normal screen, if thats what you call it lol.
How to check OpenGL version?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
@lapje must work fine, just made a special version for you to test, pm'ed you the link, what is your resolution and refresh rate? download everest ultimate, see what are the OpenGL versions supported
p.s. looks like your Vsync doesnt work , 180FPS my god lol try enabling it somehow
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
really nice!
It actually looks more eye-appealing that RuneScape to me.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
What programs did you use to make the game?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
found few GFX guy's but need more :), just a test of login-screen YouTube - GameTest1.avi
Quote:
Originally Posted by
tays0c
What programs did you use to make the game?
its obvious but still - Code Blocks, Eclipse, a bit Photoshop, try them :typing:
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
very cool stuff dude, good luck with your game. :)
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
since you're working with C++, i suggest you to use my library, of course, if you want to :P... this is my reworked mu emulator tcp server engine, exactly what gameservers need, and I'll add support for clients too, soon!
take a look: Hps Framework
there's no releases yet, but you still can download the source code from repository
[]'s
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
wolfulus
since you're working with C++, i suggest you to use my library, of course, if you want to :P... this is my reworked mu emulator tcp server engine, exactly what gameservers need, and I'll add support for clients too, soon!
take a look:
Hps Framework
there's no releases yet, but you still can download the source code from repository
[]'s
your framework may be the best one out there, but why do you think i don't use additional libs/engine (:?, so i don't have to mess with licenses. + i have more trust in my own code/experience
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
penihop
your framework may be the best one out there, but why do you think i don't use additional libs/engine (:?, so i don't have to mess with licenses. + i have more trust in my own code/experience
I never said that you're not using... I've just said that since you're coding a game (which is not an easy thing to do), you can spend more time working on it instead of the network design (my framework will take care of the packet splitting thing, interface for decryption/encryption, and packet building, etc, etc...
I talk for my own experience... I never found any lib/framework for that type of things, so I just wanted you to know about its existence, and maybe start using it if you want :D:
about the license, it's BSD (very liberal one)
[]'s
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Very nice, I dream about making this kind of stuff.
I've learnt tonnes of C++ (so much so that Im not sure what else to learn C++ wise (well.. secure coding techniques I guess)) and have just started in OpenGL (I can make a simple textured landscape) but it's hard to believe I could ever make this.
Did you start out how I'm learning (am I doing the right thing?)?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Uau!So great congratulations!
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
Godzenemy
Very nice, I dream about making this kind of stuff.
I've learnt tonnes of C++ (so much so that Im not sure what else to learn C++ wise (well.. secure coding techniques I guess)) and have just started in OpenGL (I can make a simple textured landscape) but it's hard to believe I could ever make this.
Did you start out how I'm learning (am I doing the right thing?)?
yes, i did. but i can't do landscape, i don't need to. 1 advice - debug and test everything always.
OpenGL looks hard at first look, and you need to read everything about a function before using it, not just the bold lines :)
i knew almost nothing about OpenGL when i started this, its just that i get things too serious... like if someone is paying me $2000 monthly for doing it:)
after 2 months with OpenGL, i feel its as easy as "hello world"
new tests -
YouTube - Test 4
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Posted PM, should receive it now.
Congrats, but don't tell anyone.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
Sifex
Posted PM, should receive it now.
Congrats, but don't tell anyone.
Well thanks, i won't (:
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
You should start a SVN or Hosted download link for this. Be much better than having to re-upload it all the time.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
soon, i hope before december 31, not sure. GFX guys are slower than me :|
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
I'll do it if their too slow, by tonight if you're lucky.
Making a smoke bomb out of sodium acetate atm.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Doesn't look like an old thread to bump,
i need more 2D Artists/Pixel/Animation, if u feel u can do the job PM me.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
is this online or offline?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
SO.. :)
How's it going?
Any progress?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
progress, well its almost done, needs few more months
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Download updated version to test -> CLICK
please report any bugs or problems.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Just to mention from me downloading the link above. When I launched I got this Application has failed to start because alleg44.dll was not found.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
WizCoder
Just to mention from me downloading the link above. When I launched I got this Application has failed to start because alleg44.dll was not found.
sry, fixed redownload
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Awesome work, going to test it out when I get home
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
did some updates, if you want to test building you have to move more than TileYY 100 :)
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
I see you're using Allegro 4.4 :p
Not upgrading to 5.x.x?
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
EliteGM
I see you're using Allegro 4.4 :p
Not upgrading to 5.x.x?
answer:
http://i52.tinypic.com/66ktnd.png
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
updated, 8 more sprites now!
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
gotcha.
and may I ask, how did you manage the cycling through the sprites to make the walking animation?
EDIT:
Nvm, got it to work with clock_t and clock();
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
EliteGM
gotcha.
and may I ask, how did you manage the cycling through the sprites to make the walking animation?
EDIT:
Nvm, got it to work with clock_t and clock();
using opengl's depth
NEW-> 30 more objects added! soo many things to build now :))
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
penihop
using opengl's depth
NEW-> 30 more objects added! soo many things to build now :))
Went on the server and it looks nice. I know C++, but never got the chance to learn allegro. I tried to learn allegro 5 however, there are not many tutorials for it and it is far different from allegro 4.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
MoBaTeY
Went on the server and it looks nice. I know C++, but never got the chance to learn allegro. I tried to learn allegro 5 however, there are not many tutorials for it and it is far different from allegro 4.
why learn the whole thing? just learn and use what you need
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
penihop
why learn the whole thing? just learn and use what you need
Exactly! ^That's what I'm doing right now.
Allegro.cc has the full Allegro 5 documentation so you can just look something up when you need it.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
EliteGM
Exactly! ^That's what I'm doing right now.
Allegro.cc has the full Allegro 5 documentation so you can just look something up when you need it.
another thing is that i prefer the giftware :ott1:
Allegro - The giftware license -
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
I'm impressed, interface really looks good, you've done some great job out there.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
rebora2007
I'm impressed, interface really looks good, you've done some great job out there.
10x hiro nakamura :D:
interface is nothing ATM, really messed :)
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
bumps.. i know some things are not done like cancel buildings - beware some take too much time to build :)
and removing timers not added yet, but do not worry!
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
I played it for a lil bit (not too long tbh, kinda busy ><).
I liked it! I suppose we were supposed to walk around a bit and build some stuff, cause thats what I did lols. Oh, I couldn't build in certain areas, while I could in others. Was that in purpose?
GL on further development!
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
Lapje
I played it for a lil bit (not too long tbh, kinda busy ><).
I liked it! I suppose we were supposed to walk around a bit and build some stuff, cause thats what I did lols. Oh, I couldn't build in certain areas, while I could in others. Was that in purpose?
GL on further development!
yeah well u cant build in the admin area and u must get used to objects locations
- need lots of testers!
updated version! now u can use the ESC key to cancel buildings and a few other things :)
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Peni, when I get home tonight I should be able to test shit with you finally :D
I just need to get home xD
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Seriously? The dude just walked through a window O.O
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
Quote:
Originally Posted by
Military
Seriously? The dude just walked through a window O.O
wut?
btw i just updated the client lol!, experience and levels are working now.
-
Re: [C++]&OpenGL mmorpg ? my new game... the result of being bored.
arggggghhh need testers hhhh