Online messages

mdotedot

  • Posts: 1569





Changelog:
For > 3.2 change MultiPlay.hx line 70 (Comment out the line) :
//trace("URL_Decode: string: "+str+" Invalid character: at:"+i+" = [ "+p3.charAt(i))+" ]";

« Last Edit: July 26, 2017, 10:37:07 pm by mdotedot »
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182

This extension is not specific for TurnBased or other type of online gaming. The system sends messages to a server and that server is sending those messages to other connected devices.
Allthough it is best used in combination with either Lobby or Turn extension it can be used seperately.

The demonstration and documentation shows an example that sends Chat texts but the type of text being send is up to the extension user. It can be anything as long as it is text. There could be server URL constraints depending on the platform you are working with so please avoid EXTREME data.

Use at your own risk

Documentation
Messages Extension

Extension:
Messages.zip

Warning: For advanced users!


For publication to:
  • Flash
  • iOS
  • Android
  • Macintosh OSX
  • Windows
Linux not tested.



Example Stencyl files:
Chat
Chat for two

Examples on Arcade:
SimpleChat
SimpleChatRooms


Best regards form
M.E.
Wow this is really cool ! Does it require your own server ?
Peace

mdotedot

  • Posts: 1569
You can get your own free codes that are active for 30-days or 10.000 server-requests: Multiplayer Code Generator
This gives you an opportunity to test your games.

When you want to use it for something serious I would indeed recommend you to buy/rent your own server.


Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
Are there any free servers ?
Peace

mdotedot

  • Posts: 1569
Hi Donni11,

http://community.stencyl.com/index.php/topic,42188.msg236973.html#msg236973

You should look for providers that have reasonable speeds available. The free server made with the documentation
above did not have good speeds. So I pay 10$ a month for a server that does.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
I actually tried using the Multiplayer Code Generator but I never recived a email.   
Peace

mdotedot

  • Posts: 1569
Hello Donni11,

the generator seems to have problems when you have multiple dots in your domain: abc@abc.def.ghi.com  for instance will give problems.
Do you have problems with one of the servers I maintain or your own? Since you can find the appid + secret in your own database using mysql / phpmysql .

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
I'm not using multiple dots , it seems not to work with gmail :-\...
Peace