Jump to content


Photo

GameMaker Websocket


  • Please log in to reply
118 replies to this topic

#21 Crhonos

Crhonos

    GMC Member

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

Posted 21 December 2011 - 05:06 PM

Have i ever told that i love you and you are a genius ?
What you done was just what everyone needed =D
Thanks.

How do i change the params of the Gmws translator ?

Edited by Crhonos, 21 December 2011 - 05:19 PM.

  • 0

#22 oneSOB

oneSOB

    GMC Member

  • New Member
  • 33 posts

Posted 21 December 2011 - 05:17 PM

I have a question
Have you considered releasing the source of the Gmws Proxy/Translator
I would love to mess around with it and custom build it into my server

Example

MyGame.exe -> 39Dll -> C++ Server
MyGame.php -> gmws -> C++ Server

and if coded right no one knows the difference between broswer based play or exe
  • 0

#23 Demion

Demion

    GMC Member

  • GMC Member
  • 46 posts

Posted 22 December 2011 - 12:49 PM

Have you considered releasing the source of the Gmws Proxy/Translator

Sorry for delay. Ill release "translator" gmws sources next release (+Opera support). I was very busy last week. I hope Ill release it this weekends.

Edited by Demion, 25 December 2011 - 04:05 AM.

  • 0

#24 Debels

Debels

    GMC Member

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

Posted 22 December 2011 - 01:15 PM

Sorry for delay. Ill release "translator" gmws sources next release (+Opera support). I was very busy last week. I hope Ill release it this weekends.


gmws doesn't work for me :S

i run gmws then server and then client and doesn't work
  • 1

#25 thedyingdragon

thedyingdragon

    GMC Member

  • GMC Member
  • 23 posts

Posted 22 December 2011 - 01:20 PM

Ill release "translator" gmws sources next release (+Opera support).


I gotta say that would be pretty sweet as I have been trying to incorporate
it into my server as well

Its been a bit tricky though and im sure the translator may help me out
Thanks so much for this!!! ::lmao::
  • 0

#26 Demion

Demion

    GMC Member

  • GMC Member
  • 46 posts

Posted 22 December 2011 - 01:25 PM

gmws doesn't work for me :S


Server / client with win32 gamemaker and 39dll (no html5) work for you? If problem only in gmws contact me privately.

Edited by Demion, 22 December 2011 - 01:28 PM.

  • 0

#27 Debels

Debels

    GMC Member

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

Posted 22 December 2011 - 01:28 PM


gmws doesn't work for me :S


Server with win32 gamemaker and 39dll (no html5) work for you? If problem only in gmws contact me privately.


oh since it was set to your IP it didn't work XD. know it works
  • 0

#28 Barling

Barling

    GMC Member

  • New Member
  • 122 posts

Posted 24 December 2011 - 08:26 PM

I get this error:

Error: WebSocket is not defined
Source File: http://127.0.0.1:512...ml5game/gmws.js
Line: 45


Line 45 of gmws.js:

Error: WebSocket is not defined
Source File: http://127.0.0.1:512...ml5game/gmws.js
Line: 45


whenever I use this in my game:
ws = gmws_connect("127.0.0.1", 8080);

EDIT:
Aw, it works in chrome.
I'm running Firefox 9.01.

Is websockets disabled in firefox or something?

Edited by Barling, 24 December 2011 - 11:22 PM.

  • 0

#29 Demion

Demion

    GMC Member

  • GMC Member
  • 46 posts

Posted 25 December 2011 - 03:17 AM

Is websockets disabled in firefox or something?

You are using latest release? Firefox uses MozWebSocket not WebSocket. But release v3 checks browser id and uses MozWebSocket for latest Firefox. Maybe problem in browser detect function. Ill check it and contact you later. Thanks.

Edited by Demion, 25 December 2011 - 04:05 AM.

  • 0

#30 Debels

Debels

    GMC Member

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

Posted 25 December 2011 - 03:38 AM

You are using latest release? Firefox uses MozWebSocket not WebSocket. But release v3 checks browser id and uses MozWebSocket for latest Firefox. Maybe problem in browser detect function. Ill check it and contact you later. Thanks.


Demion MERRY CHRISTMAS!, keep up the good work with GM:WebSocket =D
  • 0

#31 Barling

Barling

    GMC Member

  • New Member
  • 122 posts

Posted 26 December 2011 - 12:36 AM

Well..if you say your current version uses MozWebSocket...
I downloaded the example as of right now on your first post, and I don't see "MozWebSocket"
anywhere in the gmws.js file.

Could you possibly update your first post with the new gmws.js file?
  • 0

#32 Mailas

Mailas

    Send in the Mail

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

Posted 29 December 2011 - 06:40 AM

Something is wrong with the translator.
I am unable to connect to it via my external IP, though I can connect to it if I use my local IP.

Ports are forwarded, firewall was off at the time.

www.canyouseeme.org confirmed that there was no service running on the translator.
I'm able to connect to my gm and my C++ server that run on port 8081, but not the translator which runs on 8080.
I can only connect to it locally...

Edited by Scylla, 29 December 2011 - 06:41 AM.

  • 0

#33 Demion

Demion

    GMC Member

  • GMC Member
  • 46 posts

Posted 25 January 2012 - 01:14 AM

Hi. Thanks for responds in pm. I was very busy this month becuase of that no updates. I ll sure continue work on this project and release updates and sources as soon as possible. I need more reports about bugs etc. Thanks.
  • 0

#34 thedyingdragon

thedyingdragon

    GMC Member

  • GMC Member
  • 23 posts

Posted 25 January 2012 - 06:01 AM

Something is wrong with the translator.
I am unable to connect to it via my external IP, though I can connect to it if I use my local IP.

Ports are forwarded, firewall was off at the time.


I had a similar problem but found a solution you have to set the translator
to listen on your internal IP (192.168.*.*) and not localhost (127.0.0.1)
this also assumes your ports are forwarded correctly

example
use 192.168.0.200 8080 127.0.0.1 8081
instead of 127.0.0.1 8080 127.0.0.1 8081

--EDIT--
I also plan on making a batch script which will run the translator
with params set in the file for people who dont know how to do so via CMD.
I use different ports than the translator default and the batch is a one click start
which saves time and money! ... well at least the first one :(

Edited by thedyingdragon, 25 January 2012 - 02:13 PM.

  • 0

#35 thijsmie

thijsmie

    GMC Member

  • GMC Member
  • 22 posts

Posted 25 January 2012 - 06:28 PM

The links are down...
  • 0

#36 lukeescude

lukeescude

    GMC Member

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

Posted 26 January 2012 - 03:04 AM

Yeah, the links say your hosting sites have been seized.
  • 0

#37 Demion

Demion

    GMC Member

  • GMC Member
  • 46 posts

Posted 26 January 2012 - 08:12 AM

1 or 2 two links for each file working for me, but reuploaded anyway. New links in 1st post. Check it.
---
If you are using example (gmwsexample.zip) you need to replace extension (gmws.gex) there to latest version.

Edited by Demion, 26 January 2012 - 03:30 PM.

  • 0

#38 lukeescude

lukeescude

    GMC Member

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

Posted 27 January 2012 - 01:18 AM

Thank you!
  • 0

#39 lukeescude

lukeescude

    GMC Member

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

Posted 27 January 2012 - 04:47 AM

It doesn't seem like my server receiving the right kind of data... I'm trying to send it a simple int but it keeps receiving 0 from gmws.

Have you fully tested this?
  • 0

#40 thedyingdragon

thedyingdragon

    GMC Member

  • GMC Member
  • 23 posts

Posted 27 January 2012 - 05:25 AM

As promised Translator Batch File

Now I know its not much but I can be handy
Enjoy guys :P
  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users