Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Datasaving or HTTP services
Started by iverson334308400 Oct 04 2019 10:21 AM

3 replies to this topic
help

Best Answer Rob Miracle , 04 October 2019 - 12:28 PM

It depends on what you mean by multiplayer. If you are going to use GPGS or GameCenter or some other service, you're going to pass turn/game information through that service and let them be responsible for broadcasting it to other players. If you're going to build your own multi-player, you're probably going to have to setup a REST like API that you can submit turn data and have server scripts broadcast it to other players. Your server scripts would be responsible for whatever storage of information you need. You would use network.request() for that.

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

iverson334308400

[GLOBAL: userInfoPane.html]
iverson334308400
  • Observer

  • 6 posts
  • Corona SDK

So I'm trying to look for a way to "Save" and "Load" data accordingly. I'd like to use a third party website in this case Google Forms to save data, read data (visually), and load data (in game). How would I be able to do so and is there an API for this? Are there any examples I would be able to use / see? 

 

Again thank you guys for helping me out, I'm fairly new to Corona and it'd be awesome if I could make Corona my main platform.

 

Also is there a "Starter" guide somewhere here that's not about learning lua?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

Here is our Getting Started guide: http://docs.coronalabs.com/guide/programming/index.html

 

There isn't a guide for using Google Forms as far as I know. We have an API called "network.request()" that can make REST based HTTP based network calls, so you probably can get that to work at some level. I'm pretty sure someone posted something about connecting to a Google spreadsheet at some point in the past. But this will likely end up being a lot of work.

 

The network.* API's also will support uploading and downloading local files to a web server of your choice, but you're going to probably have to write some server-side script to handle the upload process. Since these files are stored on your server you would have visibility with them. But as a user of your game, I'm not sure I want my game save data somewhere where someone could edit it. This sounds fraught with security issues.

 

Both Google and Apple have "services": -- Google Play Game Services for Android, iCloud for iOS that lets you load and sync data with their cloud services. Most people would probably go this route to save game data, but you're not going to be able to look at it off line.

 

Rob



[TOPIC: post.html]
#3

iverson334308400

[GLOBAL: userInfoPane.html]
iverson334308400
  • Observer

  • 6 posts
  • Corona SDK

@Rob Miracle, so it'd be fine in terms of multiplayer?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

  Best Answer

It depends on what you mean by multiplayer. If you are going to use GPGS or GameCenter or some other service, you're going to pass turn/game information through that service and let them be responsible for broadcasting it to other players. If you're going to build your own multi-player, you're probably going to have to setup a REST like API that you can submit turn data and have server scripts broadcast it to other players. Your server scripts would be responsible for whatever storage of information you need. You would use network.request() for that.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: help