Author Topic: Custom Portraits  (Read 153384 times)

PhrygianDominant

  • Developer
  • Godman
  • *****
  • Posts: 1289
  • Karma: +175/-0
    • View Profile
Re: crumbhousers player portraits
« Reply #30 on: September 03, 2018, 12:20:29 pm »
The one with the bag should be our default portrait. :D

Dev Log #60: The bag-over-head portrait update:

Hi guys, just wanted to let you know we've added a new and dominating portrait to the game. Expedition delayed by months. Cheers!

ciox

  • Oculite
  • Tchortist
  • **
  • Posts: 398
  • Karma: +41/-4
    • View Profile
Re: crumbhousers player portraits
« Reply #31 on: September 03, 2018, 02:24:45 pm »
The one with the bag should be our default portrait. :D

Dev Log #60: The bag-over-head portrait update:

Hi guys, just wanted to let you know we've added a new and dominating portrait to the game. Expedition delayed by months. Cheers!
Eh, I'll take it.

Dieusama

  • Zoner
  • **
  • Posts: 75
  • Karma: +10/-38
    • View Profile
Re: crumbhousers player portraits
« Reply #32 on: September 03, 2018, 03:33:18 pm »
I though the black-haired guy in yellow jumpsuit is supposed to be the default portrait

crumbhouser

  • Probably not a Spambot
  • *
  • Posts: 39
  • Karma: +13/-0
    • View Profile
Re: crumbhousers player portraits
« Reply #33 on: September 03, 2018, 06:15:08 pm »
What is Girl with Rathound Leather smoking? :D
everything ;D

The one with the bag should be our default portrait. :D
Bag? no, that's the totally gorgeous new face he found after visiting Sergio the Wizard...

Fenix

  • Godman
  • ******
  • Posts: 1209
  • Karma: +58/-25
    • View Profile
Re: crumbhousers player portraits
« Reply #34 on: September 04, 2018, 08:04:56 am »
I though the black-haired guy in yellow jumpsuit is supposed to be the default portrait

It's a Bruce, it's a roleplay!

Nice pack.

Dizzy

  • Zoner
  • **
  • Posts: 92
  • Karma: +7/-0
  • How to catch a unique rabbit? You neek' up on it.
    • View Profile
Re: crumbhousers player portraits
« Reply #35 on: September 04, 2018, 06:51:00 pm »
This is fantastic! +Rep

I will definitely be rocking "Coat Guy" for my Chemist Dominating run.

Cheers!

Styg

  • Administrator
  • Godman
  • *****
  • Posts: 2406
  • Karma: +513/-31
    • View Profile
Re: Custom Portraits
« Reply #36 on: February 08, 2019, 08:49:20 am »
Merged and stickied (stucky?).

boi

  • Probably not a Spambot
  • *
  • Posts: 28
  • Karma: +4/-4
    • View Profile
Re: Custom Portraits
« Reply #37 on: March 06, 2019, 08:27:11 pm »
I "made" (googled and cropped) this portrait for my character. The art style isn't quite the same as the rest of the game but I think it fits surprisingly well.




Xothic

  • Probably not a Spambot
  • *
  • Posts: 6
  • Karma: +5/-0
    • View Profile
Re: Custom Portraits
« Reply #38 on: April 29, 2019, 11:17:58 am »
Heres a couple I've made in paint over the years.

Always liked the facial expression of the guy in the yellow jumpsuit, but hated the yellow jumpsuit, so I put him in the hooded cloak of another character. I also merged Ezra's custom portrait with one of the Coretech guys.

They're slightly sloppy jobs I admit, but they look pretty good ingame.

Doxy

  • Probably not a Spambot
  • *
  • Posts: 22
  • Karma: +4/-0
    • View Profile
Re: Custom Portraits
« Reply #39 on: August 06, 2019, 03:09:36 pm »
I don't think he needs an introduction ))))


Khornet

  • Probably not a Spambot
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Custom Portraits
« Reply #40 on: September 11, 2019, 10:08:25 pm »
Is there a way to import a custom portrait without creating a new character ?

Greetings, people of the past. It is I, Reinhark, The great cheater. I have came here bearing the news.
It is possible to do this, but this is pretty difficult. Please proceed if you have what it takes.
Programs you need are the following:
Cheat engine
XNBextract


1. Find out what portrait you are using, and what you want to use.
Every underrail has portrait folder where the profile pics are stored.
What you want to do, is find which profile picture you are using, and what you want to replace it with.
Use program named XNBextract or something. I think this file is used for stardew valley. follow it to download.

Let's say I want to replace my current picture, which is named "scavle2" ("_l" and "_s" do not count, as they stand for small and large. )


...To the faceless stealth specialist located in "genderless" folder, named "flst"


Here are some actions you need to do.
THE IMAGE MUST BE IN THE SAME GENDER FOLDER AS YOUR CHARACTER. Therefore I copy "flst" XNB files to "Male".
THE IMAGE NAME MUST BE THE SAME LENGTH AS ORIGINAL. Therefore I must extend my image name to 7 characters, "flst" to "flstest".

The easy part is done. Now let's move on to hardest part. Start the Underrail and load your character.
Use the cheat engine, target underrail as your process, and find your character's name.
Here are the instructions:
Use this chart and convert your character name to hex.

My character is named "Reinhark" so it should be...
52 65 69 6E 68 61 72 6B

Now insert 00 for every single characters. so it should look like:
52 00 65 00 69 00 6E 00 68 00 61 00 72 00 6B 00

Run cheat engine and:
Change "Value type" to "array of byte".
Click checkbox named "Hex" at the left side of input box.
Input above hex(In this case, [52 00 65 00 69 00 6E 00 68 00 61 00 72 00 6B 00]) and run it.
You should get 2 to 20 results.
If, for some reason memory disappears conduct the search again.

Right click each one and pick "Browse this memory region".
Find the location of memory location where your name and your picture name is near each other. if picture name cannot be found in one memory just go to another memory.

NOW CHANGE THAT PICTURE NAME FROM THE ORIGINAL (scavle2) TO THE NEW ONE (fltest)
It should take effect, immediately.
(alternatively, you can try to scan the file name, [73 00 63 00 61 00 76 00 6C 00 65 00 32 00] which stands for "scavle2". But this game has long pre-loading sequence so it is not recommended.)

I REALLY wish I knew changing portraits during a playthrough is going to be nigh-impossible, because I would've downloaded the custom pack before I actually started playing for the first time.

It now INFURIATES me that I cannot change it - believe it or not I followed every step in this guide (I've used CE before though I'm no code wizard) - and I CANNOT find the hex value for my character's portrait next to its name. It probably doesn't help that I used the armored helmeted male portrat (mt_l.png and mt_s.png) which has a primitive two-character file name.
And yes I actually did convert a custom portrait's .png file to .xnb and put it in the game files, though I did not get far enough to test if it would work.

Is there SERIOUSLY no other way to change your character's portrait on an existing save file? I think I'm roughly halfway through the game so I've got days of gameplay left and I'd like to not be bothered by the unfitting portrait. Immersion is a huge deal-breaker for me.
« Last Edit: September 11, 2019, 10:18:36 pm by Khornet »

BDR

  • Noob
  • *
  • Posts: 1
  • Karma: +4/-0
    • View Profile
Re: Custom Portraits
« Reply #41 on: September 12, 2019, 07:25:55 am »

I REALLY wish I knew changing portraits during a playthrough is going to be nigh-impossible, because I would've downloaded the custom pack before I actually started playing for the first time.

It now INFURIATES me that I cannot change it - believe it or not I followed every step in this guide (I've used CE before though I'm no code wizard) - and I CANNOT find the hex value for my character's portrait next to its name. It probably doesn't help that I used the armored helmeted male portrat (mt_l.png and mt_s.png) which has a primitive two-character file name.
And yes I actually did convert a custom portrait's .png file to .xnb and put it in the game files, though I did not get far enough to test if it would work.

Is there SERIOUSLY no other way to change your character's portrait on an existing save file? I think I'm roughly halfway through the game so I've got days of gameplay left and I'd like to not be bothered by the unfitting portrait. Immersion is a huge deal-breaker for me.

Hey guy,
I made an account on this forum to tell you everything is easy. The user that provided the original guide, Reinhark, went WAYYYYYYYY into detail when he may not have needed to / the game was older then and maybe that was necessary? From what it seems like, he meant if you were literally in the middle of a run and didn't feel like closing the game and reopening.
At least thats what I'm assuming.

Anyway made the account to tell you that you CAN change your portrait at any point in the game on a saved file / character.
All you need to do is use XNBCLI  https://github.com/LeonBlade/xnbcli/releases

Download and extract that. Next, navigate to where your specific portrait is. It is okay if you do not know the file name yet, Just so long as you remember your gender.
For example, My char is a girl, so her portrait was here :  \steamapps\common\Underrail\data\portraits\female



For whichever gender you are locked to, go ahead and copy (NOT CUT, MAKE SURE TO BACK UP THESE FILES IN CASE YOU GOOF) all the files into the XNBCLI folder called "Packed"
Should then look like this :

Then, in the main XNBCLI folder, run the unpack.bat file.
This will unpack each XNB file you had in that folder previously.
You'll need to click through the images and see which one is your current icon to determine what its name was. At least, that's what I did. Its not too many so its easy to confirm.
Once you do so, delete the rest of the unpacked files as you won't need them for the rest of this. Or leave them there, I don't care, I'm not a cop.
You'll get something that looks like this:

Once isolated, you can now just import whatever image file you want and save it as whatever the files name was.png
If you have custom portraits already prepared, Great! If not, You can easily make whatever you want in paint.
Just open it up in there and set the pixels to 100x100 for the _l and 50x50 for the _s

Paint tut  (right click and hit resize with these options filled in / unchecked) :

Finished work :


Simply save this 100x100 monstrosity as whatever your characters portrait was so for mine the file name now must be xpbl_pm_f_s.png and xpbl_pm_f_l.png

When you have finished this, and have made sure you made a backup of the original portraits somewhere,  Go back to the XNBCLI main folder and click the pack.bat
This will pack the new png up into an XNB file.

Now just shove that xnb file which should have the original portraits name back into the steam underrail folder for the respective gender and restart your game.

When finished, Saved character or not, your new profile picture will be displayed.

Shown here on one of my saved characters :

And ya done. AS OF CURRENT PATCH, YOU CAN SWITCH YOUR PORTRAIT ANYTIME USING THIS METHOD.

Shoutouts to Reinhark as they did most of the legwork in figuring this out. I'm just bumping with the knowledge of changing it whenever.
GL and have fun, this game seems pretty good.

Khornet

  • Probably not a Spambot
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Custom Portraits
« Reply #42 on: September 12, 2019, 09:30:32 pm »
My God, so it really was as simple as replacing the contents of the file containing the portrait. I do not know why I did not come up with that myself. Thank you.

I do have a problem though - the portrait I have assigned to my character is also sometimes used by NPCs. Changing it to a different file under the same filename will also change it for every single NPC that uses it. So while it's a solution - it's not a perfect one, since my special snowflake character stops being unique.
Ideally, I'd like to be able to simply re-choose my portrait to a similar manner while during character creation.

« Last Edit: September 12, 2019, 09:45:07 pm by Khornet »

recombinantOctagon

  • Probably not a Spambot
  • *
  • Posts: 3
  • Karma: +7/-0
    • View Profile
Re: Custom Portraits
« Reply #43 on: October 16, 2019, 06:10:49 am »
I made some portraits. They're all cropped out pieces of concept artwork (aside one). I'm planning do some edits based on ingame portraits for the people who want their PC to fit in with the game's aesthetic.

https://mega.nz/#!HhdjGQoL!oeafFWWKqG4Ca9vgFv-SugtsJKPEO7JFUkjDZtsLpRo

Hope you guys enjoy.

Examples:

recombinantOctagon

  • Probably not a Spambot
  • *
  • Posts: 3
  • Karma: +7/-0
    • View Profile
Re: Custom Portraits
« Reply #44 on: October 22, 2019, 07:19:17 am »
More portraits, this time in the game's artstyle. All of the 48 portraits in the link are edits of existing ingame portraits/assets smashed together.

These portraits are all of existing in game armor sets. Currently, I've done one for all of the leather armors added in Expedition (plus regular Siphoner leather), and the four types of metal armor. The metal armors are primarily recolors, with the helmets altered to reflect the inventory sprite for each. I tried my best to include skin and gender variations for every set, as well as regular visor and shaded visor variations for the metal armors. There's a bonus one in there too.

https://mega.nz/#!Skk3mIjD!TClq085xDQ9mzm8z6DtklImY4HSQLRzN2qeYE31R0fI

Examples:

« Last Edit: October 22, 2019, 11:18:18 am by recombinantOctagon »