Paper Doll items

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
User avatar
jayhova
Posts: 718
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Paper Doll items

Post by jayhova » Fri Aug 30, 2019 10:18 pm

Is it possible to get a semi-official word on this from Interkarma?

The thought in my head was that you could do it in one of two ways. Either have an extended name for the display version of the pic like 123qwe.gif and 123qwe_dsp.gif or have the same name but a seperate folder. Or possibly both to avoid confusion. By default things would work as they do now unless there was a display version available.
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

User avatar
Interkarma
Posts: 5564
Joined: Sun Mar 22, 2015 1:51 am

Re: Paper Doll items

Post by Interkarma » Fri Aug 30, 2019 11:09 pm

If I understand what you're asking, this wouldn't be possible at this time. The paper doll image is reused as the inventory icon, which is why you can see the parts cut away for hands, etc. At this time, DFU's inventory simply reproduces classic and shares the images this way. This was no doubt a very good way to save on texture memory back in the day.

With some work in the modding framework, it could become possible later using a secondary image dictionary for item textures to be shown uniquely in inventory lists instead of the cutaway overlay version. These secondary images could be imported and linked using filename in a similar way to other image replacements.

I can't say if that feature will be added any time soon though, as we're all volunteers and I can't speak for someone else's time. If TheLacus feels like this is something he would like to build, it would not be affected by the feature freeze.

User avatar
jayhova
Posts: 718
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Paper Doll items

Post by jayhova » Sat Aug 31, 2019 6:24 am

Thank you for your input.
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

Zomgmeister
Posts: 21
Joined: Mon Aug 05, 2019 3:05 pm

Re: Paper Doll items

Post by Zomgmeister » Sun Sep 01, 2019 3:15 pm

Got a different question on related matter. How the game knows how to position items on paper doll? For example, I can make a new texture for a right-handed katana, which at the moment does not look good, being displayed in perspective. I can do cutout on the handle, sure, but how can I be sure that the game will put this new texture in right hand and not on head or something?

User avatar
TheLacus
Posts: 1171
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: Paper Doll items

Post by TheLacus » Sun Sep 01, 2019 4:08 pm

Interkarma wrote:
Fri Aug 30, 2019 11:09 pm
If I understand what you're asking, this wouldn't be possible at this time. The paper doll image is reused as the inventory icon, which is why you can see the parts cut away for hands, etc. At this time, DFU's inventory simply reproduces classic and shares the images this way. This was no doubt a very good way to save on texture memory back in the day.

With some work in the modding framework, it could become possible later using a secondary image dictionary for item textures to be shown uniquely in inventory lists instead of the cutaway overlay version. These secondary images could be imported and linked using filename in a similar way to other image replacements.

I can't say if that feature will be added any time soon though, as we're all volunteers and I can't speak for someone else's time. If TheLacus feels like this is something he would like to build, it would not be affected by the feature freeze.
I wouldn't exclude the use of a mask instead of a distinct but almost identical texture. The paperdoll already supports masking, so introducing the ability, if not already there, to provide a mask for any item might be better than the alternative, at least for memory usage.
Zomgmeister wrote:
Sun Sep 01, 2019 3:15 pm
Got a different question on related matter. How the game knows how to position items on paper doll? For example, I can make a new texture for a right-handed katana, which at the moment does not look good, being displayed in perspective. I can do cutout on the handle, sure, but how can I be sure that the game will put this new texture in right hand and not on head or something?
An item image is the combination of texture and meta data; mods can override both of them. See the documentation for details. ;)
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

User avatar
jayhova
Posts: 718
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Paper Doll items

Post by jayhova » Sun Sep 29, 2019 7:09 pm

Okay. What form would assets need to be in? We have the original files would you just need the difference in the two files like a layer with just the patched portion or would it be better to overlay a whole image over the image with the cutout? Mind you I am not suited to do any of the technical work so I will just be making new replacement images.

I'm still questioning whether or not it would not be a good idea to allow separate images for display on and off the paper doll. This would allow the use of images like just the top of the armor for armor worn under clothing. I seems like it would be useful to allow modders to have control of how items appear the paper doll as well as in the inventory.
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

Post Reply