Universal Land Sliders (by Prettygreat) [TouchArcade Game of the Year 2015]

Discussion in 'iPhone and iPad Games' started by killercow, Sep 23, 2015.

  1. Nathan_l1

    Nathan_l1 Well-Known Member

    Oct 7, 2015
    123
    0
    0
    Now to figure out what this means
     
  2. shelagh

    shelagh Well-Known Member

    Oct 5, 2015
    93
    0
    0
    Yeah, I think we'll need someone familiar with unity for this? The only things I can make out are about Unity, iPhone, video, Save, etc. and the numbers of the lines.
     
  3. smh

    smh Active Member

    Oct 3, 2015
    43
    0
    0
    It confirms what we thought, it is a code from the game.
    The "if" line (the first one, that is red) continues to make me think that if we do a specific action in the game, it may unlock something.
    All i can read is "if UNT.... _IPHONE".
    But i don't know nothing about coding.
     
  4. smh

    smh Active Member

    Oct 3, 2015
    43
    0
    0
    Oh ok thanks !
    I'm disappointed haha
    Do you understand more ?
     
  5. gsergio

    gsergio Member

    Sep 29, 2015
    21
    0
    0
    The red lines look like a compiler directive. Basically, that just means that the code between them will only be compiled/run if the condition is satisfied. In this case, it looks like the condition is that the code is compiled for an iOS device (as opposed to the simulator or some other platform), and the code within the directive has to do with perhaps stopping the music if it's playing. That makes sense, as that sort of thing can be platform-dependent, and you'd want to stop the music if you're launching a URL:

    The following lines appear to have to do with launching a "special URL" or "backup URL" on condition of a certain action happening enough times. Maybe if we could make out what the count is referring to, it would indicate what needs to be done in the app. The counter looks to be something like "left<something>count" where the "something" is deliberately hidden so we can't make it out. Best I can tell, it's "App", but I can't think of that would mean within the context of a game.

    I think we just need to wait for the next image and then it'll be clear.
     
  6. flenser

    flenser Member

    Feb 27, 2013
    16
    0
    1
    I tried to get rid of the pattern, I couldn't get all of it but the middle bit might be a bit more clear now.
    Still not a lot to make out, but on lines 588 and 592 I think I can make out OpenURL... Maybe there is another condition in the game which will lead us to a new URL?

    [​IMG]
     
  7. smh

    smh Active Member

    Oct 3, 2015
    43
    0
    0
    Great !
    But do you really think they're just gonna give it to us that easily ? Why would they be sending this image as a puzzle if it's not for us to solve it by our own ? Maybe it's torture and they just make fun of us hahaha

    By the way, thanx to Muscat for the 1.1 update teaser ! Can't wait !
     
  8. gsergio

    gsergio Member

    Sep 29, 2015
    21
    0
    0
    I could go through and write out all the code that's legible, and provide reasoning behind what's not legible/visible, but just to provide my opinion on guidance for where we should probably focus the attention:

    The first section (lines 567-581) appear to be the body of a function. It includes platform-specific code between the red lines that can be ignored. 577-581 is where the meat is. It looks to read something like:

    577 if (Game.Instance.UIController != null && Game.Instance.IsLoaded = <cut off>
    578 <something?>Game.Instance.UIController.<something>;
    579 <blank?>
    580 leftAppCount++;
    581 }

    The next section says to save the game state when the application quits.

    The last section says to launch a URL on condition of "leftappcount".

    I think it's clear that line 578 indicates what's happening in the game every time the function is called, or it's checking whether that thing is happening, and when that happens the counter is being incremented. Just need to figure out what that "something" is. Looks like it reads "ShowP..." or "ShowR...". If it ends with a ");" then it could be part of the condition from line 577. If not, then it's telling the UIController to "show something".

    Anybody agree/disagree or want to further the theory?
     
  9. Nathan_l1

    Nathan_l1 Well-Known Member

    Oct 7, 2015
    123
    0
    0
    So... if we quit the game a certain amount of times a URL will launch?
     
  10. Ivica

    Ivica Well-Known Member

    Oct 8, 2015
    267
    12
    18
    And what about the 2nd picture, there must be a connection
     
  11. gsergio

    gsergio Member

    Sep 29, 2015
    21
    0
    0
    Actually, I think that the function in which the counter is being incremented has to do with the music setting. It gets called when someone hits that checkbox, which tells the music to start/stop playing, and then the count goes up. I also now think that line 578 might read "ShowPause" which could mean that you need to toggle the music setting from the Pause screen, rather than from Settings. How many times is anybody's guess, as is whether it's an exact number of times or some threshold. After that, the URL handler needs to be invoked. There's a URL launch from the Privacy Policy in Settings. Anywhere else?
     
  12. Nathan_l1

    Nathan_l1 Well-Known Member

    Oct 7, 2015
    123
    0
    0
    In credits, all of the devs twitter links are in there
     
  13. PrimalAuora

    PrimalAuora Member

    Oct 6, 2015
    18
    0
    0
    Hello people,

    I was just reading the comments and trying to press music so many times when I realised that on the screen there is a blank spot that is in the Setting spot, almost as if there is an extra button space. What if this is where we need to click after the code is fulfilled?
     
  14. Unseen Studios

    Unseen Studios Well-Known Member

    Mar 23, 2011
    121
    0
    0
    UK
    #514 Unseen Studios, Oct 9, 2015
    Last edited: Oct 9, 2015
    I have been translating the code to something readable. What I have so far is hosted here:

    Note that this is my translated code and may not be entirely accurate, I will work on translating the rest shortly and putting it up there.

    https://gist.github.com/Varedis/7ba193abd887a9939583

    This code appears to just be the ways that the user can leave the application.

    The leftAppCount (the variable doesn't actually appear to be called just leftAppCount but has a prefix) is just recording how many times the user has left the application.

    There doesn't appear to be anything special or hidden in the code to me.
     
  15. Drey

    Drey New Member

    Oct 9, 2015
    1
    0
    0
    What is this?

    Just come across this in game and was wondering what it was.
     

    Attached Files:

  16. Nathan_l1

    Nathan_l1 Well-Known Member

    Oct 7, 2015
    123
    0
    0
    It just takes you to a level full of gold coins and monsters
     
  17. gsergio

    gsergio Member

    Sep 29, 2015
    21
    0
    0
    Reconsidering some of my previous assumptions...

    The first block of code could have nothing to do with manipulating the sound settings at all. What if, instead, this is the OnApplicationPause routine, and as part of suspending the app (from hitting the physical Home button, say) that "Music" related code is just fading out the music or otherwise ending it cleanly? Line 572 reads:

    Game.Instance.Player.<?????>=<??>_IsMusicPlaying<cut off>

    This could also point to the routing being OnApplicationFocus, which runs when the app pauses or resumes, and that line could be telling the in-game music to play conditionally on whether the device is already (not) playing music. That is, no in-game music if the player is listening to their own music.

    In either case, I'm now thinking that "leftAppCount" doesn't have to do with how many of a particular event are "left" to be triggered, but rather how many times the user has left the app. That could be counted whenever the user triggers OnApplicationPause/Focus. In either case, it also looks like the last routine tries to preserve the leftAppCount (not count as leaving the app) whenever the OpenSpecialUrlInternal routine is called, because opening a URL will trigger the "leaving the app" event.

    I think the remaining question is whether lines 577/578 are a wrapped line condition for incrementing that counter, or if 577 is the condition on which 578 runs, and the counter line is separate from that. It's hard to tell with the indents and line spacing, but for example, it could either be:

    if (Game.Instance.UIController != null && Game.Instance.IsLoaded = <truncated> true)
    {Game.Instance.UIController.ShowPause();}

    OR

    if (Game.Instance.UIController != null && Game.Instance.IsLoaded = <wrapped>
    Game.Instance.UIController.<something>)
    {leftAppCount++;}

    In either case, the formatting of the brackets is not uniform with what's seen elsewhere ( { and } on separate lines) so I think we need to assume that standard is broken. My vote would be the first option, because in fact the pause screen is shown after you resume a game-in-session.

    Also, it could be the indent on "leftAppCount" on line 580 is leading characters on the variable name, which are also not visible in the OpenSpecialUrlInternal references (re/setting the oldLeftAppCount with this value).

    That's all I've got. Short of waiting for the next code image to fill in the blanks, or the "map" image giving more hints, I think the next step would be to just crack open the IPA and disassemble the code to see if this matches up and find the missing pieces that way.
     
  18. Unseen Studios

    Unseen Studios Well-Known Member

    Mar 23, 2011
    121
    0
    0
    UK
    If this puzzle has done anything, it has made me want to refactor Prettygreat's code...
     
  19. PrimalAuora

    PrimalAuora Member

    Oct 6, 2015
    18
    0
    0
    Been adding more pages for Land-sliders.wikia.com . Still need a lot more help to fully make it a functioning wiki with great people on there!
     
  20. autofire

    autofire Active Member

    Aug 16, 2013
    37
    0
    6
    Good skills

    Just wanted to say well done to everyone for getting us this far. This adventure has been fascinating, so exciting reading the latest updates and discoveries. It's reminding me a bit of that beautiful construction that flowed from Speilbergs AI poster - remember Jeanine Salla? ;)

    I'm afraid it's moved a bit beyond my depth with all the code stuff, but I have much faith in you brainboxes to crack that nut too. The most exciting aspect for me at the moment is that image which looks like it could be a map - will this eventually end in a race to some party on a weird island in the South Pacific?

    :p
     

Share This Page