playMaker

Author Topic: System Date Time  (Read 2617 times)

Schleckenmiester

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
    • schleck.dev
System Date Time
« on: September 18, 2019, 12:19:39 AM »
Hey,

I'm making a game on android and I'm making a sorta Pet Hotel tycoon, but the Get System Date Time action is crucial and it doesn't seem to work on mobile. It works on PC just fine but when I open my app on my phone nothing's going through. Is there a fix for this?
Check out my blog, I'm making a game with Playmaker! https://schleck.dev

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 661
    • View Profile
Re: System Date Time
« Reply #1 on: September 18, 2019, 12:35:40 PM »
It's possible this action is only meant to work on a computer.
You may need to access the native functions of the Android phones and tablets and this might require acquiring a plugin or adding a cs script somewhere in your project and call its method.
Also, if getting time is important for your game as to deliver daily rewards, you absolutely need to use an external server to ping otherwise the user can trick the game.
Now this sounds complex but there are many solutions out there that actually provide easy ways to buy an almost already set up game server space with very setup required. You'll have to subscribe to a monthly payment though.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15494
  • Official Playmaker Support
    • View Profile
Re: System Date Time
« Reply #2 on: September 20, 2019, 06:12:38 AM »
Hi,

 system date time works on mobile.

 can you make a simple scene to output the raw result of that action? what do you get?

Bye,

 Jean

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 661
    • View Profile
Re: System Date Time
« Reply #3 on: September 21, 2019, 06:22:20 AM »
Maybe the problem he has in one phone in particular?

spawnpoint

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: System Date Time
« Reply #4 on: July 27, 2021, 01:34:45 AM »
Well I tried my hands on get system date it does work but somehow when I am trying to save current date as string & trying to compare it with tomorrows date it won't work using string compare ?

Can anyone put any light on it ?

CuriousRodeo

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: System Date Time
« Reply #5 on: August 10, 2021, 09:10:10 AM »
I do this, but I store and compare as a float or int.

spawnpoint

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: System Date Time
« Reply #6 on: August 31, 2021, 08:42:43 AM »
Sorry for late reply,

But by default the "Get Time Span Between Date" store value in float format but comparing float format working on desktop but not on mobile, I have even tried on different mobiles but still no result.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6379
    • View Profile
    • jinxtergames
Re: System Date Time
« Reply #7 on: September 01, 2021, 03:38:16 PM »
Hi.
Maybe the way you get the 'date' value?
i have used "Get Time Span Between Date" on some of my old mobile projects and it was working then.
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!