NO SLEEPING!

PhoticsPhotics Member Posts: 4,172
edited November -1 in Working with GS (Mac)
I'm thinking the GameSalad Viewer should stop the iOS testing device from going to sleep.

Basically, the testing of BOT takes so long that my iOS device falls asleep before the download/asset compression is finished. When I wake up my phone, the game doesn't run.
«1

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I agree it's annoying even on projects that are not huge.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • mangaroomangaroo Member Posts: 419
    disable auto lock screen !
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    mangaroo said:
    disable auto lock screen !

    Shouldn't have to

    GS just needs to add it to the viewer code. GS apps never go to sleep so why can they not add that to the viewer.
  • mangaroomangaroo Member Posts: 419
    hmm tbh id much prefer a recording of max, min and average fps..auto lock i can deal with - especially if u have sbsettings it is really easy to do. It's never i good idea to stop it from sleeping by default...people will leave it on by mistake to find their iphones out of battery without realising etc but it makes sense to add an option for it
  • DreamLabDreamLab Member Posts: 2,127
    I thought as long as you keep the screen active (touching it) it won't go to sleep? like just tapping it while it loads.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    DreamLab said:
    I thought as long as you keep the screen active (touching it) it won't go to sleep? like just tapping it while it loads.

    Correct. but that becomes a big time waster when you have a large project file and have to site and tap the screen for 10-20 min's waiting for it to load. thats time that could be spent elsewhere.

    Honestly you would think there is a check box the could be set in the info.plist file but I don't know just a guess.

    Photic's your an xcoder see if you can find a way to alter the viewer project to include that.
  • DreamLabDreamLab Member Posts: 2,127
    tenrdrmer said:
    Correct. but that becomes a big time waster when you have a large project file and have to site and tap the screen for 10-20 min's waiting for it to load. thats time that could be spent elsewhere.

    Its better than not testing it at all imo.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    DreamLab said:
    Its better than not testing it at all imo.

    No ones said it's not. thats why it needs to be fixed. currently because we have to test you are forced to waste time baby sitting your phone while it loads instead of being productive else where.
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    It's just one small line in the info.plist file mate, really easy for GS to impliment.

    Ace
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    mynameisace said:
    It's just one small line in the info.plist file mate, really easy for GS to impliment.

    Ace

    Whats the setting. I looked in there but didn't see anything that looked like it would change it.
  • PhoticsPhotics Member Posts: 4,172
    tenrdrmer said:
    your an xcoder see if you can find a way to alter the viewer project to include that.

    That's right! I use xcode... and this is something I can change.

    I'm testing it now.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Let us know what you find Photics.
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    I believe it's something like this:

    system.setIdleTimer( false )

    Ace
  • PhoticsPhotics Member Posts: 4,172
    tenrdrmer said:
    Let us know what you find Photics.

    It didn't work. My iPhone went to sleep... still working on it :)
    mynameisace said:
    system.setIdleTimer( false )

    That's Lua code for Corona.

    I'm not seeing an info.plist setting.
    I tried editing the main.m file too, but that didn't work.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I found this in UIAppplication.h but its different from what that link says to do

    idleTimerDisabled:1;

    I dont know what the numbers here represent.
  • PhoticsPhotics Member Posts: 4,172
    I got it to work.

    I'm not sure if I'm supposed to be posting the code though. :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well there's one way to find out.
  • PhoticsPhotics Member Posts: 4,172
    I emailed them...
    Hi GameSalad,

    I modified the GameSalad Viewer to prevent it from sleeping. Is it OK to share this code with the rest of the community?

    Michael Garofalo
    http://photics.com
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    well thats mighty nice of you to not share the information with the rest of us Photics. You wouldn't be where you are if I hadn't reminded you that you could edit it.

    Thanks
  • PhoticsPhotics Member Posts: 4,172
    Don't get grumpy. Let's see what they say :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    just post it. If they don't want it out there they will take it down. It's stupid to have a discussion about it on the forum and then say well I got it sucks for you guys you have to wait until I get a response from GS which in My experience will take forever.
  • PhoticsPhotics Member Posts: 4,172
    tenrdrmer said:
    just post it. If they don't want it out there they will take it down. It's stupid to have a discussion about it on the forum and then say well I got it sucks for you guys you have to wait until I get a response from GS which in My experience will take forever.

    That's not my experience. Look at how fast I got a reply...
    Thank you for contacting GameSalad!

    We have received your message. Please expect to hear from someone regarding your issue within two business days.

    Thank you for contacting us, and thank you for using GameSalad!

    Ha ha! :-D
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Yup, I am with tenrdrmer a million percent on this one, I'm not that bothered about using it although I might in the future but I really think you should submit the code.

    Ace
  • PhoticsPhotics Member Posts: 4,172
    Patience! :)

    GameSalad might actually include it in the viewer, so that everyone can benefit.

    I'm not worried. I'm going to go get a sandwich.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Glad we could help you get something the rest of us could use Photics.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Photics said:
    Patience! :)

    GameSalad might actually include it in the viewer, so that everyone can benefit.

    I'm not worried. I'm going to go get a sandwich.

    So next month (if things are on track) we all can have it. just post it. and quit being an information hog.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    this thread makes me lol
  • quantumsheepquantumsheep Member Posts: 8,188
    JohnPapiomitis said:
    this thread makes me lol

    +1337 :D
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    This should work, found it online, have not tried it yet. There is no reason to withhold this type of information. We discussed changes to the viewer way back when multitasking was enabled and the viewer never shut down.

    I cut and pasted this directly:

    Simply add the following line in your AppDelegate source
    `[UIApplication sharedApplication].idleTimerDisabled=YES;`

    I've added this line in the didFinishLaunchingWithOptions method
    `
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    // Override point for customization after application launch.
    // Add the main view controller's view to the window and display.
    self.window.rootViewController = self.mainViewController;
    [self.window makeKeyAndVisible];
    [UIApplication sharedApplication].idleTimerDisabled=YES;
    return YES;
    }
    `
Sign In or Register to comment.