Jump to content


Photo

Using a webpage for Multiplayer


  • Please log in to reply
2 replies to this topic

#1 ekatsrule

ekatsrule

    GMC Member

  • New Member
  • 1 posts
  • Version:GM8

Posted 12 March 2012 - 12:37 AM

Okay, so the more programing languages I learn, the more I know what is possible.


I'm wanting to know how (if possible) to connect via game maker to a web address, submit to the page what version the game is, and to enter the website from the point.
After getting into the webpage, (depending on the Users decision) it would write the IP of that computer, and start/look for a session.

This way, you go to a central location to find a better amount of players, and then connect directly to each other via your IP by reading whatever data is on the page.


If this question makes no sense, sorry...I'll try to explain it better in other comments/responses. But as for right now, I just need to get this question up and out there.

Edit:
Okay...I feel stupid. I didn't read the Rules of this form (until now) and I realized I screwed up real nicely.
So...unfortunately I don't know where to start off, I have never tried multi-language programing before.
Using GML8, you would call a
mplay_init_tcpip('www.mygamepage.com');
but I don't quite know how to approach the page with the game, or the webpage for that matter.

I don't think this has been asked before, but just in case, could you please direct me to the correct page before flagging/reporting this post.

Edited by ekatsrule, 12 March 2012 - 12:49 AM.

  • 0

#2 Debels

Debels

    GMC Member

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

Posted 12 March 2012 - 01:27 AM

Okay, so the more programing languages I learn, the more I know what is possible.


I'm wanting to know how (if possible) to connect via game maker to a web address, submit to the page what version the game is, and to enter the website from the point.
After getting into the webpage, (depending on the Users decision) it would write the IP of that computer, and start/look for a session.

This way, you go to a central location to find a better amount of players, and then connect directly to each other via your IP by reading whatever data is on the page.


If this question makes no sense, sorry...I'll try to explain it better in other comments/responses. But as for right now, I just need to get this question up and out there.

Edit:
Okay...I feel stupid. I didn't read the Rules of this form (until now) and I realized I screwed up real nicely.
So...unfortunately I don't know where to start off, I have never tried multi-language programing before.
Using GML8, you would call a

mplay_init_tcpip('www.mygamepage.com');
but I don't quite know how to approach the page with the game, or the webpage for that matter.

I don't think this has been asked before, but just in case, could you please direct me to the correct page before flagging/reporting this post.


If you want to do this, you must have a hosting with MySQL databases so you can store the variables there.

Check 39Dll its much better than mplay
  • 0

#3 Plastic

Plastic

    GMC Member

  • New Member
  • 28 posts
  • Version:GM7

Posted 14 March 2012 - 05:41 PM

You shouldn't use mplay for this, as mplay uses peer-to-peer networking, which doesn't work well on the internet.
Also all player need to forward their ports if you want to use mplay. Better check in Extending GameMaker for a DLL or Gex that does work.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users