Set Rule Based on iPad 2 vs iPad 3 @2x Images NEED HELP

ellfireellfire Member Posts: 187
edited June 2012 in Working with GS (Mac)
Hey gang. So now that 0.9.94 can spit out retina ADHOC builds, I finally was able to test a theory that was thought up when I posed this same question early in the forums. @MarkOnTheIron came up with a theory that I could create a rule within an actor that has an image that would set a game attribute based on whether the actor's image contained "@2x". This would identify an iPad 3 vs and iPad 2.

I tested it in the GS Creator buy temporarily substituting an image that had @2x in the file name. Worked great. Swapped back in the original image that didn't have "@2x" (so that GS would add it during the publish). Tested an ADHOC build and it no longer worked.

Does anyone out there have any idea why this is? In ADHOC builds, does GS not change the name of the image within the actor itself, but rather, create some global rule outside of what we can access that reroutes images to the retina versions outside the actor?

Any help is appreciated as this idea of choosing between iPad 2 and iPad 3 has become mission critical to my game. Thanks!

Best Answers

  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    it doesn't work because GS does all the Retina @2x stuff on the backend behind the scenes. You simply cannot setup to have your game using @2x in your condition for anything. if it worked like that then GS would would be broken on a retina device that called for a change image that didn't have @2x in the name.
  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    to be honest why are you trying to differentiate be tween them. theres no need that I can see. they are both capable of running the same apps just one has high res art.

Answers

  • ellfireellfire Member Posts: 187
    I should also add that I tried @tshirtbooth 's test of generating numbers/actors. This won't work with an iPad 2 vs iPad 3 because they have the same CPU so the test values are too close to test.
  • ellfireellfire Member Posts: 187
    @tenrdrmer Bummer. Any ideas than how I could test iPad 2 vs 3?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    No idea have you actually tried TSB's thing? or are you just assuming it wouldn't work?
  • ellfireellfire Member Posts: 187
    @tenrdrmer I created a version of @tshirtbooth 's version that created an actor and for a set amount of time added +1 to its value. The values that came back were too close to use. Ex. Only had a 1-5 number spread.
  • ellfireellfire Member Posts: 187
    edited June 2012
    @tendrmer I have an animated intro that has a series of images that turn on and off in sync with the soundtrack. It works fine on iPad 1 and 2. It wouldn't work on iPad 3 once Retina images were introduced. So I created a 2nd version of the intro that is retimed and works on iPad 3. So I'm kinda hosed unless I can find a way to have the came know what hardware it is playing on and choose the appropriate intro.

    I guess I can always create a one time pop up that asks, but that is pretty lame.
Sign In or Register to comment.