Jump to content


Photo

Online Engine V2


  • Please log in to reply
864 replies to this topic

#1 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 17 December 2006 - 10:58 PM

Information:
This is my online engine. It includes the engine, a Kirby Online (platformer) example from myself and a Racer Online (racing game) example from Marbs.

Please read the READ ME.txt file when you download this before doing anything else.

If you want to host a game online so that other people can connect to you, you have to forward the ports used by the server. Check the Create event of obj_server in the server file for the ports.

Online Engine V2:

This is the second version of my online engine. The new features are:

Account System
Server chat commands (See Below)
The engine now works with the newest version of 39DLL.

Server chat commands:

/help - Shows a list of all the commands and what they do
/players - Shows a list of all the currently connected players with their usernames and IDs
/kick playerid - Kicks the player with the same playerid
/ban playerid - Bans the player with the same playerid
/unban username - Unbans the account with the same username

Please note that the examples (Racer Online and Kirby Online) have not been updated to work with the newest version of the engine.

If you have any ideas, suggestions and/or comments, I'll be glad to hear them.

You should change the Game ID of your online game to something that's different from the original. To change it go to Global Game Settings -> Loading. If you do change it, make sure both your server and client have the same one. If you want to change the ports the server uses, go to Portforward.com to get help with forwarding different ports.

Also, if you're wondering, this uses 39DLL.

Game that have been created with/ created with help from the engine:

Racer Online - Created by marbs

Userbar:

If you use/support this engine, please put this in your signature, it's 350 x 19 pixels:

Posted Image

[URL=http://forums.gamemaker.nl/index.php?showtopic=263183]
[IMG]http://i37.photobucket.com/albums/e52/LiamStrawbridge/f1e6ad37.png[/IMG][/URL]

Remove the new line from the code above. The whole code must be on one line, I couldn't type it here because it stretches the page.

If you like this engine, please register at Prixel to support it.

Posted Image

Thanks,
-0NL1N3-

Edited by -0NL1N3-, 04 May 2007 - 09:43 AM.

  • 2

#2 aeron

aeron

    GMC Member

  • New Member
  • 18 posts

Posted 17 December 2006 - 11:06 PM

As I said before, very nice, and easy to implement into your game!

Remember, though, this still takes a little knowledge of online communications, so make sure you know what you're doing before you plan that MMORPG you've always wanted to make.
  • 0

#3 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 17 December 2006 - 11:10 PM

As I said before, very nice, and easy to implement into your game!

Remember, though, this still takes a little knowledge of online communications, so make sure you know what you're doing before you plan that MMORPG you've always wanted to make.

<{POST_SNAPBACK}>


Thanks aeron.

Note to everyone: If you post stupid things in this topic like "There's no one on! ZOMG MAKERZ COMPUTERZ!" then you will be completely ignored by me.

Thanks,
-0NL1N3-
  • 0

#4 marbs

marbs

    GMC Member

  • New Member
  • 481 posts

Posted 17 December 2006 - 11:13 PM

Once again, this is fantastic, and I'm making an awesome game with it :)

And yes, I agree with aeron. Don't expect to just be able to whack this into a MMORPG or whatever huge project you are thinking of making in a matter of minutes. This provides the engine, the basis from which you can expand.

~marbs

Edited by marbs, 17 December 2006 - 11:16 PM.

  • 0

#5 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 17 December 2006 - 11:16 PM

Once again, this is fantastic, and I'm making an awesome game with it :)

And yes, I agree with aeron. Don't expect to just be able to whack this into a MMORPG or whatever huge project you are thinking of making in a matter of minutes. This provides the engine, the basis from which you can expand.

~marbs

<{POST_SNAPBACK}>


Thanks, I'm happy to hear that at least one person is using my engine. Have you got any ideas or suggestions for the engine?

Thanks,
-0NL1N3-

Edited by -0NL1N3-, 17 December 2006 - 11:17 PM.

  • 0

#6 not_patrick

not_patrick

    GMC Member

  • New Member
  • 201 posts

Posted 18 December 2006 - 12:54 AM

great engine, very easy to use.
  • 0

#7 Hay44444

Hay44444

    GMC Member

  • New Member
  • 181 posts

Posted 18 December 2006 - 03:37 AM

Seriously this is the BEST online game engine I have ever seen. Great Work!!!
Can't wait to see what else you do with this.
=)
very nicely done, very clean and easy to understand
10/10
  • 0

#8 Omega_Squid

Omega_Squid

    Robo-Squid Overlord

  • New Member
  • 142 posts
  • Version:GM6

Posted 18 December 2006 - 04:38 AM

This is a very nice example, as you know I stated in the previous submission.
It is a very good way to look at how you could make a platformer or other adventure game with multiple players, not to mention having a comprehensive server and built in chat system.

Overall - 10/10
It does what it was made to do!

I also encourage all who download the engine to use it to help you learn online functions, not to make your own games using the exact same engine! The last thing we need is more engine spawns...

EDIT: I see that my fellow 64Ders have already stated what I said about the engine's use. I know for a fact that marbs can and will make a great game with it! :)

-Omega_Squid

Edited by Omega_Squid, 18 December 2006 - 04:40 AM.

  • 0
oss-88x31.png
Omega Squid Studios - The Future is Squid!
64 DGame Jolt

#9 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 18 December 2006 - 09:18 AM

great engine, very easy to use.

<{POST_SNAPBACK}>


Thanks

Seriously this is the BEST online game engine I have ever seen. Great Work!!!
Can't wait to see what else you do with this.
=)
very nicely done, very clean and easy to understand
10/10

<{POST_SNAPBACK}>


Thanks a lot. I'm glad you like it.

This is a very nice example, as you know I stated in the previous submission.
It is a very good way to look at how you could make a platformer or other adventure game with multiple players, not to mention having a comprehensive server and built in chat system.

Overall - 10/10
It does what it was made to do!

I also encourage all who download the engine to use it to help you learn online functions, not to make your own games using the exact same engine! The last thing we need is more engine spawns...

EDIT: I see that my fellow 64Ders have already stated what I said about the engine's use. I know for a fact that marbs can and will make a great game with it!  :GM109: 

-Omega_Squid

<{POST_SNAPBACK}>


Thanks Omega_Squid :GM107: You can use this engine to make your own games with, but most people prefer to learn from it.

Thanks,
-0NL1N3-
  • 0

#10 naha4595

naha4595

    GMC Member

  • New Member
  • 29 posts

Posted 18 December 2006 - 10:25 AM

Wow! This is great! I was baffled by 39.dll before but this might help my rpg become an mmorpg! I might use this...

Edited by naha4595, 18 December 2006 - 12:32 PM.

  • 0

#11 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 18 December 2006 - 09:22 PM

Wow! This is great! I was baffled by 39.dll before but this might help my rpg become an mmorpg! I might use this...

<{POST_SNAPBACK}>


Feel free to use the engine, but please give credit if you do. :GM109:

Thanks,
-0NL1N3-
  • 0

#12 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2750 posts
  • Version:GM:Studio

Posted 19 December 2006 - 03:05 AM

hey there, this seems to be really nice..unfortunately I get a FPS of 14 o,o
Everything GM releated runs in full-speed normally...is the ping connected to the FPS maybe?
  • 0

iBNKRoX.png


#13 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 19 December 2006 - 09:26 AM

hey there, this seems to be really nice..unfortunately I get a FPS of 14 o,o
Everything GM releated runs in full-speed normally...is the ping connected to the FPS maybe?

<{POST_SNAPBACK}>


No, they are both separate. Maybe it's because you're running the server and client? I know that you have to do that, but running the 2 at the same time might slow down your PC. I'm pretty sure that the 14 FPS has nothing to do with the engine.

Thanks,
-0NL1N3-
  • 0

#14 marbs

marbs

    GMC Member

  • New Member
  • 481 posts

Posted 19 December 2006 - 11:35 AM

Obviously, running the server and client will slow it down a little, but it shouldn't be to the extent that it goes down to 14. The only time I've had the fps go below 60 is when I ran more than 1 clients on the same computer.

~marbs
  • 0

#15 Obiki_San

Obiki_San

    GMC Member

  • New Member
  • 136 posts

Posted 19 December 2006 - 02:14 PM

I haven't tried it yet, but giving the ratings on the previous posts it sounds like a really good engine. I never tried to make an online game yet so this seems like a good head start for me.

Thanks for your work and much credit for you if I ever decide to use it.

Upon saying that... *downloads* :GM107:

EDIT:
Yup, I think this work very nicely. I have a plan :GM109:

Edited by Obiki_San, 19 December 2006 - 02:32 PM.

  • 0

#16 SirMixAlot

SirMixAlot

    Punkster

  • New Member
  • 216 posts

Posted 19 December 2006 - 03:06 PM

Some people might have it run at low FPS because the default room speeds in the games provided are all set to 60 FPS. Some computers can't do this and start to lag. Just bring the room speeds down to 30 FPS and you should be fine.
  • 0
Keep up to date with Poppenkast. Visit their forum.

Keep up to date on my games. Visit my forum.

#17 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 19 December 2006 - 09:07 PM

Some people might have it run at low FPS because the default room speeds in the games provided are all set to 60 FPS. Some computers can't do this and start to lag. Just bring the room speeds down to 30 FPS and you should be fine.

<{POST_SNAPBACK}>


I always thought they were 30. Hmm...thanks for clearing that up though.

Thanks,
-0NL1N3-
  • 0

#18 neo8xp

neo8xp

    GMC Member

  • New Member
  • 590 posts

Posted 19 December 2006 - 09:46 PM

Very nice
Actually helped with a small issue ^^
7.5/10
  • 0

#19 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 19 December 2006 - 09:47 PM

Very nice
Actually helped with a small issue ^^
7.5/10

<{POST_SNAPBACK}>


Thanks. I see you gave it a 7.5/10, any ideas on how I could improve this to get a 10?

Thanks,
-0NL1N3-
  • 0

#20 Tofp

Tofp

    GMC Member

  • New Member
  • 312 posts

Posted 19 December 2006 - 09:49 PM

can you make example without server. just a create - join game.
means server also can play game.
  • 0

#21 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 19 December 2006 - 09:51 PM

can you make example without server. just a create - join game.
means server also can play game.

<{POST_SNAPBACK}>


Hmm...I might make one within the next few days. What did you think of the engine?

Thanks,
-0NL1N3-
  • 0

#22 Tofp

Tofp

    GMC Member

  • New Member
  • 312 posts

Posted 19 December 2006 - 09:53 PM

this cool. i didn't play on the internet but on LAN works normal.
______________________________________________
also be greate if you add server list...

Edited by Tofp, 19 December 2006 - 09:54 PM.

  • 0

#23 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 19 December 2006 - 09:59 PM

this cool. i didn't play on the internet but on LAN works normal.
______________________________________________
also be greate if you add server list...

<{POST_SNAPBACK}>


Yeah, when I start making the MySQL user account system I'll probably add that in.

Thanks,
-0NL1N3-
  • 0

#24 Juju

Juju

    GMC Member

  • GMC Member
  • 1109 posts
  • Version:Unknown

Posted 19 December 2006 - 11:34 PM

Awesome awesome awesome.
Truly perfection.
  • 0

Come find me @jujuadams

 

Try out my open-source 3D globe terrain generator!

How about a fancy-pants text engine?

Adding dialogue boxes to your games is now super easy. Also localisation. Also tweening.


#25 Hay44444

Hay44444

    GMC Member

  • New Member
  • 181 posts

Posted 20 December 2006 - 06:55 AM

Ya, the only thing it is lacking is.

1. Login
2. Registration (it would be wicked cool to figure out some way to save the acounts to the server file. So that a person could play their account from any server)
just a though, =P

So ya..
That is all I can think of to improve your already awsome engine.
Like I said before, great work.
  • 0

#26 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 20 December 2006 - 05:39 PM

Awesome awesome awesome.
Truly perfection.

<{POST_SNAPBACK}>


Thanks.

Ya, the only thing it is lacking is.

1. Login
2. Registration (it would be wicked cool to figure out some way to save the acounts to the server file. So that a person could play their account from any server)
just a though, =P

So ya..
That is all I can think of to improve your already awsome engine.
Like I said before, great work.

<{POST_SNAPBACK}>


I'm going to make a MySQL user account system so that you can manage all your users in an online database.

Thanks,
-0NL1N3-
  • 0

#27 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 21 December 2006 - 05:02 AM

its a great engine, i'm using it too learn from, i had no clue with 39dll but now i know quite a bit :P. thankyou very much.

just curious are you going to release an updated version, when 39ster releases his next update for 39dll?
  • 0

#28 gbdas

gbdas

    GMC Member

  • New Member
  • 5 posts

Posted 21 December 2006 - 08:52 AM

Really nice

im a noob at online games so i have a problem

i want to create a bullet can i just duplicate the player object and change the events?
  • 0

#29 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 21 December 2006 - 11:29 AM

its a great engine, i'm using it too learn from, i had no clue with 39dll but now i know quite a bit :P. thankyou very much.

just curious are you going to release an updated version, when 39ster releases his next update for 39dll?

<{POST_SNAPBACK}>


Yes, I will most likely have to.

Really nice

im a noob at online games so i have a problem

i want to create a bullet can i just duplicate the player object and change the events?

<{POST_SNAPBACK}>


Well, no. The player is updated every step but a bullet is only created when you shoot. So, you could duplicate the object but you would have make it send messages for when it's created and destroyed.

Thanks,
-0NL1N3-
  • 0

#30 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 21 December 2006 - 11:31 AM

Why do you have too?
  • 0

#31 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 21 December 2006 - 11:34 AM

Why do you have too?

<{POST_SNAPBACK}>


Well, it depends on what 39ster does. There are things that he is updating/changing that I use in the engine, so I might have to update it.

Thanks,
-0NL1N3-
  • 0

#32 Consoft

Consoft

    GMC Member

  • GMC Member
  • 449 posts

Posted 21 December 2006 - 12:56 PM

Absolutely beautiful engine, I will have fun toying around with this.

Suggestions? Hmm...
Well, with the MySQL thing you're doing you could do stats aswell as the other stuff you're doing...even where your X/Y co-ords are.

As for the current engine, no more is needed...except maybe shooting, but im sure a bit of playing around will solve that for me.

Great engine, i got 40 fps with a server and 5 clients running :P
  • 0
19 / Australia. [GML/Java/C++] Known as kkg, HeXeN and elimzke as well.
Make games in GML, compile them in C++! http://www.enigma-dev.org [Windows/Linux/Mac]

KUICS Australia PTY LTD

#33 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 21 December 2006 - 12:59 PM

Absolutely beautiful engine, I will have fun toying around with this.

Suggestions? Hmm...
Well, with the MySQL thing you're doing you could do stats aswell as the other stuff you're doing...even where your X/Y co-ords are.

As for the current engine, no more is needed...except maybe shooting, but im sure a bit of playing around will solve that for me.

Great engine, i got 40 fps with a server and 5 clients running :P

<{POST_SNAPBACK}>


Thanks Consoft. I've started working on the MySQL user account system. So far the system will store your username, password and level (Admin, mod etc.). I can then add other things to it later like money, points stats etc. I don't think it will need to save your x,y co-ordinates though.

Thanks,
-0NL1N3-
  • 0

#34 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 21 December 2006 - 01:01 PM

Saving the X, Y co-ordinates could be very good though, mainly for games like the one I'm developing.
Think of mmorpg's, the server saves your last position in the world.

But yeah I'm just saying that's what it could be used for, even though I'm using simple (but encrypted) text documents to save stuff like that.

Edited by ben_dover, 21 December 2006 - 01:02 PM.

  • 0

#35 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 21 December 2006 - 01:02 PM

Saving the X, Y co-ordinates could be very good though, mainly for games like the one I'm developing.

Think of mmorpg's, the server saves your last position in the world.

<{POST_SNAPBACK}>


Well, like I said, I can add whatever I like to the system later. So if you want it you can have it.

Thanks,
-0NL1N3-
  • 0

#36 Consoft

Consoft

    GMC Member

  • GMC Member
  • 449 posts

Posted 21 December 2006 - 01:03 PM

saving your X/Y would only be good for MMO's.
  • 0
19 / Australia. [GML/Java/C++] Known as kkg, HeXeN and elimzke as well.
Make games in GML, compile them in C++! http://www.enigma-dev.org [Windows/Linux/Mac]

KUICS Australia PTY LTD

#37 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 21 December 2006 - 04:00 PM

saving your X/Y would only be good for MMO's.

<{POST_SNAPBACK}>


Yeah, if you had that in a TDS, you could end up in the middle of the battlefield as soon as you log on.

Anyways, the MySQL User account system is coming along well. So far you can register and view all the accounts that have been made.

Thanks,
-0NL1N3-
  • 0

#38 Knightmare

Knightmare

    OMGLOLWTFZORZ!1!1!!11

  • New Member
  • 867 posts
  • Version:Unknown

Posted 22 December 2006 - 05:19 AM

Can you work on an example to do whisper, or something along those lines.

Also, I can't see another player in-game. Only see the chat. 0.o
  • 0


#39 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 22 December 2006 - 04:18 PM

Can you work on an example to do whisper, or something along those lines.

Also, I can't see another player in-game. Only see the chat. 0.o

<{POST_SNAPBACK}>


Yes I'll make an example soon. You can't see other people because you're running the bare engine that only has chat.

Thanks,
-0NL1N3-
  • 0

#40 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 22 December 2006 - 04:37 PM

Speaking of whisper type commands, some functionality you could add in your next 1.. which i'm not sure if you are. is admin powers (kick,etc). I tried to make a kick feature but it didn't work.
  • 0

#41 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 22 December 2006 - 04:44 PM

Speaking of whisper type commands, some functionality you could add in your next 1.. which i'm not sure if you are. is admin powers (kick,etc). I tried to make a kick feature but it didn't work.

<{POST_SNAPBACK}>


Yes, I'll add them. Don't worry. Anything else that you would like to see in the new version?

Thanks,
-0NL1N3-
  • 0

#42 Hay44444

Hay44444

    GMC Member

  • New Member
  • 181 posts

Posted 23 December 2006 - 12:42 AM

Umm, Just what I stated earlier and, ummm
oh ya!!!

A mini map (radar) would be awsome!!!!
  • 0

#43 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 23 December 2006 - 12:45 AM

Umm, Just what I stated earlier and, ummm
oh ya!!!

A mini map (radar) would be awsome!!!!

<{POST_SNAPBACK}>


Well, that's really for you people to add. I'm just providing the engine. I will add text functions though like /kick etc.

Thanks,
-0NL1N3-
  • 0

#44 Hay44444

Hay44444

    GMC Member

  • New Member
  • 181 posts

Posted 23 December 2006 - 12:47 AM

Ok, =)
just making a suggestion,
  • 0

#45 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 23 December 2006 - 03:25 AM

Well, that's really for you people to add. I'm just providing the engine. I will add text functions though like /kick etc.

Thanks,
-0NL1N3-

<{POST_SNAPBACK}>


That'd be excellent, your a legend online. thanks champ.
  • 0

#46 not_patrick

not_patrick

    GMC Member

  • New Member
  • 201 posts

Posted 23 December 2006 - 03:30 AM

you dont really need minimap since that is a client side thing, but i would like to see server side monsters and maybe even items.
  • 0

#47 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 23 December 2006 - 04:20 AM

hey online, would you mind if i PMed you a message relating to your engine (it's a problem im having)?
  • 0

#48 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 23 December 2006 - 12:11 PM

Well, that's really for you people to add. I'm just providing the engine. I will add text functions though like /kick etc.

Thanks,
-0NL1N3-

<{POST_SNAPBACK}>


That'd be excellent, your a legend online. thanks champ.

<{POST_SNAPBACK}>


Thanks a lot Ben. :(


you dont really need minimap since that is a client side thing, but i would like to see server side monsters and maybe even items.

<{POST_SNAPBACK}>


I'll add server side monsters but what do you want items for?

hey online, would you mind if i PMed you a message relating to your engine (it's a problem im having)?

<{POST_SNAPBACK}>


Sure, PM me. Or if you have MSN, add me (check my profile).

Thanks,
-0NL1N3-
  • 0

#49 naha4595

naha4595

    GMC Member

  • New Member
  • 29 posts

Posted 23 December 2006 - 12:17 PM

So...
When will your mysql user system be out? I really need it right now.
  • 0

#50 -0NL1N3-

-0NL1N3-

    Network Programmer

  • New Member
  • 650 posts

Posted 23 December 2006 - 12:18 PM

So...
When will your mysql user system be out? I really need it right now.

<{POST_SNAPBACK}>


Well, I've been making progress but it's still going to take a while. I'll try to make more progress today.

Thanks,
-0NL1N3-
  • 0