DropBox integration with GLBasic - experimental work in progress

Previous topic - Next topic

spacefractal

on MacOSX (And property Linux), host.db is also exists, and its seen its allways should been in ~/.dropbox, so the full path+file should been ~/.dropbox/host.db.

But if I trying to check if the file exists with DOESFILEEXIST, its allways return 0 for some reason? I guess its something different with ~ char my guess? The file also exists on my mac and I'm not using Mountian Lion. Just Lion.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Moru

Sounds like a lot of work for the user to get a game working. Why not put up your own server that you can talk to with HTTP requests? My base64 library contains some code for that and there is some examples in the example folder of GLBasic distribution too. You can upload and download files from any webserver, not just dropbox. And this works on all platforms without the user having to install and set up dropbox first.

spacefractal

Because if the game got succes and plans to release to many platforms, then I would not been afford the traffic there would been incomming. So I prefer using a Cloud service like Dropbox (but could been different, example iCloud, but its only for Apple machines) or other Sync services.

The dropbox path is extracted on Windows, but missing on Mac, because I not very sure why ~/.dropbox/host.db cannot been detected correctly. The files elsewise exsits on my Mac.

The major problems is really on mobile platforms, not on deskops (where I awsume Dropbox is installed). Howover on WebOS and other unsupported OS, here server mightbeen required, but there is a Dropbox for PHP as well, which is possible to use.

The very best is of course possible to use the Dropbox's REST API directly in C++ and adapt it using inline. Howover its use HTTPS as well both GET and POST and those are unsupported by GLBASIC.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

kanonet

I agree with moru, i dont see a reason why you try to support the most restricted service thats out there. Wouldnt it be easier to just use one of the thousands free webspace providers out there and upload your data via php or ftp?

And btw would your dropbox solution work if the user dont have dropbox installed? There many ppl that dont like/use dropbox, i bet im not the only one. So dont chain your game to an restricted commercial provider, better look for a free service. just my 2 cents, no offence.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

spacefractal

Dropbox is of course option, not required for the user. Dropbox support in game would simple been auto disabled, If not installed on desktop or not autorized by user for mobile. So it's just a extra service for the game.

Dropbox is still best cloud service (as I known) and I don't want to hold server my self and doing all the security work (a account system is required anyway).

I trying to integrate for savegames use, not hiscore. With hiscore, it's different story.

Ps. iCloud would been nice too, also I love Dropbox.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

I'd use my own server traffic isnt gonna be a problem really. More traffic=More people bought your product
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Sokurah

Quote from: spacefractal on 2012-Aug-19
Because if the game got succes and plans to release to many platforms, then I would not been afford the traffic there would been incomming.

Quote from: spicypixel on 2012-Sep-10
I'd use my own server traffic isnt gonna be a problem really. More traffic=More people bought your product

I agree with spicypixel. Remember that the amount of traffic you send back and forth from a phone/tablet device doesn't amount to much.
Besides, I'd think it would be better to be in control of as much as possible, and not be dependent on too many third-parties.
Website: Tardis remakes / Mostly remakes of Arcade and ZX Spectrum games. All freeware. :-)
Twitter: Sokurah

spacefractal

I need account based, but have not Got more far with integration, because i want V1.0 of greedy mouse out first.

I perfer dropbox due platforms supported and Will try support it and look after V1.0. No plans using own server for save game integration between systems and platforms supported.

As I said its different than hiscore.... Then nothing problem with own server.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/