NGUInjector is an automation platform for the steam version of NGU Idle.
Releases can be found in the releases section of the github page here. The latest release can be found here. Do not download the source code archive, instead download the zip file with the release version in the name (3.0.0.zip for example). Extract the downloaded archive to a directory of your choice. To start automation, run inject.bat in the extracted folder when NGU Idle is open. DO NOT RUN AS ADMINISTRATOR.
You'll know the injection has worked if you see the following in the upper left portion of NGU.
To upgrade to a new release, unload the injector from the General Settings page and then inject the new version.
After injecting the dll, a new folder will be created on your Desktop called NGUInjector. Settings files will be automatically written to this directory. The following files are of interest:
A profiles folder will be created with the following files:
More profiles can be added to this folder at your discretion.
A logs folder will also be created with the following files:
Saving either file will automatically reload the settings in the configuration file. Reloading the game isn't necessary
An in game menu can be opened using the F1 button.
Master Switch - If turned off, will disable all automation
Disable Overlay - If switched on, will disable the in-game overlay.
Auto Move to ITOPOD - Automatically move to ITOPOD when nothing else is happening in automation.
Auto Fight Bosses - Automatically nuke/fight bosses.
Auto Buy Energy/Magic/R3 - Automatically spend EXP on energy/magic/R3. Will use the custom caps set by the user in the spend exp page. Will always buy unlocked exp spends in groups.
Unload - Allows you to unload the injector from the game. Check the box next to the unload button and then hit unload
Allocation Profile - Allows you to quickly switch allocation profiles. Any profiles stored in the profiles folder will be listed here. Press change allocation after swapping to change to load the new allocation. Press edit to open the allocation file in a text editor.
Manage Energy - Manage energy based on breakpoints in your selected allocation file
Manage Magic - Manage magic based on breakpoints in your selected allocation file
Manage R3 - Manage resource 3 based on breakpoints in your selected allocation file
Manage Gear - Manage gear based on breakpoints in your selected allocation file
Manage NGU Difficulty - Manage NGU difficulty based on breakpoints in your selected allocation file
Manage Diggers - Manage diggers based on breakpoints in your selected allocation file
Auto Upgrade Diggers - Automatically upgrades your cheapest diggers when you have money available. Respects your money pit threshold and wont buy underneath it.
Manage Wandoos OS - Manage wandoos OS based on breakpoints in your selected allocation file
Auto Rebirth - Automatically rebirth after the time in your selected allocation file is reached.
Change Auto Spells - Manage Spoopy Spell casting
Spaghetti % - Percent to cast Blood Spaghetti until
Number Bonus - Number to cast Blood NUMBER Boost until
Counterfeit % - Percent to cast Counterfeit Gold until
Cast Blood Spells - Cast blood spells automatically. Will try every 10 seconds or at rebirth
Iron Pill - Amount of +stats to cast Iron Pill at.
Guff A - Number of +levels to cast Guff A at
Guff B - Number of +levels to cast Guff B at
Combat Enabled - Turns on auto combat to go to target zone and kill stuff.
Bosses Only - If enabled, will only fight bosses when doing combat. Good for zone sniping.
Precast Buffs - If enabled, will cast charge and parry in safe zone before each combat and wait for the cooldowns to recharge.
Recover HP - If enabled, will recover HP in safe zone between kills
Fast Combat - If enabled, will just quickly attack and skip buffs altogether
Beast Mode - Whether to use beast mode or not while in combat
Block/Parry with Buffs - If checked, combat will use block/parry along with offensive/defensive/ultimate buffs.
Combat Mode - If set to manual, will execute a custom combat routine. If set to idle, will just idle the zone.
Target Zone - The target zone to snipe/do combat in. ITOPOD is at the bottom of the list.
Allow Fallthrough - If set to true, combat will use the highest unlocked zone you have until the target zone is unlocked.
ITOPOD - Equivalent to setting target zone to ITOPOD, just a quicker option
ITOPOD Settings - Settings below this apply only to ITOPOD combat
Combat Mode - If set to manual, will execute a custom combat routine. If set to idle, will just idle the zone.
Precast Buffs - If enabled, will cast charge and parry in safe zone before each combat and wait for the cooldowns to recharge.
Recover HP - If enabled, will recover HP in safe zone between kills
Fast Combat - If enabled, will just quickly attack and skip buffs altogether
Beast Mode - Whether to use beast mode or not while in combat
Optimize ITOPOD Floor - Will optimize your ITOPOD floor every 10 seconds. Does nothing if Lazy Floor Shifter is on
Blacklisted Enemies - Allows you to blacklist enemies when searching for enemies in a zone.
Allocation profiles can be found in the profiles folder and contain time breakpoints for configuring your gear, diggers, energy allocation and magic allocation. Sample allocation files can be found in the sampleprofile folder.
The time portion of every breakpoint refers to rebirth time in seconds. Time can be defined as a simple number (ex: 86400) or as a JSON object:
"Time": {
"h": 1,
"m": 30,
"s": 20
},
Priorities can be modified with an optional percentage cap by adding a : and a percent. As an example:
CAPWISH-0:30
This will cap wish 0 but limit the maximum amount allocated to 30% of your current cap. When applied to non-cap priorities, it will limit to % of idle resource. Priorities will respect targets and not allocate to priorities that are target capped.
An energy breakpoint is structured as follows:
"Energy": [
{
"Time": 0,
"Priorities": ["CAPNGU-0", "CAPWAN", "AT-1", "NGU-1"]
}
]
Priorities come in 2 types - cap and non-cap. Any priority that has -X after it is 0 indexed.
A cap priority will use as much idle energy as possible and hit the highest BB breakpoint possible for the next 10 seconds. A non-cap priority will take a divider of your idle energy based on number of non-cap priorities and attempt to hit the highest BB breakpoint possible for the next 10 seconds. When a priority is calculated, it will push excess energy to later priorities.
In the above example the following actions will be taken:
Available cap priorities for Energy are as follows:
Available non-cap priorities for Energy are as follows:
More information on allocation indexes can be found on the wiki
A magic breakpoint is structured as follows:
"Magic": [
{
"Time": 0,
"Priorities": ["CAPNGU-0", "CAPWAN", "BR", "NGU-1"]
}
]
Priorities come in 2 types - cap and non-cap. Any priority that has -X after it is 0 indexed.
A cap priority will use as much idle energy as possible and hit the highest BB breakpoint possible for the next 10 seconds. A non-cap priority will take a divider of your idle energy based on number of non-cap priorities and attempt to hit the highest BB breakpoint possible for the next 10 seconds. When a priority is calculated, it will push excess energy to later priorities.
In the above example the following actions will be taken:
Available cap priorities for Magic are as follows:
Available non-cap priorities for Magic are as follows:
More information on allocation indexes can be found on the wiki
An R3 breakpoint is structured as follows:
"R3": [
{
"Time": 0,
"Priorities": ["HACK-1"]
}
]
Available priorities for R3 are as follows:
A gear breakpoint is structured as follows:
"Gear": [
{
"Time": 0,
"ID": [189, 442, 160, 441, 148, 169, 139, 184, 187, 185, 186, 188]
}
]
The list of IDs is the IDs of the gear desired.
You can dump your loadouts from Gear Optimizer using the method found on this wiki page
A digger breakpoint is structured as follows:
"Diggers": [
{
"Time": 3650,
"List": [3, 4, 5, 8]
}
]
The list of diggers is 0 indexed. Drop chance digger is 0, EXP digger is 11. More information can be found on the wiki
A wandoos breakpoint is structured as follows:
"Wandoos": [
{
"Time": 0,
"OS": 1
}
]
The OS is 0 indexed. Wandoos 98 is 0, Wandoos MEH is 1, Wandoos XL is 2
A NGU Difficulty breakpoint is structured as follows:
"NGUDiff": [
{
"Time": 0,
"Diff": 0
}
]
The difficulty is 0 indexed. Normal NGUs is 0, Evil NGUs is 1, Sadistic NGUs is 2
Rebirth Breakpoints can be written 2 ways. A simple time based breakpoint is written as follows:
"RebirthTime": -1
A setting of -1 means no rebirths. Otherwise rebirth will be performed when the time in seconds is reached.
More complex rebirth breakpoints can be done as follows:
"Rebirth": {
"Type": "Time",
"Target": {
"h": 24,
"m": 1
},
"Challenges": []
},
The following types are available:
The following example will rebirth when your number is 10x your previous number:
"Rebirth": {
"Type": "Number",
"Target": 10,
"Challenges": []
},
The following example will rebirth when you can kill 5 more bosses than your last rebirth:
"Rebirth": {
"Type": "Bosses",
"Target": 5,
"Challenges": []
},
Additionally, you may specify challenges to rebirth into. The following string correspond to challenges:
Challenges must be given a number afterwards to specify which challenge is being completed. Challenges start at 1. Ex:
"Challenges": ["BASIC-1", "BASIC-2", "TC-1","NOEQ-1"]
The optimal zone for gold sniping is calculated using a set of values from pins that show stats necessary to do each zone. If the manual threshold is met for a zone, the script will snipe a boss without fast combat. If the idle threshold is met, the script will snipe a boss using fast combat. Beast Mode will always be turned off for this.
The stats for the zones can be manually overriden using the zoneOverrides.json
file in the user's directory. For the default stats used see here
Pressing the F3 button will dump a NGU save file as well as a ngusav.es JSON file in the folder on desktop, which can be loaded into Gear Optimizer.
Pressing the F7 button will load the save created by the quicksave function
Pressing the F5 button will dump your current equipment to the log file for use in allocation files
The adventure log will automatically be monitored and loot dropped will be written to loot.log in the folder on your desktop.
The pitspin.log file will contain the results of each automatic money pit, daily spin, and yggdrasil harvest and will persist across sessions.
Pressing the F2 button will globally disable all features of the app until re-enabled.
Have you forgotten to turn on auto attack before and left yourself AFK in ITOPOD doing nothing? Me too! Pressing the F4 button will toggle the script to automatically turn auto attack on if you're in ITOPOD and its not on.
Lock a boost in your inventory and the script will automatically merge boosts on to that boost until it hits level 100!
SharpMonoInjector can be found here. This wouldn't be possible without the excellent work done there. Obviously 4G for making NGU Idle. Altizar on discord for WISH logic and some other fixes Ingwar on discord for allocation profile logic and some other fixes