playMaker

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

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string Bug?
« Reply #15 on: October 14, 2013, 02: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, 02:24:12 AM by aLDime »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14213
  • Official Playmaker Support
    • View Profile
Re: Convert Seconds to string[SOLVED]
« Reply #16 on: October 14, 2013, 03: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
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #17 on: October 14, 2013, 04: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
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #18 on: October 19, 2013, 09:58:22 PM »
Made more than 100 tests, everything works fine! Min, sec, ms, rest I don't need ;) Thank you so much, Jean!
« Last Edit: October 19, 2013, 10:03:33 PM by aLDime »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14213
  • Official Playmaker Support
    • View Profile
Re: Convert Seconds to string[SOLVED]
« Reply #19 on: October 20, 2013, 11:52:32 PM »
Good. Thanks for the update!

bye,

 Jean

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string[SOLVED]
« Reply #20 on: November 12, 2013, 04: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, 05:00:58 AM by aLDime »

aLDime

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14213
  • Official Playmaker Support
    • View Profile
Re: Convert Seconds to string[SOLVED]
« Reply #22 on: November 12, 2013, 06: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
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string
« Reply #23 on: November 12, 2013, 06: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 12, 2013, 10:20:41 PM by aLDime »

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
    • http://aldimegame.com/
Re: Convert Seconds to string
« Reply #24 on: November 12, 2013, 07: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 12, 2013, 10:20:52 PM by aLDime »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Convert Seconds to string[SOLVED]
« Reply #25 on: November 13, 2013, 10:00:46 PM »
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: 14213
  • Official Playmaker Support
    • View Profile
Re: Convert Seconds to string
« Reply #26 on: November 13, 2013, 10:13:43 PM »
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: 14213
  • Official Playmaker Support
    • View Profile
Re: Convert Seconds to string[SOLVED]
« Reply #27 on: November 13, 2013, 10:15:27 PM »
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: 686
    • View Profile
    • Assets
Re: Convert Seconds to string[SOLVED]
« Reply #28 on: November 13, 2013, 10:17:42 PM »
Thx, that makes perfect sense. :)

jeanfabre

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

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

 Bye,

 Jean