Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Daily Rewards

Discussion in 'Assets and Asset Store' started by nunesbarbosa, Feb 12, 2015.

  1. ruixient

    ruixient

    Joined:
    Jan 31, 2020
    Posts:
    3
    I am getting following errors right after import the package into my project. Any idea how to fix it?
     
  2. lorenzostudiosok

    lorenzostudiosok

    Joined:
    Feb 3, 2020
    Posts:
    30
    I have the Free version, is there the possibility of adding the Cloud Clock?
     
  3. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Hi lorenzostudiosok,
    the Cloud Clock feature is only available in the Pro version.
     
  4. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Hi ruixient,
    the image is super small. Can you send a bigger image?
     
  5. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Asta e corect! Daily Rewards folosește un ceas de rețea pentru a evita înșelarea prin schimbarea ceasului de pe dispozitiv.
     
  6. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Daily Rewards uses PlayerPrefs to check for the last time it checked. You can use a server-based variable linked to the account instead. Requires a bit of coding but it should be perfectly possible.
     
  7. Cell_Unity

    Cell_Unity

    Joined:
    Nov 13, 2018
    Posts:
    8
    Hi, there I want to skip day ..
    like reward on day 1, 2, and then 5 (skip 3 and 4 ).. how can this achieve?
     
  8. lorenzostudiosok

    lorenzostudiosok

    Joined:
    Feb 3, 2020
    Posts:
    30
    How can I make calling from a button show me the reward panel? What method do I have to call?
     
  9. nareshbishtasus

    nareshbishtasus

    Joined:
    Jun 11, 2018
    Posts:
    35
    Hi, If a click on advance one day and exit play mode next time I enter play mode I cannot claim the prize and time reset. It should be like - till I don't click the claim button, every time I open the game the daily reward can be claimed and once i claim the prize the clock reset.
     
  10. lorenzostudiosok

    lorenzostudiosok

    Joined:
    Feb 3, 2020
    Posts:
    30
    Why can this be this error? From one moment to another it started to happen!


    ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
    System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
    System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <437ba245d8404784b9fbab9b439ac908>:0)
    NiobiumStudios.DailyRewardsInterface.SnapToReward () (at Assets/BubbleShooterKit/Scripts/Daily/DailyRewardsInterface.cs:226)
    NiobiumStudios.DailyRewardsInterface.OnInitialize (System.Boolean error, System.String errorMessage) (at Assets/BubbleShooterKit/Scripts/Daily/DailyRewardsInterface.cs:295)
    NiobiumStudios.DailyRewards.InitializeTimer () (at Assets/BubbleShooterKit/Scripts/Daily/DailyRewards.cs:61)
    NiobiumStudios.DailyRewards.Start () (at Assets/BubbleShooterKit/Scripts/Daily/DailyRewards.cs:41)
     
  11. Niroan

    Niroan

    Joined:
    Jun 16, 2019
    Posts:
    112
    Hello and thanks for great Asset.

    I want to save the timedReward and daily reward in the cloud.
    But i cant find out where to put cloud code?

    Can you please guide me to both TimedReward and Daily reward.
    I have another script that i want to inject the data to PlayerPrefs before the clock timer starts.
    Its gathering all the cloud data and inserts it into the correct components.
     
  12. FaiqAli

    FaiqAli

    Joined:
    Jul 28, 2019
    Posts:
    1
    Built-in Texture2D: SpriteAtlasTexture-Daily Rewards (Group 0)-2048x2048-fmt47
    I'm having an issue with apk size due to this. How can I avoid this size. Please help me ASAP as its taking huge size in the build size!
     
  13. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Hi FaiqAli. The easiest way it to physically delete all unused images.
    Other solution is to lower the used images resolution to reduce it's size.
    One other way is to clear the Packing Tag from Daily Rewards sprites so when packing it only uploads the images you're using on your game.
     
  14. I_makeGames003

    I_makeGames003

    Joined:
    Nov 8, 2022
    Posts:
    3
    Hey, I use this asset in one of my games, it's been great so far however I am having a small issue with it when I'm trying to update my game.

    When I press play in editor I keep getting this error:

    Error Loading Cloud Clock: https://worldtimeapi.org/api/timezone/EST Error:Unable to complete SSL connection
    UnityEngine.Debug:LogError (object)
    NiobiumStudios.CloudClockBuilder/<InitializeCloudClock>d__6:MoveNext () (at Assets/DailyRewards/Scripts/CloudClockBuilder.cs:121)
    UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

    Image also included here: https://gyazo.com/eaa3e636b45dc19f35e51c8cf676b4ca

    Any help would be appreciated...
     
  15. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Hello @I_makeGames003 ! Can you provide me more information on your environment?

    Which Unity version you're using?
    Which Platform?
    Are you under a proxy or VPN?
    Can you access this url from your local machine (https://worldtimeapi.org/api/timezone/EST)? Should appear a Json with the current time stamp.

    You can also try using http instead of https for testing purposes (make sure to use https when deploying on production): http://worldtimeapi.org/api/timezone/EST

    Best regards!

     
  16. I_makeGames003

    I_makeGames003

    Joined:
    Nov 8, 2022
    Posts:
    3
    Yeah the Unity version I am currently using is 2020.3.18f1

    The platform is set to Android (but the game is for Android & iOS)

    I don't use any VPN or proxy

    and after following the link I get this https://gyazo.com/a80b170cc4af9e34a1097b0f40e66405
    Which I assume means it is working fine in browser, just not in-editor. I will try using http while I'm testing and see if that helps too.

    Thanks! and any other tips to avoid/fix the error would be appreciated :)
     
  17. shoni-wheeler

    shoni-wheeler

    Joined:
    Oct 25, 2014
    Posts:
    102
    Hi,
    I have your Pro Version and only just tried it,and the clock does not work, cannot use the cloud clock because the game does not have online connection, the Reward interface allows shows "Come back in 23:59:59 for your next reward".
    And yes the Panel is on all the time just hidden by Canvas.
     
  18. nunesbarbosa

    nunesbarbosa

    Joined:
    Jul 17, 2012
    Posts:
    103
    Hi Shoni, if your game is offline make sure to unselect "Use World Clock?" flag otherwise it will keep trying to connect to the cloud provider. The Asset doesn't have both online and offline modes at the same time (to avoid cheating).
    cab2f9d0f79402b9080f516df560166e.png

    Regarding the panel hidden by the canvas change the Sort order on Daily Reward canvas to a higher value than your game canvas.

    7cdd988dd5d8af4d6e58452eddb975c7.png

    I hope this works!
     
  19. shoni-wheeler

    shoni-wheeler

    Joined:
    Oct 25, 2014
    Posts:
    102
    Hi,
    Yes Cloud clock is disabled.
    As regards the panel not an issue, I was just saying that the Panel is running all the time in the background and I just disable the Canvas, as you advised previously.
    Maybe it just no longer works with the current editor I am using 2022.2.17f1
    Regards
    John
     
  20. dcdeepu245

    dcdeepu245

    Joined:
    Aug 14, 2017
    Posts:
    2
    Hi, now when we claim the reward then the timer of 24 hr is started but I want that daily reward to reset at fix time for example user claimed at 2 pm and the reset time will be midnight 12 then the time will display the difference time which is 10hr can we do it if yes then how