2,875
edits
No edit summary |
|||
Line 67: | Line 67: | ||
==How to collect data== | ==How to collect data== | ||
This entire section talks about how you can collect the most reliable data for a money making method and/or test out various money making methods. This section is for advanced users and requires using the console, enabling specific mods and using multiple save files. | |||
''To access the console, using the browser is recommended at this requires no additional steps. Just hit F12, navigate to "Console" and you can enter the commands there.'' | ''To access the console, using the browser is recommended at this requires no additional steps. Just hit F12, navigate to "Console" and you can enter the commands there.'' | ||
===Disclaimer=== | |||
It is important to carefully read this section before continuing. But don't worry, it sounds a lot more dramatic than it actually is! | |||
* '''Do NOT use your own save file to collect data or simulate a money making method.''' Create a new save game for the purpose of testing these money making guides. As the commands listed in the next sections WILL affect your save game. | |||
* Your own save is completely safe! Commands and mods are applied on a per-save basis. There is nothing to worry about if you use a new save slot for this testing. | |||
* You can always make a backup of your own save slot, just in case. | |||
* Mods belong to a mod profile. You can create a new mod profile and use the mods for testing there. This will not affect your own save files in any way! | |||
* It is strongly recommended to use the "Unlimited Offline" and "Skill Boosts" mods for testing purposes. | |||
===Minimum setup=== | |||
This section deals with collecting data for the minimum recommended setup. Create a new save slot if you haven't done so already, or delete your existing test save and recreate it. | |||
We can | We can use the following [https://gist.github.com/DennisCorvers/055fc3d56000be5160c63748555df26f script] to unlock every skill and item that does not affect a money making method. This can be used to prepare testing for a minimum setup, where things like agility obstacles can be manually build, astrology upgraded, etc. It also unlocks the passive slot and TotH content via relevant dungeon completion. | ||
This script essentially prepares your save to start testing money making methods! | |||
== | ===Maximum setup=== | ||
This [https://gist.github.com/04Slash/7a7a46974ddb06c53d259241b81d4195 script] can be used to get 100% completion on an account. This is recommended for maximum profit simulations. The script does the following: | This [https://gist.github.com/04Slash/7a7a46974ddb06c53d259241b81d4195 script] can be used to get 100% completion on an account. This is recommended for maximum profit simulations. The script does the following: | ||
* Completes the tutorial | * Completes the tutorial | ||
Line 114: | Line 107: | ||
* Buys 69,400 of every shop item | * Buys 69,400 of every shop item | ||
== | ===Collecting data=== | ||
This | To make sure a guide has reliable and "real-world" data, we can run the money making method for many hours, and use the average result for as data. Some variables like pets and mastery experience can change the result of the simulation. To get reliable results, we want a static environment where, no matter how many hours, nothing changes that affects the rate at which gp is earned. | ||
To achieve this, we can use the following commands to "freeze" the game state. These turn off | |||
* Mastery pool experience | |||
* Mastery action experience | |||
* Ability to gain pets | |||
This makes sure that the simulation constantly gives the same results across all tested hours. Skill experience is enabled to track the amount of experience this money making method also provides. | |||
<pre> | |||
mod.getDevContext().patch(PetManager, 'rollForSkillPet').replace(function(o) {}); | |||
mod.getDevContext().patch(SkillWithMastery, 'addMasteryXP').replace(function(o) {}); | |||
mod.getDevContext().patch(SkillWithMastery, 'addMasteryPoolXP').replace(function(o) {}); | |||
</pre> | |||
We can then run the following command to collect data over a period of thousand hours. This will not actually take 1,000 hours! The game will process through 1,000 hours as fast as it can. On a regular computer it takes no more than a minute to process all thousand hours, depending on the method used. | |||
''By default, only 24 offline hours can be ran at a time. You can use the "Unlimited Offline" mod to allow for more offline hours.'' | |||
<pre> | |||
game.testForOffline(1000) | |||
</pre> | |||
You game will show a summary of what happened in the 1,000 hours. You can use this data to fill out the [[Template:MoneyMakingGuide]] template. | |||
==Commands== | ==Misc Commands== | ||
All of the commands below can be used by pressing F12 when running Melvor Idle in the browser, navigating to "Console", and pasting them there. Some commands, such as game.testForOffline, will take some time to execute. | All of the commands below can be used by pressing F12 when running Melvor Idle in the browser, navigating to "Console", and pasting them there. Some commands, such as game.testForOffline, will take some time to execute. | ||
edits