CurseForge Register Sign In

Authors CurseForge

  • Dashboard
  • Forums
  • Paste
  • Knowledge Base
  • Reward Store
Desktop View
  • Home
  • Member List
  • Forge_User_97086831's Profile
  • Send Private Message
  • View Forge_User_97086831's Profile
  • Forge_User_97086831
  • Registered User
  • Member for 3 years, 5 months, and 22 days
    Last active Fri, Nov, 30 2018 17:55:52
  • 0 Followers
  • 1 Total Posts
  • 0 Thanks
  • Posts
  • Threads
  • Forum Posts
  • View Forge_User_97086831's Profile

    0

    Jul 10, 2018
    Forge_User_97086831 posted a message on CalendarGetNumDayEvents

    I'm trying to write some code that gets a list of all the events on the calendar for x days from now. Going over the API listing I found CalendarGetNumDayEvents and CalendarGetDayEvent, which both take a monthOffset parameter that seems to be relative to the current displaying calendar month. So I wrote some code that calculates the offset required to end up at the actual current month relative from the displayed one, and ran into a problem.

     

    For some reason displaying the month before shows all events just fine, the month itself does as well but then if I go to the next month it loses one of the events, the weeks bonus event. And if I move the calendar another month ahead there's a total of zero events left using a monthOffset of -2. For any other months of the year it seems to also show no events at all.

    Is there any other way to directly get the events of the current month regardless of what month the ingame calendar is on?

    Screenshots to illustrate the problem:
    https://cdn.discordapp.com/attachments/389871206482051073/466292954668072970/unknown.png
    https://cdn.discordapp.com/attachments/389871206482051073/466292986058244106/unknown.png
    https://cdn.discordapp.com/attachments/389871206482051073/466293059278077973/unknown.png

    https://cdn.discordapp.com/attachments/389871206482051073/466293202920669204/unknown.png

    Posted in: Lua Code Discussion
  • To post a comment, please login or register a new account.
  • Product
    • Overwolf platform
    • Appstore
    • Download Overwolf
  • Developers
    • Getting started
    • Documentation
    • Apply for funding
  • Partners
    • Advertise on Overwolf
    • Partner with us
    • Influencers
  • Company
    • About us
    • Our story
    • Commitment to gamers
    • Blog
    • Career
  • Resources
    • Help & support
    • Terms of service
    • Privacy policy
    • Brand guidelines