playMaker

Author Topic: Photon network game Version [SOLVED]  (Read 8424 times)

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Photon network game Version [SOLVED]
« on: September 12, 2013, 10:34:19 AM »
Hello

My game is a photon network multipayer game in webplayer on my site

So I need any game version check, because if anybody download my game,
and try to use no local, He can crash my game, if I put on a new version!

This is a webplayer game!
I tried to use create a version.txt on my webpage, and use
WWWOBJECT Action for get version number from the txt file and if it is same as in the game, this can run. If the string data from the txt isnt = the game value, I go to Photonnetworkdisconnect action and the client disconnect.

The problem is the WWWOBJECT :/

It is work fine in editor, but in the webplayer it isnt work on local and on webage!
I tried to use http://www. and only www. and only domain,
but it isnt work :/
(I used the full link so xy/version.txt)

The target is, any solution for photon network webplayer game version check, so when I put on a new version the latest old version can not connect

Anybody know any solution?
« Last Edit: September 13, 2013, 07:40:22 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Photon network game Version
« Reply #1 on: September 13, 2013, 02:45:31 AM »
Hi,

 Photon implements game versionning actually. You have access to this using "PhotonNetworkConnectManually" or "PhotonNetworkConnectUsingSettings" and change your game version there.

 Bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon network game Version
« Reply #2 on: September 13, 2013, 04:24:55 AM »
Hi,

 Photon implements game versionning actually. You have access to this using "PhotonNetworkConnectManually" or "PhotonNetworkConnectUsingSettings" and change your game version there.

 Bye,

 Jean

I know this and it is a bad half solution...

I need normal solution, I do not want that peoples use older version..
I want that only the new version can run, and work, and the older cant run, or crash. The wwwobject is good ways for this, because I can use a official actual version, and the client can check this.
(And more, the client can read update info, and if anybody download my game he can get update message, that go and download the new..)

But this lame wwwobject cant working from webplayer..  >:(

how can I check, read .txt file on web, as the wwwobject?
Can I edit this action for working with normal and can read www.... content from webplayer?  ???

Anybody have working normal action for this?

If I put the .txt beside the webplayer the wwwobject work, but if anybody download my game, or anymore, it not work, and also not work with www.xy.com/txt.txt so I hope you understand what I write :)
« Last Edit: September 13, 2013, 04:57:28 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Photon network game Version
« Reply #3 on: September 13, 2013, 05:23:57 AM »
Hi,

 I am not sure what's not suitable in Photon implementation of game versionning. Have you contacted them and explained your expectations? Maybe you are misunderstanding how it's suppose to work?

I am not quite sure I follow your setup. If your game is played in a browser, how can someone play an old version since you are in control of the webpage and its content? Or are you also publishing on mobil and desktop?

As for www on the web. I am not sure what's not working for you. Can you detail a bit more what's going on there?

bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon network game Version
« Reply #4 on: September 13, 2013, 05:37:42 AM »
I want to use that my client read from my webpage the ..txt anywhere..
I want put in some security function with this action.

example if any stupid kid try to download, steal my webplayer game and put on his side, I can set my .txt and the client will be stop working.
because my client chect My .txt at start on My webpage, not need to be on my webpage.. but now not work this... the client can read only beside files
So if he steal also the beside files the security isnt work... :D

But if my client only read from my website, www.xy.com/xy.txt he cant use my client without decompress and lot of procedure.. :D

So my idea, that I can use this also a security function, because the Application.ExternalEval document.location.host and ect, I think dont work if the javascript is off.. and ect..

So the good wwwobject can to be a good security ways and have lot of function.
example version check... because I tried, and ok, the client with version 1, cant see the version 2 rooms, but still working with version 1 rooms..

I want full stop the older versions..
« Last Edit: September 13, 2013, 05:55:17 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Photon network game Version
« Reply #5 on: September 13, 2013, 06:11:34 AM »
Hi,

 I meant: what exactly is failing when you try to use the wwwObject action? I just tried and it works just fine. I am not sure I understand why you can't use this.

If you really want something secure, you need to use https, but for this you will need a dedicated server... and that costs a lot, like $2000 up front setup and like $200 per month maintenance, otherwise Unity can not access a https server because of a crossdomain policy file needed to be server on a tcp socket.


bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon network game Version
« Reply #6 on: September 13, 2013, 06:22:50 AM »
Hi,

 I meant: what exactly is failing when you try to use the wwwObject action? I just tried and it works just fine. I am not sure I understand why you can't use this.

If you really want something secure, you need to use https, but for this you will need a dedicated server... and that costs a lot, like $2000 up front setup and like $200 per month maintenance, otherwise Unity can not access a https server because of a crossdomain policy file needed to be server on a tcp socket.


bye,

 Jean

You tried the wwwobject action on website in webplayer? with full link? (www.xy.com/xy/xy..txt)

Because when I tried this it isnt worked me with full link, only from unity editor, but in webplayer not... but if you say it need to work, :D i will try 4th x too... -.-

« Last Edit: September 13, 2013, 06:29:33 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Photon network game Version
« Reply #7 on: September 13, 2013, 06:31:03 AM »
Hi,

this link is a false: http://www.xy.com/xy/xy..txt

if I try http://www.xy.com/xy.txt I get 404 Not Found

 that is not a valid link. if you try with a valid one it will be ok. Please verify that the link works in your browser, if it does then I'll be able to double check here.

bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon network game Version
« Reply #8 on: September 13, 2013, 06:35:58 AM »
Hi,

this link is a false: http://www.xy.com/xy/xy..txt

if I try http://www.xy.com/xy.txt I get 404 Not Found

 that is not a valid link. if you try with a valid one it will be ok. Please verify that the link works in your browser, if it does then I'll be able to double check here.

bye,

 Jean


It was example link not live! -.-

(webplayer build)
Ah... I said. If i use FULL link, with www. ------ .com/--.txt the action cant read the file

Full link isnt readable in webplayer for me, only beside files
« Last Edit: September 13, 2013, 06:41:52 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Photon network game Version
« Reply #9 on: September 13, 2013, 06:39:09 AM »
Hi,

 pm me if you need me to test on your link. As far as my tests go, it's all ok.

bye,

Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon network game Version
« Reply #10 on: September 13, 2013, 07:18:49 AM »
I find a new solution for check version and stop older versions!

Get system time...  ;D so I can create clients for fix time, and after upload the new client. example every weekend