Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ResetTimer() issue on Android [AGK 2.0.13]

Author
Message
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 11th May 2015 03:04 Edited at: 13th May 2015 04:54
The ResetTimer() command seems to be a bit broken on Android. When using it i've seen the timer start anywhere from 0.0~ to 0.9~. It works great on Windows, it seems to reset to "0.0" every time.

I have created a small AppGameKit app for testing:
http://www.snieb.com/ResetTimer_Test.zip
Made in AppGameKit 2.0.13.

I am running this on:
Galaxy Tab 2 7inch (gt-p3113)
Android KitKat 4.4.4 (Slimkat Rom)
Coilwinder
11
Years of Service
User Offline
Joined: 28th Feb 2013
Location: Norway
Posted: 12th May 2015 05:51 Edited at: 12th May 2015 05:59
Interesting. Same thing happens on my tablet (Samsung Galaxy Note 8, Android 4.2.2), whereas windows seems to start from 0.0.
I changed your test code slightly, to see the last reset time.




EDIT: I forgot to say that it starts at once, even if the newly reset timer shows e.g. 0.9 seconds etc.
Also, my tablet shows the reset time from almost 0.0 to about 1 second or thereabouts, different every time (I didn't test extensively).

Apologies for any typos and strange grammar.
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 13th May 2015 04:51 Edited at: 13th May 2015 04:52
Looks like it's reseting the number only to the left of the decimal "."

Code update shows Time of reset and value reset to.

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th May 2015 05:48
Fixed for the next version
Coilwinder
11
Years of Service
User Offline
Joined: 28th Feb 2013
Location: Norway
Posted: 13th May 2015 22:53
Something else I just noticed regarding timers:

GetSeconds() function doesn't seem to reset itself between broadcasting apps to the AGK2 player (Android). In order to do that I have to close and open it again, then re-broadcast quickly-ish before my set time runs out to test it.

It might be other timer functions are affected as well, but I haven't tested for that.

Apologies for any typos and strange grammar.
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 14th May 2015 17:48 Edited at: 14th May 2015 20:45
Very cool, looking forward to the next version.

AGK: 2.0.13 Development System: Windows 7 Pro 64-bit
Android Device: Samsung Galaxy Tab 2 7inch (gt-p3113) Android OS: KitKat 4.4.4 (Slimkat Rom)

Login to post a reply

Server time is: 2024-11-25 21:39:31
Your offset time is: 2024-11-25 21:39:31