aliens

Author Topic: Cloud Saving  (Read 7684 times)

Offline hsbckb

  • Colonel
  • ****
  • Posts: 275
  • Gill Man
    • View Profile
Cloud Saving
« on: February 18, 2011, 12:22:06 pm »
As there will be different version of OpenXcom,  I think "cloud saving" i.e. using space from Gmail account will be very useful. I this way I can play the game at home from my PC and outside using my Symbian/Android Phone.

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Cloud Saving
« Reply #1 on: February 18, 2011, 12:58:19 pm »
Crazy interesting idea :)

Maybe we could store saves on ninex.info server. If there will be enough place on hdd. And if NineX will permit ;)

Basically, it would require creating account on (for example) openxcom.ninex.info/saves. Simple login and password, nothing more. Then in openxcom you would have to configure login and password.

As for coding it, instead of loading/saving files, openxcom would need to call simple php scripts:
Code: [Select]
openxcom.ninex.info/saves/list.php?login=aaa&password=xxx
openxcom.ninex.info/saves/save.php?login=aaa&password=xxx&name=save1 (send file as POST data)
openxcom.ninex.info/saves/load.php?login=aaa&password=xxx&name=save1

It should be doable with pure c/c++ sockets. Shouldn't be very hard.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: Cloud Saving
« Reply #2 on: February 19, 2011, 03:31:42 am »
Crazy interesting idea :)

Maybe we could store saves on ninex.info server. If there will be enough place on hdd. And if NineX will permit ;)

Basically, it would require creating account on (for example) openxcom.ninex.info/saves. Simple login and password, nothing more. Then in openxcom you would have to configure login and password.

As for coding it, instead of loading/saving files, openxcom would need to call simple php scripts:
Code: [Select]
openxcom.ninex.info/saves/list.php?login=aaa&password=xxx
openxcom.ninex.info/saves/save.php?login=aaa&password=xxx&name=save1 (send file as POST data)
openxcom.ninex.info/saves/load.php?login=aaa&password=xxx&name=save1

It should be doable with pure c/c++ sockets. Shouldn't be very hard.
I guess I shouldn't tell you I pretty much flunked at sockets then. :P

Offline sir_nacnud

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: Cloud Saving
« Reply #3 on: February 19, 2011, 07:26:46 am »
SDL has support for networking.  This is probably would be what you would use, given Windows uses it's own winsock API, where as Unix based systems use Berkeley sockets.

I think this might be a cool idea for mobile apps, like my android port.

Offline Zyxpsilon

  • Sergeant
  • **
  • Posts: 42
  • Here, Today.
    • View Profile
Re: Cloud Saving
« Reply #4 on: February 19, 2011, 07:58:31 am »
IIRC, SMKSoftware.ru's https://www.freewarepocketpc.net/ppc-download-pocket-ufo-v1-26.html for Windows Mobile Phones should be compatible with Android port if anything.

Offline hellblade

  • Captain
  • ***
  • Posts: 87
    • View Profile
Re: Cloud Saving
« Reply #5 on: February 22, 2011, 03:07:04 pm »
 ;D   I have ALWAYS sent the entire game to my gmail account so I could play it anywhere

Offline Zyxpsilon

  • Sergeant
  • **
  • Posts: 42
  • Here, Today.
    • View Profile
Re: Cloud Saving
« Reply #6 on: February 23, 2011, 08:46:56 am »
Broken link, i know... anyone wants it for real here? https://pocket-ufo.en.softonic.com/pocketpc/download#pathbar
« Last Edit: February 23, 2011, 08:49:59 am by Zyxpsilon »