Jump to content
View in the app

A better way to browse. Learn more.

Obsidian Forum Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi,

 

I want to change the limit for the amount of custom adventurers you can hire (currently set to 8 in vanilla).

I found the script that sets this value and I am able to read it with some free software that can decompile it, but I am unable to change the value and save or recompile the script to make the adjustment I want to make in game.

 

Is this at all possible? If so, how do I do it?

 

(PS: sorry if this is a noob question, I'm new to modding scripts)

 

Edited by edjenoh

  • 2 years later...

I have sucessfully increased the number of adventurers you can create and it works perfectly with current saved games without any issues.

First, download dnSpy - https://github.com/0xd4d/dnSpy
Scroll down to the "Binaries" list and download the latest release.
Extract the .zip to any folder and run dnspy.exe (64-bit) or dnspy-x86 (32-bit), on your OS.
My OS is 64-bit - so I use dnspy.exe

Next make backup copies of both Assembly-CSharp.dll and UnityEngine.dll - from wherever you installed PoE open "PillarsOfEternity_Data/Managed" or whichever folders were used during install.

Now, in dnSpy click "file" "open", find Assembly-CSharp.dll and also "open" UnityEngine.dll - wherever you installed PoE...
Open Assembly-CSharp.dll and scroll down and open "PartyMemberAI", then from the drop-down list find the "MaxAdventurers" entry.

 

JW8bvnTB_t.png

Right-click on "public static readonly int MaxAdventurers = 8" and select "Edit Class C#" and simply edit the number to your liking. I choose 19 to make a grand total of 30 characters.

Now, click "compile", the pop-up will auto-close when it is complete. Then exit dnSpy.
You will be asked to save the file and give it a name - do so. Done!

Replace your default Assembly-CSharp.dll with the new Assembly-CSharp.dll (you must rename it exactly as Assembly-CSharp.dll from whatever name you had saved your edited version as in dnSpy) - now start PoE.

Remember that tons of modding will always slow a game down so choose wisely based on your hardware capabilities.

I have had no issues with gameplay, sound, graphics, saves or slowdowns. Enjoy.
 
To my knowledge it does not break achievements -

Edited by blackstone777

  • 1 month later...

*Confirmed that this does not break achievements*

*Confirmed that this does not break achievements*

the achievmentdependencies genereally can be removed in the code as well .. but yea.. renders achievments quite ad absurdum then ;)

  • 1 year later...

I hope people still ahve notifications turned on for these posts. I am looking at the Assembly file and I cannot find the variable listing from the photo. I see several nodes, but I have no idea which one would contain the variables lists. 

Can anyone help?

https://i.imgur.com/XiFfOIO.png

 

 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.