REALLY high levels, and the exp needed to get there!

Anything Helmet Heroes related can be posted here.

REALLY high levels, and the exp needed to get there!

Postby LightningsFury » Thu Aug 23, 2018 12:13 pm

Recently, I've been experimenting with the experience formula to make a experience calculator bot command on my discord (check my sig :p), I experimented with the boundaries of how high my VPS can handle doing these calculations.

Here are some:

Note: These are not extremely accurate due to glitches in the game and JavaScript's capability to handle big numbers, but accurate enough.

These values are counted from level 0!

Level 1 Million: 366,691,116,641,858,000 exp

Level 10 Million: 366,669,111,666,384,000,000 exp

Level 100 Million: 366,666,911,166,714,000,000,000 exp

Level 1 Billion: 366,666,691,116,797,000,000,000,000 exp

After this point, my VPS can't take the stress so here's the JavaScript code to do this yourself:

Code: Select all
const StartTime = Date.now(); // for measuring how long this takes in milliseconds
let amount = 0;
for (let i = 0; i < 1000000; i++){
let results = 50*i + 1.1*i**2; // formula
amount+=results; // adds it up
}
const EndTime = Date.now(); // Self explanatory
`took ${EndTime - StartTime} ms and amount is  ${amount.toLocaleString()}`


As an added bonus, made another little script that made a list of exp needed from 0 to 1 billion at every 1m levels, here's that code:

Code: Select all
const StartTime = Date.now();
let amount = 0;
let arr = [];
for (let i = 0; i < 1000000000; i++){
    let results = 50*i + 1.1*i**2;
    amount+=results;
    if (i % 1000000 == 0) {
        arr.push(`At level ${i.toLocaleString()}, it will take ${amount.toLocaleString()} exp.`)
    }
}
const EndTime = Date.now();
console.log(arr.join('\n'));
`took ${EndTime - StartTime} ms and amount is  ${amount.toLocaleString()}`


If you're wondering how long it took the computer to process 1 billion, it took 67 seconds (which is alot, imagine opening a page and it taking 67 seconds).

Here's a hastebin to all the values for reference: https://hastebin.com/ewepaqakoc.cpp (wiki page got deleted smh).


Good luck Jarsu!
Image
Join the Helmet Heroes Discord today!
Guess I'll just shitpost.
User avatar
LightningsFury
 
Posts: 776
Joined: Wed Dec 03, 2014 3:22 am
Location: Get Premium to view this message! Only $9.99!

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests