[Plugin] Photon Cloud

Post your completed addons to share with the community

Post » Wed Oct 28, 2015 9:01 am

Hi,

#1 Browsers run javascript only once per sec while page is in background or minimized. I don't know if Construct 2 or browsers support handling of these events. If not, you may try detect them by measuring time between calls. After going to bg detected, you may send notification to other players or leave the room.

#2 Most likely exported binary does not contain WebSocket object required for plugin. Several different websocket modules available for nodejs but they do not expose WebSocket objects in global namespace like browsers do. Probably some sort of adapter required. It's not clear currently how to integrate nodejs, websocket and Construct 2 plugin.
B
7
S
2
Posts: 170
Reputation: 1,023

Post » Wed Oct 28, 2015 9:12 am

Thanks for the reply @ThePhotons , any idea on how diligently you guys are working on updates for the plugin?
B
11
S
2
Posts: 30
Reputation: 717

Post » Wed Oct 28, 2015 9:46 am

Hi @ThePhotons, if i start the default pool example with NW.js formerly known as node.js this is the error message i get.

http://i.imgur.com/xmExDwP.png
Image

I hope that helps fixing the issue.

- Edit -

I figured i add a link to the edited project as well for convenient further testing
NW.js_poolDemo.capx link
B
71
S
29
G
7
Posts: 86
Reputation: 7,588

Post » Wed Oct 28, 2015 2:03 pm

2dgamedev wrote:Thanks for the reply @ThePhotons , any idea on how diligently you guys are working on updates for the plugin?

What exactly you are waiting update for? We are not planning updates currently.
B
7
S
2
Posts: 170
Reputation: 1,023

Post » Wed Oct 28, 2015 10:55 pm

Things I'd like in no particular order are :working exporting to NW.js (currently doesnt connect) , some documentation on the Functions , and maybe more of the convenient functions added from the other versions of photon ~
B
11
S
2
Posts: 30
Reputation: 717

Post » Thu Oct 29, 2015 12:25 pm

Thanks for suggestions.
We are working on (server side) NW.js issue now.
We don't have enough time to expose all js sdk features in plugin and it'a not clear what is most demanded currently. Basics should be enough for most simple games. Note also that some features probably will never be in plugin since it's hard to express them in terms of visual editor.
The plugin already has short notes on functions and parameters as any other Construct 2 plugin does. You can find more details in js sdk documentation https://doc-api.photonengine.com/en/javascript/current/ considering that all plugin functions based on sdk methods.
B
7
S
2
Posts: 170
Reputation: 1,023

Post » Mon Nov 23, 2015 10:19 am

cant seem to get this to work with plat-former behaviour , any help or a capx would be good
B
7
Posts: 12
Reputation: 599

Post » Mon Nov 23, 2015 5:02 pm

What is special about platformer? The plugin simply broadcast messages (e.g. with character positions) to all other clients in the room. Using this simple thing, you can keep in sync clients for any genre.
B
7
S
2
Posts: 170
Reputation: 1,023

Post » Wed Nov 25, 2015 12:50 am

@jezzarb94 use the fish example and convert it to platformer, it will work fine ~ and @thephotons hows that NW.js fix coming along?
B
11
S
2
Posts: 30
Reputation: 717

Post » Tue Dec 01, 2015 5:36 pm

The NW.js issue is still open. Sorry. Our server team was super busy last days. Just started processing the task.
B
7
S
2
Posts: 170
Reputation: 1,023

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 7 guests