GGLibs - Modules to speed up development

@Glitch Games thanks for all the great library. Just having some problem getting GGData to work. I enable integrity but then I modify the data then verify but it doesn’t catch the modify data. Not sure what I’m doing wrong. 

Just merged a pull request on github regarding an issue with verifyIntegrity function, could you grab the latest code and try it again?

Thank you for the quick reply. I just tried the new code and it does the same thing. Maybe I’m doing something wrong?

Here is what I do:

On appStart or appResume system event

local box = GGData:new(“data”);

    local crypto = require( “crypto” )

    box:enableIntegrityControl( crypto.sha512, “somekeys” );

    box:updateAllIntegrityHashes();

    box:setSync(true);

    

    local corruptEntries = box:verifyIntegrity();

    print("Corrupted: ");

    print(corruptEntries );

    box:save();

Then when update values I even added an extra verify:

local box = GGData:new(“data”);

box:enableIntegrityControl( crypto.sha512, “somekeys” ); --same key as above

box:updateAllIntegrityHashes();

local corruptEntries = box:verifyIntegrity();

print(corruptEntries );

box:save();

    

box:set(key, value);

box:save();

I test by first running the app, then suspend it. Go into the data.box file and change score and stuff. Then went back to the app. I expected GGData to catch those changes and remove or nil out those values. I’m pretty new to Corona so any pointer or help on using GGData properly would be great. I love your GG libs by the way.

Thanks

Try quitting the simulator fully rather than suspending it, then changing the values, then loading the app back up again.

I did try that and even on the device too but the same thing :(. Thanks so much for your help.

Could you make a simple demo showing the issue and email it to graham@glitchgames.co.uk - will look at it as soon as I can.

@GG - Hey guys, I’ve been using your GGFont for a while now to make my life easier.  But, I just noticed today, that although it works find in the corona simulator, it does not work on the devices. 

I’ve only tried it on iOS (ipad mini, and iPhone 4s) so far. 

I’m running in graphics 1.0 compatibility mode, and wondered if that had anything to do with it. 

I re-downloaded your newest version of GGFont that said it was graphics 2.0 compatible, but that didn’t help.  

BTW - I tried sending this via your website contact form, but got a email server failure error. So, trying here. 

Thanks,
Tyler
iCOOLgeeks

that is great work and for sharing it here

Hey, I’ve replied via email but just in case someone else has a similar issue I’ll repost here as well.

Basically, GGFont does work as we use it in Serenity however we’ve occasionally had the same issues you’ve got above. They’ve all been caused by either a font file that itself doesn’t work on devices for whatever reason or because we’d forgotten to include the font in the build.settings file, it’s worth checking those two things.

Thanks.  I hadn’t put my font in the build.settings file.  Will do so now.  Hopefully that was my issue.  Thanks for the response.

@Glitch Games thanks for all the great library. Just having some problem getting GGData to work. I enable integrity but then I modify the data then verify but it doesn’t catch the modify data. Not sure what I’m doing wrong. 

Just merged a pull request on github regarding an issue with verifyIntegrity function, could you grab the latest code and try it again?

Thank you for the quick reply. I just tried the new code and it does the same thing. Maybe I’m doing something wrong?

Here is what I do:

On appStart or appResume system event

local box = GGData:new(“data”);

    local crypto = require( “crypto” )

    box:enableIntegrityControl( crypto.sha512, “somekeys” );

    box:updateAllIntegrityHashes();

    box:setSync(true);

    

    local corruptEntries = box:verifyIntegrity();

    print("Corrupted: ");

    print(corruptEntries );

    box:save();

Then when update values I even added an extra verify:

local box = GGData:new(“data”);

box:enableIntegrityControl( crypto.sha512, “somekeys” ); --same key as above

box:updateAllIntegrityHashes();

local corruptEntries = box:verifyIntegrity();

print(corruptEntries );

box:save();

    

box:set(key, value);

box:save();

I test by first running the app, then suspend it. Go into the data.box file and change score and stuff. Then went back to the app. I expected GGData to catch those changes and remove or nil out those values. I’m pretty new to Corona so any pointer or help on using GGData properly would be great. I love your GG libs by the way.

Thanks

Try quitting the simulator fully rather than suspending it, then changing the values, then loading the app back up again.

I did try that and even on the device too but the same thing :(. Thanks so much for your help.

Could you make a simple demo showing the issue and email it to graham@glitchgames.co.uk - will look at it as soon as I can.

that is great work and for sharing it here

Hi everyone,

I’m having a serious problem while using the GGGameCentre library. When I try to use showLeaderboards(“com.example.leaderboard”) function, app becomes non-responsive to the touches. I can click on buttons but they won’t work as expected, they do nothing.

I’ve tested this on iOS 7.1.1 and iOS 6.1.6(not sure about the version number though) and I’m using Corona build 2014.2189.

 

It happens like this:

1- Tap Game Center in-game icon.

2- Show leaderboards/achievements.

3- Tap ‘Done’ on the Apple GameCenter UI so it’s closed down.

4- After the UI is closed, I don’t get any responses from the buttons on the same screen and it gives no errors. I just get those warnings from the Console of Xcode. 

 

<Warning>: CoreAnimation: timed out fence eee0b

<Warning>: CoreAnimation: updates deferred for too long"

 

 

*************************************

 

Also, when I try to submit a score at the end of the game, it works but when I try to submit it in another screen, it won’t. It acts the same with the showLeaderboards() bug.

 

 

I couldn’t find a way to resolve this issue and I’m trying to get the update live before we get 1’s and curses. If you can help, it would be great.

 

 

EDIT: By the way, I can unlock achievements without a problem.

 

 

Thank you,

 

Serkan

Hi everyone,

I’m having a serious problem while using the GGGameCentre library. When I try to use showLeaderboards(“com.example.leaderboard”) function, app becomes non-responsive to the touches. I can click on buttons but they won’t work as expected, they do nothing.

I’ve tested this on iOS 7.1.1 and iOS 6.1.6(not sure about the version number though) and I’m using Corona build 2014.2189.

 

It happens like this:

1- Tap Game Center in-game icon.

2- Show leaderboards/achievements.

3- Tap ‘Done’ on the Apple GameCenter UI so it’s closed down.

4- After the UI is closed, I don’t get any responses from the buttons on the same screen and it gives no errors. I just get those warnings from the Console of Xcode. 

 

<Warning>: CoreAnimation: timed out fence eee0b

<Warning>: CoreAnimation: updates deferred for too long"

 

 

*************************************

 

Also, when I try to submit a score at the end of the game, it works but when I try to submit it in another screen, it won’t. It acts the same with the showLeaderboards() bug.

 

 

I couldn’t find a way to resolve this issue and I’m trying to get the update live before we get 1’s and curses. If you can help, it would be great.

 

 

EDIT: By the way, I can unlock achievements without a problem.

 

 

Thank you,

 

Serkan