I like it very much too
Only I was worrying that such breastplate offer almost no protection for the belly, so it looks like not very useful for the wearer
Re: Custom Portraits
Posted: Sun Oct 20, 2019 1:16 pm
by Sitrus
Firebrand wrote: ↑Sun Oct 20, 2019 10:30 am
I like it very much too
Only I was worrying that such breastplate offer almost no protection for the belly, so it looks like not very useful for the wearer
Most of Daggerfall armors rely on "boobplate", which I personally detest, but since the parts are cutouts, to make everything compatible, you have to make the cutout point as close as possible to where the ribs end, unfortunately. (As can be seen on this armor)
First attempt at a Dwarven armor. I'll get around to fixing the left arm here sometime, when I have something for all armor tiers
Daggerfallprogress20.png (545.73 KiB) Viewed 2069 times
Re: Custom Portraits
Posted: Fri Oct 25, 2019 6:51 pm
by Sitrus
I am still working on this, I'll just be updating less as there's not much to show at this stage. I'm mostly fixing items and trying to come up with a solution on how to automate the recolouring, because I am a lazy fuck.
Right now I'm trying to copy the colour scheme from a source image, attach it to the target and then copy the alpha channel over from the original image and parts that I don't want recoloured from another source overlaid to the generated image. I have done some experiments, but they color schemes are not turning out as how I want them.
If anyone wants the script (in python) I'm using for generating the xml files for items or the generic items for ones that do not have recolors, here you go.
Hi! Thanks for the update - The recoloring can be painful, I hope you can find some easy way thru it! I cant code jack so all I can do is pray
Re: Custom Portraits
Posted: Sat Oct 26, 2019 12:33 pm
by Sitrus
and I solved the recoloring issue, it's not perfect but for now this method works. I'll fiddle around more as I get to it
Here's the script I wrote for it, if someone else needs it. Usage only recommended with the blue items, as the coloring is hard coded. The overlaying works as follows, have an image of exact same proportions with the areas you do not want to recolor and rest as alpha. Have it in the same folder as the file you're recoloring with the suffix "_overlay.png", so if you have "236_84-0.png", for overlay you need "236_84-0_overlay.png".
Do not feed in images with the color suffix, unless you want to manually rename the items afterwards. It will save those items with the suffixes.
I have absolutely no conception about what you're doing here, but it looks great.
One thing that occurs to me is that if computing the recolouring could be done in-game to avoid the disk/memory overhead of replacementImages * numColours? Just curious whether that may be feasible.
Re: Custom Portraits
Posted: Sat Oct 26, 2019 9:00 pm
by King of Worms
Hazelnut wrote: ↑Sat Oct 26, 2019 8:25 pm
I have absolutely no conception about what you're doing here, but it looks great.
One thing that occurs to me is that if computing the recolouring could be done in-game to avoid the disk/memory overhead of replacementImages * numColours? Just curious whether that may be feasible.
That would be a question for The Lacus, but he decided to do it this way, so I guess there were reasons. I think the ingame recoloring works with the 256color palette and changing it to a full color we use nowadays is the problem here. Changing the upscaled images to 256colors does not help. There are only specific shades of each color in Daggerfall clothing. So I guess there are 16 or 32 specific shades of the base blue color and than the same amount of shades corresponding to the different dyes like red, green etc.. and these shades need to be exact match for this ingame recoloring (palette swap) system to work.
PS: judging by the tests Ive run, using your add_all commands show that the amount of these images is not a problem for the game, even if you have all these items in the inventory at the same time, which will not happen in a regular gameplay.
Re: Custom Portraits
Posted: Sun Oct 27, 2019 2:34 pm
by Sitrus
Hazelnut wrote: ↑Sat Oct 26, 2019 8:25 pm
I have absolutely no conception about what you're doing here, but it looks great.
One thing that occurs to me is that if computing the recolouring could be done in-game to avoid the disk/memory overhead of replacementImages * numColours? Just curious whether that may be feasible.
As King of Worms said, the Unity engine seems to be able to handle all items in the inventory at once just fine. Besides that, as I do the recoloring pixel by pixel to retain all information, instead of a filter; it would be extremely heavy to do constantly at the run time.