Unity-Console is an IronPython-base Debug Console for Windows-based Unity games. The basic idea is to run custom python code in Unity that enables opening a console window where scripts can be run that manipulate the game. For PoE2, the default script shows a cheat menu and allows basic edits.
Requirements
This mod does not have any known dependencies other than the base game.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
Unity-Console is made up of many pieces of code, all of them open source, but different pieces of Unity-Console use different licensing terms. Due to Unity's dependence on mono, Unity-Console uses mono as well which has its own license. Those licenses are available on the github repository at https://github.com/TheHologram/unity-console with the source code.
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.1
Handle new way of checking for product version
Fix ScrollView window width for 4K
Check UpdateCrewTraits as private variable
Version 1.0
Handle missing tooltips or text better to avoid issue with Chinese versions (and other languages)
Add mousewheel scroll to Item window and inventory window to page forward and backward when mouse hovering over area
Attempt to handle Font and panel width more dynamically for 4K displays Can override in INI file with PanelWidth and DynamicFont or FontBase
Version 0.31
Fix Heal scripts for 1.2
Fix text entry for array based fields (mostly disposition)
Add ability/weapon points editing during level up
Create history and update history when edting disposition changes. Also better refresh when edits made.
Fix issues with editing grimoire for 1.2
Version 0.30
Update for v1.2 changes related to CharacterClass changes
Use CrewInventory instead of StashInventory for editing crew list
Version 0.29
Cheat shortcuts (Ctrl+A, Ctrl+T, Ctrl+S, ...) must be enabled from Options or from pillars.ini file before working
Put scrollbars and toggle button to hide mods while adding/removing mods on items using inspector windows
Handle error in inventory when displaying debug items without proper description
Version 0.28
Reset Empower Points when Full Heal activated
Import KeyCode for default keys when pillars.ini is missing or corrupt
Add Pose/Personalities to Character Sheet page
Version 0.27
Patch to use getprivateattr for some variables for unpatch assemblies. (Patching with IPA fixes issues some with permissions in scripts)
Fix shortcut list in pillars.ini to put entry on new line
Version 0.26
Add shortcuts for manipulating time (Shift+Numpad /*-+)
Add settings for setting default font size in pillars.ini
Version 0.25
Redo Scrolling on Inventory, Items for better performance. Use <<, <, >, >> to scroll by blocks.
Fix bug when editing global variables
Fix bug when trying to use invalid subrace selections like marine godlike.
Change tooltips to be multiline area for improved readability
Persist visible status between screen reloads
Version 0.23
Add Globals Variables editor to Journal
Add (re)spawn NPCs on the world map
Add ability to change crew back to level 1 (or reset job trait count)
Add Ship Duel cheats to fix repair damage or ignore altogether.
Version 0.22
Bug Fix: Fix Add Inventory not working in 0.20 or 0.21 (use global to workaround)
Add Character Scale in appearance
Version 0.20
Add TextField for editing number where +/- used previously
Add a Enable All but to load all subclasses for heads and colors when editing appearance. (Probably does not handle unique faces still)
Add Remove Mods to on Grimoire editor. Add and Remove mods Launches from Edit Mod button.
Allow Teleportation to maps via world and area maps.
Rename Restore to Reveal as maybe thats less confusing?
Version 0.19
Character Sheet: Remove effects, New Inventory Sorting, Appearance editing, change hair, face, skin color, hair color, subrace and others
Bugs: Fix Inventory bugs on stash, crew, ship. Edit achievements.
Map: Reveal all world map option, edit speed, reveal radius, and others.
World overview: Allow party manager screen at any time when no other dialogs open (under actions)
Grimoire: Allow mods on grimoire editor screen
Version 0.18
Bug Fix release for the error with adding abilities (3rd times the charm)
Add ability to activate all achievements on options
Force remove 1st level subclass abilities when changing classes
Add globals for unique item vendor on options page
Add Ship Crew Editor (Xp, Tales). Remove Add XP to all from ship.
Split Crew from Stash Inventory in Ship screen
Add enable/disable cheats/achievement in options screen
Version 0.12
Bug fix for non-English ability list
Add ShipCrew to inventory on ship stash
Add ability to add any number of classes (max 11)
Combine Focus/Chants/Wounds to single max traits button
Version 0.11
Bug fix when changing classes when not a Ranger with Companion
Add ability to add new Ships to fleet
Version 0.10
Update to avoid issues with beta, new version and various partially patched games
Add Remove Abilities to Character Screen (and ranger companion)
Add ability to change character names (blank to reset name)
Fix Ingredients missing from stash filters
Version 0.9
Add ? for Inspecting items and abilities while browsing
Add ability to modify Animal Companions. Also Class change with Ranger will add or remove Companions.
Greatly Improved performance on Inventory Screen. Changes to Open Item Inspection window detection
Add more filters on Abilities allowing for adding Weapon specialties and or watcher abililties. No checks are made about validity on these lists
Show Difficulty sliders on Options screen
Version 0.8
Add XP / Level by XP buttons to Character Sheet
Fix the Character Change to hopefully work correctly now (Still Experimental)
Version 0.7
Change Class and Abilities to Character Sheet (Experimental)
Add Debugging to Dialog to allow selecting invalid options (Advanced)
Add Teleport shortcut (Ctrl+T)
Fix healing to remove Afflictions that are not Injuries
Change to minimize cheat window by default
Version 0.6
Bug fix for wrong file uploaded which broke the main window
Bug fix for the Add Mod Window
Add shortcut for heal all (ctrl+a)
Add shortcut for reset abilities/spells/cooldowns (ctrl+s)
Version 0.5
Fix the Heal All, Afflications, Traits buttons for all party members (under Players button)
Version 0.4
Fix bug where items without tooltips were being removed from the item list incorrectly
Version 0.3
Added Create / Add Item Window to Inventories
Changes filtering and display options on Stash inventory to show correctly on Character vs ship pages
Get Item Mod list from the data files and show complete list
Change AutoRun/Heal script to run when Minimized (still does not run when hidden)
Version 0.2
Add Stash, Food, Drink Inventory lists
Remove Skills and AutoGrant Abilities options which dont work in character creation
Shrink font in Reputation and Inventory (leave a comment if its too small)
Added Character Disposition for Active Party Members
WARNING: The author is not maintaining this mod and has not for many years. It is likely broken with current builds. There are community fixes for things and I indirectly authorize those updates and have no issues with that just merging those in.
This is effectively a cheat console for Pillars of Eternity II. Should work with any Windows versions though can break if there are major updates. You may have to apply the mod again after repairing or major updates.
The console is more than just a cheat tool as any number of scripts can be run but it is likely what will most likely be used for since that is included by default. It can be quite useful in exploring the current state of the game programmatically for those with the talent.
NOTE: It has been noted that this mod may cause noticeable performance issues on lower end hardware
The default scripts create an in-game cheat menu depending on what is open:
Automatically Run script which heals characters every second
Runs when in combat and when window is visible (runs when minimized) [0.3]
Teleport (instantly move to destination) (Shortcut Ctrl+T) [0.7]
Character Summary
Change Character Class [0.7] (Experimental)
Add Abilities [0.7]
Change Money/Stats/Skills/Disposition/Factions
Added Companion Dispositions [0.2]
Inventory
Duplicate Items (Change Stack Count)
Add Mods to Equipment
(The available list is dynamic. Any other weapon on current screen needs to have the mod for it to show)
Enable Free Recipes for Crafting
Added Stash inventory [0.2]
Filter Stash inventory for Character vs ship [0.3]
Add Create item window [0.3]
Mod list is all mods found in data files [0.3]
Map
Reveal current map
Dialog
Add option to enable dialog debugging [0.7] (Use with care)
Ship
Change Morale
Satiate Crew (food, drink)
Fix Crew Injuries
Added Food, Drink inventory [0.2]
Options
Add difficulty, level scaling to options page [0.9]
Major Changes:
Starting v0.29, cheat shortcuts will (Ctrl+A, Ctrl+T, Ctrl+S, ...) must be enabled from Options or from pillars.ini file.
Notes and Known Issues:
On screens like the main map window the clicking buttons will still lead to character moving
That is clicking on stuff in the dialog may also click on items under the window leading to unexpected behavior
This is very annoying but I don't know how to stop it at this time
If you use the X to close the console then it will close the game as well
To Install:
Navigate to game folder.
Steam: Right click on Game in Library. Select Properties.... Select Local Files tab. Select the Browse Local Files.... button
GOG: Select the More button. Select Manage installation. Select Show folder.
Unpack zip directly to game folder (for 7z use 7-zip).
PillarsOfEternityII.exe should be in same folder as IPA.exe when done correctly.
Drag game exe over IPA.exe to instrument plugins. (Modifies game dlls but makes backups)
Start Pillars of Eternity II
Press Ctrl+F8 key to hide the cheat window in upper right corner. Press again to show again.
If you want the menu to be hidden by default change last line in Console.ini file to "if init: import pillars; pillars.showWindow(visible=False)"
To update:
Unpack zip files over existing files
(Optional) After game patches, Drag game exe over IPA.exe again. (Honestly this probably really shouldn't be required )
To remove:
Drag the game .exe onto IPA.exe while holding the Left Alt key.
WARNING: Uninstalling after patching may break the game and require you to repair
This is due to the prepatch version being restored over the patched version. For this case, just delete the "Plugins" folder with the Console. You can restore UnityEngine.dll manually from the IPA Backup folder if you have installed patch after installing this mod.
You can edit "Plugins\Console\Lib\pillars.py" to add or change the existing cheats. You can reload cheats in the console by typing "import pillars; reload(pillars); pillars.showWindow()". I recommend closing the existing window with "X" or it might crash on show due to a race condition that I don't know how to avoid.