Jump to content
  • 0

Loading custom portraits from user's folder


kujeger

Question

Currently the only way to add portraits is to drop them directly into the game's data folder, which is not a great way of doing it -- it requires that the user be able to modify the game files, which is not necessarily the case.

This should be done by reading additional portraits from the user's data folder used by the game, like e.g. savegames.

 

On linux at least this path could be something like $XDG_DATA_HOME/PillarsOfEternity/portraits

(saves are at $XDG_DATA_HOME/PillarsOfEternity/SavedGames/)

 

 

I realize PoE is not the biggest focus with PoE2 in full production, but it would be a nice fix to have. Certainly it should be done for PoE2 at least.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

What do you mean? You don't have to edit any game files. You just drop pictures of the right size into the portrait folder and that's it. Pretty simple.

 

Where did you get that wrong information?

 

Or do you mean that one may not have writing access to the game folders? In that case, your question makes sense. It would be convenient to have a dedicated portrait folder in the user space.

Although on Linux the game will be installed into the user's space so that's no problem. I have no idea how the game gets installed on Windows...

 

Edit: typo

Edited by Boeroer

Deadfire Community Patch: Nexus Mods

Link to comment
Share on other sites

  • 0

Yeah, I am talking about the latter case.

 

Most commonly you will be able to write to the game's data directory since you either installed PoE somewhere in $HOME or you have sudo-rights, but that's just an assumption that happens to usually be true. It did bite me in the ass, leaving me to set up some symlinks to work around it.

 

The right way to do it is to read/write any user-specific or user-provided content from $XDG_DATA_HOME or $XDG_CONFIG_HOME, like is already done with savegames and config files. Should be done for both Windows and macOS as well.

Link to comment
Share on other sites

  • 0

Yeah, you are right.

 

Would even be better if there was a GUI that lets you pick a custom portrait from anywhere via dialogue. It's easily done with Unity. Maybe even has the ability to crop and shrink the picture to the correct size - like profile picture uploads on several websites do it.

Deadfire Community Patch: Nexus Mods

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...