Cross-device sync temporary solution

User avatar
GFX47
Dev Team
Posts: 2001

Cross-device sync temporary solution

Post#1 » 08 Dec 2016, 22:54

This is my face everytime I read about you guys copying your AIs between PC and mobile:

Image

As you may have noticed, cloud sync is already implemented but there's no way for you to link 2 devices yet.
So here's what we can do until this part is done:
  • You give me the list of the player names you use on your different devices, precising which one is your main account
  • I do my thing on the server and tell you when it's ready
  • You launch the game on your different devices and always choose to use the server data when the data sync conflict message appears

Anyone interested?

User avatar
radyjko
Script
Script
Posts: 11

Re: Cross-device sync temporary solution

Post#2 » 09 Dec 2016, 00:44

If I don't have account on my phone (i.e never played on phone) I don't have to do that?
I'm like Neo from matrix, except instead of bullets I dodge responsibilities

HDeffo
Neural Network
Neural Network
Posts: 212

Re: Cross-device sync temporary solution

Post#3 » 09 Dec 2016, 06:47

Why not add an "import" "export" file that saves or loads AI trees from the clipboard or a flat file....that seems like the easiest solution to me. If you did that I would happily write (or maybe already wrote) a system that can transfer it. Since people are constantly bugging you over this feature and all

pier4r
Skynet
Skynet
Posts: 2764

Re: Cross-device sync temporary solution

Post#4 » 09 Dec 2016, 08:29

GFX you know that you are exposing yourself to an unlimited support request flow?
Kudos!

+1 for export/import in text files anyway (one could also edit the AI directly in text!). Even if no one makes a plugin for it, making a guide would be pretty simple (and on android there will be xplore with the wifi server, easy way to get the files)
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
GFX47
Dev Team
Posts: 2001

Re: Cross-device sync temporary solution

Post#5 » 09 Dec 2016, 12:27

I won't work on file export/import so soon because there's a lot changes coming up in the system and it would take me too much time to maintain it.
The (temporary) solution I proposed is not so time consuming for me and is still way better than a manual import/export process for you.

User avatar
Avaren
Script
Script
Posts: 38

Re: Cross-device sync temporary solution

Post#6 » 15 Dec 2016, 17:40

Would using your account on 2 different platforms at the same time cause problems with the current build?
Especially using the AI editor on both platforms at the same time?
The only reason I would do this atm would be so I could edit multiple AIs, or copy mass changes at/to multiple AIs at the same time.

User avatar
GFX47
Dev Team
Posts: 2001

Re: Cross-device sync temporary solution

Post#7 » 16 Dec 2016, 09:26

The system is made for playing on one platform at a time.
If you edit your AIs on 2 platforms at the same time, you will get sync conflicts.

User avatar
Avaren
Script
Script
Posts: 38

Re: Cross-device sync temporary solution

Post#8 » 17 Dec 2016, 01:33

I thought that would be the case

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#9 » 28 Dec 2016, 23:28

Cool, I'm up for this. Can you sync my main account to the account "Sentinel" ?
If something goes wrong, do you have a backup of the AIs?

If I change something in the 2nd account, it doesn't get synced to the main account, correct?

Thanks!

User avatar
GFX47
Dev Team
Posts: 2001

Re: Cross-device sync temporary solution

Post#10 » 29 Dec 2016, 10:26

NullPointer wrote:Cool, I'm up for this. Can you sync my main account to the account "Sentinel" ?
If something goes wrong, do you have a backup of the AIs?

If I change something in the 2nd account, it doesn't get synced to the main account, correct?

Thanks!


Done. Connect to your "Sentinel device" and use server data.

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#11 » 29 Dec 2016, 10:58

Awesome, it works. When I'm back to my desktop, should I select server data again?

Are changes synced both ways?

Thanks a lot

User avatar
Crashdown
Script
Script
Posts: 12

Re: Cross-device sync temporary solution

Post#12 » 29 Dec 2016, 11:31

Well, if i will sync my main account with second and i'll do some changes on second, would they introduce on my main acc?
An open mind is like a fortress with its gates unbarred and unguarded.

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#13 » 29 Dec 2016, 11:50

So far it seems like the main account completely takes over the second account, you will only have 1 account after that, which is the best type of sync possible I guess.

I'm just a little concerned with this:

When I'm back to my desktop (main account), should I select server data again?


Save any work on you 2nd account before doing this.

User avatar
Crashdown
Script
Script
Posts: 12

Re: Cross-device sync temporary solution

Post#14 » 29 Dec 2016, 12:16

If the main account is actually "destroying" other ones in this type of sync, that is really the best one.
But there is one possible problem. If i'll make some changes on one sync device in offline mode and then choose "Use server data", those changes may disappear. And if i'll choose "Keep local data", would the changes be visible on second device?
An open mind is like a fortress with its gates unbarred and unguarded.

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#15 » 29 Dec 2016, 12:35

These are just my assumptions:

This message is supposed to appear only when you have conflicts. The example you described shouldn't happen if you always sync with the server before and after you play with one of the devices.

Pressing the "quit" button instead of force closing the app helps avoiding conflicts.

I think the game is capable of doing this:

Image


But not this:

Image

If 2 changes (circles) are parallel like in this last picture, you need to select one or the other, that's basically what the question you see is.

User avatar
GFX47
Dev Team
Posts: 2001

Re: Cross-device sync temporary solution

Post#16 » 29 Dec 2016, 13:03

I'm not deleting your second accounts. I'm just linking your second device to your first account.
Everytime you make a change on one of your devices, it gets saved on server with a 30 seconds cooldown mechanism. It means you have to be connected (with a stable connection) for the saving to actually occur.
When you go from one device to another and get a sync conflict (should happen almost everytime), select sever data.

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#17 » 29 Dec 2016, 14:41

This is the best thing, I should have done this long before.
Deployed 3 games while commuting, deployed 10 more now during lunch and when I'm back home I can work on the same AIs without the latency of the AI editor in mobiles.

User avatar
Crashdown
Script
Script
Posts: 12

Re: Cross-device sync temporary solution

Post#18 » 29 Dec 2016, 16:47

OK, if it's possible, I would like to try it.
My main account is Crashdown ( >2k games played)
Second account(just created, 2 games played) is Canderus
An open mind is like a fortress with its gates unbarred and unguarded.

User avatar
NullPointer
Autonomous Entity
Autonomous Entity
Posts: 539

Re: Cross-device sync temporary solution

Post#19 » 29 Dec 2016, 19:36

Syncing back to my PC worked fine :D

User avatar
GFX47
Dev Team
Posts: 2001

Re: Cross-device sync temporary solution

Post#20 » 30 Dec 2016, 11:04

Crashdown wrote:OK, if it's possible, I would like to try it.
My main account is Crashdown ( >2k games played)
Second account(just created, 2 games played) is Canderus


Done!

Return to “General Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests