Jump to content


Photo

Multiplayer tutorial - "from A to Z"


  • Please log in to reply
6 replies to this topic

#1 MiniMe

MiniMe

    GMC Member

  • New Member
  • 5 posts
  • Version:GM:HTML5

Posted 04 November 2011 - 10:10 PM

Hi all!

First thing: pardon my English :rolleyes: (Hello from Italy!), then let's start immediately with the "serious stuff";

I bought GM-Html5 few days ago and i'll start studyin' it in these days only (so I'm a BIG noob :-) )... I read that starting with this version is quite rough, but having a "quite hardcore-programming-background" (my passion began in the Commodore 64 days) I love this kinda "problem" :biggrin:

Anyway ...

Perhaps I didn't look in the right spots, but I was lookin' for a step-by-step multiplayer structure tutorial, in which you are told, for example, how to setup a db-connection, how to setup a registration/login form, how to track players basic-stats, how to encrypt/obfuscate the client-server data, and so on...

I mean, I found SINGLE EXAMPLES (how to create an extension, how to implement ajax/mysql,the apples case and many other interesting things), but (just my humble opinion) I think they are quite "fragmented" and hard to understand, for a novice (especially "WHERE to put that code and why") (logical flaws); you could tell me "You say that 'cause you are a noob", but I'd like to underline that sometimes, a "simple,step-by-step-from-a-to-z-fool-proof" tutorial, could be a great added value, philosophically speaking.


I hope not to be misunderstood; you all are doing great things!

Thank you all in advance!

Edited by MiniMe, 04 November 2011 - 11:18 PM.

  • 0

#2 theg721

theg721

    G Dawg

  • GMC Member
  • 1959 posts
  • Version:GM8

Posted 04 November 2011 - 10:48 PM

Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D
  • 0

#3 MiniMe

MiniMe

    GMC Member

  • New Member
  • 5 posts
  • Version:GM:HTML5

Posted 04 November 2011 - 10:55 PM

Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D


Thanx a lot m8! Perhaps I downloaded some of those examples on this forum days ago: many infos (and tuts) are written for GM8 and my intention was to focus more on html5 (db/mysql/php/security): I hope that "substitue the DLL functions for .js ones" will be easy, but I'm a little worried about it! :laugh:

Thank you again anyway, reading the whole thing on the site will help for sure !

Edited by MiniMe, 04 November 2011 - 11:24 PM.

  • 0

#4 theg721

theg721

    G Dawg

  • GMC Member
  • 1959 posts
  • Version:GM8

Posted 05 November 2011 - 02:16 PM


Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D


Thanx a lot m8! Perhaps I downloaded some of those examples on this forum days ago: many infos (and tuts) are written for GM8 and my intention was to focus more on html5 (db/mysql/php/security): I hope that "substitue the DLL functions for .js ones" will be easy, but I'm a little worried about it! :laugh:

Thank you again anyway, reading the whole thing on the site will help for sure !


No problem ;)

It should be easy to substitute the DLL codes, whilst I don't own GMH5 myself I'll try my best to explain:

1) Download 39js
2) Right click on the Extensions tree and select Create Extension, as seen here (note: you don't have to fill in all the info)
3) Right click the newly created extension, select Add File and locate the Javascript (.js) file when prompted
4) A second box will appear, leave Init Function and Final Function blank
5) After the .js file has been added, right click it and select Add Function
6) Fill in the properties when prompted; the function name should be the same as the name of the corresponding function in the .js file (the 39js topic should say something about this) ("Help" is the help string shown in the code editor when typing the function. "Key" means the argument number. Type string in the value box, for the first key (argument0); see this image)
7) Rinse and repeat to add all functions
8) Now, instead of calling the 39DLL scripts, call one of the .js extension functions

Credit to Jackson Yarr for images and info

39js should come with a .gmx with the extension preconfigured, but in the event it doesn't steps 5-7 should be carried out to do the job manually.

Good luck :D

Oh, and the site says about .ini files. Instead find a mySQL extension, or make one yourself. this extension should do the trick though :D
  • 1

#5 MiniMe

MiniMe

    GMC Member

  • New Member
  • 5 posts
  • Version:GM:HTML5

Posted 05 November 2011 - 11:15 PM



Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D


Thanx a lot m8! Perhaps I downloaded some of those examples on this forum days ago: many infos (and tuts) are written for GM8 and my intention was to focus more on html5 (db/mysql/php/security): I hope that "substitue the DLL functions for .js ones" will be easy, but I'm a little worried about it! :laugh:

Thank you again anyway, reading the whole thing on the site will help for sure !


No problem ;)

It should be easy to substitute the DLL codes, whilst I don't own GMH5 myself I'll try my best to explain:

1) Download 39js
2) Right click on the Extensions tree and select Create Extension, as seen here (note: you don't have to fill in all the info)
3) Right click the newly created extension, select Add File and locate the Javascript (.js) file when prompted
4) A second box will appear, leave Init Function and Final Function blank
5) After the .js file has been added, right click it and select Add Function
6) Fill in the properties when prompted; the function name should be the same as the name of the corresponding function in the .js file (the 39js topic should say something about this) ("Help" is the help string shown in the code editor when typing the function. "Key" means the argument number. Type string in the value box, for the first key (argument0); see this image)
7) Rinse and repeat to add all functions
8) Now, instead of calling the 39DLL scripts, call one of the .js extension functions

Credit to Jackson Yarr for images and info

39js should come with a .gmx with the extension preconfigured, but in the event it doesn't steps 5-7 should be carried out to do the job manually.

Good luck :D

Oh, and the site says about .ini files. Instead find a mySQL extension, or make one yourself. this extension should do the trick though :D


-----------------

What should I say? THANK you A LOT, for your patience and efforts to explain everything... My wife's gonna hate me ... again ... AND you too !!! :biggrin: Have a nice week end!

Edited by MiniMe, 05 November 2011 - 11:17 PM.

  • 0

#6 Neri

Neri

    GMC Member

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

Posted 13 June 2012 - 01:15 PM

Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D

People keep linking me to that website and it is just a blog, I can't find any examples there no matter what!
  • 0

#7 Orbitguy

Orbitguy

    UNS Lead Guy

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

Posted 15 June 2012 - 06:29 PM


Try this site.

It's a very useful site I've been reading myself with plenty of info and examples. It is however aimed towards Windows development but take a look anyway and by the time you've finished it you should have a fair bit of understanding. Read up on how to use .js extensions from somewhere and substitue the DLL functions for .js ones and you're good to go :D

People keep linking me to that website and it is just a blog, I can't find any examples there no matter what!


TV unfortunately took howtomakeanmmorpg.com down and it now redirects to his blog, however his examples are still on this forum but these are not related to 39js, only 39dll.

Other good 39dll examples include:
MMO Editable World Example by MasterMind007:

http://gmc.yoyogames...howtopic=491407

C++ Server w/ GML Client via 39dll example by Aragon:

http://gmc.yoyogames...howtopic=490203

A great article concerning Dead Reckoning-type techniques and traditional methods to reduce lag in online games:

http://web.cs.wpi.ed...mes/bernier.pdf

iOnline Engine v3:

http://gmc.yoyogames...howtopic=497138

Sabriath's: Last Stop For Multiplayer Learning

http://gmc.yoyogames...howtopic=445910

BlaXun's Online Engine:

http://gmc.yoyogames...howtopic=351397
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users