Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: What exactly would happen if...

  1. #11
    Centennial Club
    Join Date
    Oct 2014
    Location
    Inside my townhall
    Posts
    100
    Quote Originally Posted by Const View Post
    Are you ananth of the fog clan?
    No...I am not from fog clan

  2. #12
    Millennial Club x0pht's Avatar
    Join Date
    Dec 2014
    Posts
    1,061
    Quote Originally Posted by Aananth View Post
    When you try a new Google account, your account won't just connect. It will remain disconnected.
    Sources: Tried it when I was using android
    Awesome. Thank you for the reply. So I guess disconnecting the game from a google account won't just make it "forget" which account it was originally connected to. haha.

  3. #13
    Millennial Club x0pht's Avatar
    Join Date
    Dec 2014
    Posts
    1,061
    Quote Originally Posted by Const View Post
    Yea it will be synced with your Google account.
    since you mentioned it, now i recall that I noticed that my game was disconnected from google account a couple of times before, but i never lost any bit of progress.

    Thanks for the answers and replies, guys.

  4. #14
    Forum Elder Yoyobuae's Avatar
    Join Date
    Dec 2014
    Posts
    2,484
    Quote Originally Posted by x0pht View Post
    Awesome. Thank you for the reply. So I guess disconnecting the game from a google account won't just make it "forget" which account it was originally connected to. haha.
    Which Google account a village is linked to is stored on the server. Once set it's impossible for the player to disconnect or change that link.
    Ignore list: rydogg20 bouges jarvee nerfedname Rampantarmadillo JohnSnow83 Vikky CriPpLeR RakeNoris ClashRoyaleTeam AsyanHari
    Quote Originally Posted by TooBizar4u View Post
    Only troop you need is the goblin. The rest are just luxury troops.

  5. #15
    Millennial Club x0pht's Avatar
    Join Date
    Dec 2014
    Posts
    1,061
    Quote Originally Posted by Yoyobuae View Post
    Which Google account a village is linked to is stored on the server. Once set it's impossible for the player to disconnect or change that link.
    yea i know, but initially i was wondering if you disconnect a village and try reconnecting it to a new google account, will it get you two identical bases on two separate google accounts or simply give you an error.

    Now like Aananth said, if it stays disconnected when you do that, then most likely there's also a file somewhere on the local device that has the account info saved, either that or the disconnect button does not actually work anymore as soon as the village is attached.

  6. #16
    Forum Elder Yoyobuae's Avatar
    Join Date
    Dec 2014
    Posts
    2,484
    Quote Originally Posted by x0pht View Post
    yea i know, but initially i was wondering if you disconnect a village and try reconnecting it to a new google account, will it get you two identical bases on two separate google accounts or simply give you an error.

    Now like Aananth said, if it stays disconnected when you do that, then most likely there's also a file somewhere on the local device that has the account info saved, either that or the disconnect button does not actually work anymore as soon as the village is attached.
    Getting a bit more technical, in server there is some kind of database holding all the villages and info related to them.

    One way to think about the database is as a table. So a village would look something like:
    Name Level Clan GameCenter ID Google+
    AwesomeVillage 300 AwesomeClan mygamecenterid myemail@gmail.com

    For each village there only one cell for Google+. Thus it would be impossible for the database to even hold two Google+ accounts for the same village (at least without modifying the database layout).

    What happens in client is irrelevant. The server is the one calling the shots (since the client could be potentially "modified").

    Now it is true that the client holds something (besides GameCenter ID or Google+ account) locally which identifies the currently loaded village, and using that identification it can ask the server for the info about the village (this way all devices with same village stay synched). That identification would also need to be stored in database as well (an extra column in the above table).
    Last edited by Yoyobuae; September 9th, 2015 at 04:23 PM.
    Ignore list: rydogg20 bouges jarvee nerfedname Rampantarmadillo JohnSnow83 Vikky CriPpLeR RakeNoris ClashRoyaleTeam AsyanHari
    Quote Originally Posted by TooBizar4u View Post
    Only troop you need is the goblin. The rest are just luxury troops.

  7. #17
    Millennial Club x0pht's Avatar
    Join Date
    Dec 2014
    Posts
    1,061
    Quote Originally Posted by Yoyobuae View Post
    Getting a bit more technical, in server there is some kind of database holding all the villages and info related to them.

    One way to think about the database is as a table. So a village would look something like:
    Name Level Clan GameCenter ID Google+
    AwesomeVillage 300 AwesomeClan mygamecenterid myemail@gmail.com

    For each village there only one cell for Google+. Thus it would be impossible for the database to even hold two Google+ accounts for the same village (at least without modifying the database layout).

    What happens in client is irrelevant. The server is the one calling the shots (since the client could be potentially "modified").

    Now it is true that the client holds something (besides GameCenter ID or Google+ account) locally which identifies the currently loaded village, and using that identification it can ask the server for the info about the village (this way all devices with same village stay synched). That identification would also need to be stored in database as well (an extra column in the above table).
    lol yes, being in IT for nearly 10 years does allow me to learn a thing or two about the relation between servers and clients.

    simply put. what I wanted to know was, whether or not there's a way for the server to tell if a disconnected local village has been attached to any G+ or GC account when the village requests to connect to a new account. If the server is able to, that means there has to be a unique ID# for each village created. OR, there's a file on the local device containing the account info - so the local game refuses to connect to a new account, which is obviously not secure as it can be easily altered. therefore i doubt it's the latter case.

    Now if there's a unique village ID, when is the ID generated? I'd assume it's auto-generated when the village is created. So when you connect a village to a new google account, the game sends the unique village ID to the server, server searches for the ID through the database, if there's a match, the server will reject the connection. if it returns false, it will attach the village to the account, assuming the account is new and clean.

    EDIT: now my question is... is the ID encrypted?
    Last edited by x0pht; September 9th, 2015 at 04:59 PM.

  8. #18
    Forum Elder Yoyobuae's Avatar
    Join Date
    Dec 2014
    Posts
    2,484
    Quote Originally Posted by x0pht View Post
    EDIT: now my question is... is the ID encrypted?
    Well, if the ID generation system was somehow broken then the attackers could take control of random accounts en masse. Simply catastrophic.

    So I guess (hope) SC took the time to implement it properly.
    Ignore list: rydogg20 bouges jarvee nerfedname Rampantarmadillo JohnSnow83 Vikky CriPpLeR RakeNoris ClashRoyaleTeam AsyanHari
    Quote Originally Posted by TooBizar4u View Post
    Only troop you need is the goblin. The rest are just luxury troops.

  9. #19
    Millennial Club x0pht's Avatar
    Join Date
    Dec 2014
    Posts
    1,061
    Quote Originally Posted by Yoyobuae View Post
    Well, if the ID generation system was somehow broken then the attackers could take control of random accounts en masse. Simply catastrophic.

    So I guess (hope) SC took the time to implement it properly.
    lol yea but actually if you think about it... all it could happen would be that the users would be able to start a mini without having to level it up.

    The ID is generated on the client side, so whatever the algorithm is, it involves only the info on the client. e.g. uses MAC addresses on the wireless adapters as a part of the calculation. (EDIT: well it could get info from somewhere else instead of just the local device, but that would defeat the purpose of generating a unique ID). so technically, h@ckers wouldn't be able to re-generate the same ID without knowing certain specifics about the devices on which the village was created, even if they knew the algorithm.

    Now let's say, they did get the unique ID, for the sake of argument. They create a lvl 1 rookie village, alter the ID with an existing one, and they will still fail to attach it to any account.
    Last edited by x0pht; September 9th, 2015 at 05:26 PM.

  10. #20

    Join Date
    Dec 2014
    Posts
    19,338
    Quote Originally Posted by x0pht View Post
    lol yea but actually if you think about it... all it could happen would be that the users would be able to start a mini without having to level it up.

    The ID is generated on the client side, so whatever the algorithm is, it involves only the info on the client.
    I would be very surprised if that were the case.

    The ID is almost certainly generated on the server side.

    Whenever you start a "clean" Clash of Clans on your device, it will request an ID from the server, almost certainly at the point where it asks for your chief name. Prior to that, your new village will only exist on your device, and would restart from scratch if you left the game and restarted.

    BTW, I just started my 2nd mini last night

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •