playMaker

Author Topic: Convert Seconds to string[SOLVED]  (Read 74932 times)

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string Bug?
« Reply #15 on: October 14, 2013, 05:22:27 AM »
Hi,
Please see the screenshots, it's a bug or am I doing something wrong?)
If Float is 2.099 **** time is 00:02:99, next step (on paused)
Float is equal 2.103, ***, time returned 00:02:10, but should be 00:03:10
Of course this fatal error for the races ...
Quite urgently need your help!
« Last Edit: October 14, 2013, 05:24:12 AM by aLDime »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string[SOLVED]
« Reply #16 on: October 14, 2013, 06:18:57 AM »
Hi,

 Nice catch! Quite tricky actually... Can you redownload the action and see if it works. I tested with your numbers and it works.

bye,

 Jean

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #17 on: October 14, 2013, 07:58:06 AM »
Hi,
I thought about this problem for over a week, and could not understand what was happening, all day yesterday I caught this bug :-/
I did some quick tests, so far so good and I not catched this bug again, I'll be more tested over 2-3 days, and I'll write result here. Thanks for the quick response and help!

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #18 on: October 20, 2013, 12:58:22 AM »
Made more than 100 tests, everything works fine! Min, sec, ms, rest I don't need ;) Thank you so much, Jean!
« Last Edit: October 20, 2013, 01:03:33 AM by aLDime »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string[SOLVED]
« Reply #19 on: October 21, 2013, 02:52:32 AM »
Good. Thanks for the update!

bye,

 Jean

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #20 on: November 12, 2013, 06:57:17 AM »
Hi,
have spikes in debugging, the frequency I can not determine, but in ~1.5 minutes 4-5 to 20-28ms spikes
« Last Edit: November 12, 2013, 07:00:58 AM by aLDime »

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #21 on: November 12, 2013, 07:57:29 AM »
test in empty project spike is less
~ 4-5ms
but it's still very high ...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string[SOLVED]
« Reply #22 on: November 12, 2013, 08:09:21 AM »
Hi,

 you are fine, you are running at >100FPS! Profiling only become relevant if you go below 60FPS.

 bye,

 Jean

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string
« Reply #23 on: November 12, 2013, 08:16:21 AM »
hmm, I have friezes in game for that reason, if I disable timer, friezes no ... you think this is normal?
« Last Edit: November 13, 2013, 12:20:41 AM by aLDime »

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • http://aldimegame.com/
Re: Convert Seconds to string
« Reply #24 on: November 12, 2013, 09:53:56 AM »
All that more than 3-4 ms on game - is not clean code! and I have a spike in the game reaches more than 20ms - this less than 60FPS
« Last Edit: November 13, 2013, 12:20:52 AM by aLDime »

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Convert Seconds to string[SOLVED]
« Reply #25 on: November 14, 2013, 12:00:46 AM »
Hey Jean,

How would you reverse this action so it would count down from a value ie 10 mins/ 600 secs?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string
« Reply #26 on: November 14, 2013, 12:13:43 AM »
Hi,

All that more than 3-4 ms on game - is not clean code! and I have a spike in the game reaches more than 20ms - this less than 60FPS

Yep, something is fishy here indeed. I have added this case to my todos, and I'll run some stress test to see where the problems lies. Can you come back to me next week if you haven't heard back from me?

 
Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string[SOLVED]
« Reply #27 on: November 14, 2013, 12:15:27 AM »
Hi,

How would you reverse this action so it would count down from a value ie 10 mins/ 600 secs?

This action only converts what you give it, so if you want to count down you simply have the float substracted instead of added and passe that to this action, unless I misunderstand what you are trying to achieve.

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Convert Seconds to string[SOLVED]
« Reply #28 on: November 14, 2013, 12:17:42 AM »
Thx, that makes perfect sense. :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert Seconds to string[SOLVED]
« Reply #29 on: July 16, 2014, 08:18:35 AM »
Hi,

 You can now find this action on the Ecosystem for convenience.

 Bye,

 Jean