Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

The Skill Point Formula Has Been Reverse Engineered

Discussion in 'Wynncraft' started by Basedlord Ayobe, Jun 28, 2021.

Thread Status:
Not open for further replies.
  1. Basedlord Ayobe

    Basedlord Ayobe btk fan CHAMPION

    Messages:
    22
    Likes Received:
    87
    Trophy Points:
    48
    Guild:
    Minecraft:
    Well folks, it's been done. Though I'd been working on this some weeks ago, I never truly nailed the answer until today: the formula for extrapolating the effectiveness of a skill point based on the points invested in it.

    Today we discovered the formula was something no one (presumably) had previously considered; a geometric series.
    upload_2021-6-28_0-0-38.png

    While there were incredibly accurate attempts prior, such as that of ferricles, [​IMG]
    we had never been quite there until today. With hours of time poured into doing the math for this, we were finally able to determine the exact formula, which is the following:
    upload_2021-6-27_23-38-18.png

    Here's what you need to know about this formula:
    - x is the number of skill points in a certain category, and E(x) is the effectiveness out of 100. This means that at x = 150, E(x) = 80.8.
    - The round(x,y) function rounds the value of X to the yth digit. For example, round(1.6368, 2) = 1.64, whereas round(1.6368, 3) = 1.637.

    While my original formula followed the format
    upload_2021-6-27_23-43-10.png ,

    I had decided after seeing the results of ferricles much more accurate equation that an exponential was the way to go. However, the idea of using a geometric sum actually just occurred to me while I had walked fresh out of my math class. With the thought fresh on my mind, I sat down and attempted to use the new form:

    upload_2021-6-27_23-44-57.png .
    Using the built in logarithmic regression feature in Desmos, I was able to calculate that a = -1.00289 and b = .990801; while not the cleanest numbers, they net me an R^2 value of 1, or at least so close to it that Desmos rounded to that. After this, I decided that was good enough for me, and let it go for a while. This was around in May.

    Fast forward to today, June 27, 2021, and I'm talking to epic moderator SayaDuck about something or other in the Wynncraft #questions channel. During this conversation I mention my old formula, thinking it's a neat function but nothing more. When Saya asked if mine was closer than ferricles, I went to his friend hppeng, the creator of Wynnbuilder. He suggested to me that it might be more accurate if a = -1. From here, I removed the .000001 on the end of b to get a = -1, b = .9908. When this new formula is rounded to the nearest 10th, you get an equation of perfect accuracy except for one edge case; x < 0, which would return -1% effectiveness instead of 0. However, all values above x = 0 were accurate. With a suggestion from iTechnically, I switched it from
    upload_2021-6-27_23-57-22.png

    to this

    upload_2021-6-27_23-57-46.png .

    To verify it's accuracy, I used a program which would return false if the value output by my formula E(x) was not equal to the real value of the effectiveness at a given point. After writing this algorithm, the equation checked out; we had found it.

    This wouldn't have been possible without the help of some lovely folks who I'd like to credit below with their discord names :)

    - @ferricles#6344 for his equation, which opened my mind to considering exponentials as an option
    - @hppeng#8609 for simplifying some numbers to increase the overall accuracy of the equation
    - @iTechnically#4671 for simplifying it to account for x-values less than 0
    - @Saya#8503 who pushed me to continue my work after I had given up
    - @touhoku#8699 who helped me write this thread

    :)
     

    Attached Files:

    Last edited: Jun 28, 2021
  2. touhoku

    touhoku heavy spell pioneer Item Team CHAMPION

    Messages:
    615
    Likes Received:
    1,737
    Trophy Points:
    148
    Guild:
    Minecraft:
    first?????

    okay i have actually read it now. nice work! was cool to see this project at many steps and glad to see it done so neatly.
     
  3. hppeng

    hppeng 0 intel is the correct amount of intel HERO

    Messages:
    1,243
    Likes Received:
    2,007
    Trophy Points:
    153
    Guild:
    Minecraft:
    second???

    at least we got the form right an attempt was made

    nice job! programming go brr
     
  4. NamesAreHard

    NamesAreHard Mage Enthusiast (She/He/They) CHAMPION

    Messages:
    1,427
    Likes Received:
    2,446
    Trophy Points:
    153
    Guild:
    Minecraft:
    Sometimes I wonder what kind of person would design a game this way, why they would subject us to all this arbitrary strangeness. Could it really be a mere mortal who created such an elaborate maze of contradictions and nonsense?
     
  5. one_ood

    one_ood c lown VIP

    Messages:
    3,620
    Likes Received:
    6,309
    Trophy Points:
    217
    Guild:
    Minecraft:
    so many numbers???????

    there is a joke here about me not understanding it and intelligence thresholds
     
  6. Potatomancer

    Potatomancer Budget Wither

    Messages:
    1,363
    Likes Received:
    1,995
    Trophy Points:
    153
    Minecraft:
    This is a funi bloc game I did not expect college grade mathematics
     
    MineMasterRC likes this.
  7. dr_carlos

    dr_carlos Morph Gang! VIP+

    Messages:
    1,763
    Likes Received:
    1,936
    Trophy Points:
    128
    Guild:
    Minecraft:
    Interesting that a is 0.9908. Intriguing that the team would pick this specific constant.
    Still an interesting equation, makes a lot more sense than using a log (to me), as it would be easy to program, just using a for loop.
     
  8. touhoku

    touhoku heavy spell pioneer Item Team CHAMPION

    Messages:
    615
    Likes Received:
    1,737
    Trophy Points:
    148
    Guild:
    Minecraft:
    oinuk really is playing ETFA irl
     
  9. nip nop

    nip nop thinking hurts CHAMPION

    Messages:
    479
    Likes Received:
    2,146
    Trophy Points:
    91
    Minecraft:
    I have absolutely 0 idea what any of this means
     
  10. Demogarose

    Demogarose Well-Known Adventurer VIP+

    Messages:
    36
    Likes Received:
    64
    Trophy Points:
    49
    Minecraft:
    A lot of complicated math that's going to make online building tools like WynnData more accurate in the future
     
    AlleonVera likes this.
  11. iTechnically

    iTechnically don't ask me for warrior builds

    Messages:
    305
    Likes Received:
    395
    Trophy Points:
    85
    Minecraft:
    :Saltedpog: great work
    Here's a Desmos link with the different function forms, and a table for verification https://www.desmos.com/calculator/btjkullbz2
    As a sidenote, because this is the sum of a geometric series with n terms, there's a closed-form for it which is really nice to deal with (although it's inapplicable to n<0):

    upload_2021-6-28_12-37-31.png
    upload_2021-6-28_12-39-39.png
     
    Last edited: Jun 28, 2021
  12. dr_carlos

    dr_carlos Morph Gang! VIP+

    Messages:
    1,763
    Likes Received:
    1,936
    Trophy Points:
    128
    Guild:
    Minecraft:
    It's not that complicated.
    To explain the formula:
    [​IMG]

    The effectiveness of x skill points is equal to:
    The sum of (0.9908 to the power of n), for every whole number between 1 and x.
    Rounded to 1 decimal place.

    So, the effectiveness of 5 skill points is:
    0.9908 + 0.9908^2 (to the power of 2) + 0.9908^3 + 0.9908^4 + 0.9908^5 , all rounded to 1 decimal place.
    i.e. 0.9908 + 0.9817 + 0.9727 + 0.9637 + 0.9548
    Which equals 4.9 when rounded to 1 decimal place.
     
    Autonomorantula likes this.
  13. SelectorOfSouls

    SelectorOfSouls MMO Addict VIP

    Messages:
    91
    Likes Received:
    59
    Trophy Points:
    49
    Guild:
    Minecraft:
    Regarding the part where x<0 did not work, coding-wise, you could make it work by including something equivalent to an elif command which then takes x and multiplies it by 0 (not that we could ever go below 0 anyway). If you wanted to make it positive, you could apply the absolute value, which would (again, coding-wise) be adding an elif command where x<0 causes x * -1 which would result in a positive number. Anyway, those things aside, this is an amazing find. Good job dude.
     
    Basedlord Ayobe likes this.
  14. Druser

    Druser ele defs don't matter HERO Featured Wynncraftian

    Messages:
    5,888
    Likes Received:
    11,477
    Trophy Points:
    217
    Guild:
    Minecraft:
    Great work, it's nice to see this finally solved.
     
    Basedlord Ayobe likes this.
  15. Basedlord Ayobe

    Basedlord Ayobe btk fan CHAMPION

    Messages:
    22
    Likes Received:
    87
    Trophy Points:
    48
    Guild:
    Minecraft:
    welcome to wynncraft
     
    FAZu, AlleonVera and hppeng like this.
  16. Sir_Doomed

    Sir_Doomed Can't think of anything to put here

    Messages:
    1,194
    Likes Received:
    585
    Trophy Points:
    124
    Guild:
    Minecraft:
    And yet, the real mystery remains: Was this an admin overzealously balancing the skill point system, or a deliberate attempts to stop people from discovering it?
     
    hmtn and Crystqllized like this.
  17. Saya

    Saya you win at uwynn HERO

    Messages:
    2,930
    Likes Received:
    6,871
    Trophy Points:
    209
    Guild:
    Minecraft:
    LFG it's an actual formula that makes sense

    Congrats and gj Lennon
     
    hppeng likes this.
  18. Demogarose

    Demogarose Well-Known Adventurer VIP+

    Messages:
    36
    Likes Received:
    64
    Trophy Points:
    49
    Minecraft:
    Your definition of complicated and mine differ greatly when it comes to mathematics. You explained it, and I still don't understand it. That's ok though, in the end I don't need to. I can still recognize the achievement for what it is, and see how it will benefit the community.
     
  19. Salted

    Salted Game Design & Wynncraft Founder Staff Member Admin GM CHAMPION

    Messages:
    2,558
    Likes Received:
    51,204
    Trophy Points:
    278
    Creator Karma:
    Minecraft:
    [​IMG]

    ^i mean it all in good fun, of course. i couldn't resist doing that while reading this thread. anyway yea, the community often finds insane formulas that even I don't understand at all for my own game. the vast majority of the time, all I did was some very basic spreadsheet design. it's generally more useful when designing stuff as you can quickly visualise every part of the progression at a glance.
     
  20. Lousyre

    Lousyre Famous Adventurer

    Messages:
    1,092
    Likes Received:
    1,104
    Trophy Points:
    130
    Guild:
    Minecraft:
    they did it... they finally did it
     
Thread Status:
Not open for further replies.