[0.11.0] Invisible orcish shortsword

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

[0.11.0] Invisible orcish shortsword

Post by AuntiePixel »

I looted an invisible orcish shortsword from an enemy. When it's in my inventory but not equipped, it takes up a space, has no graphic, and the mouse tooltip shows it's there (screenshot). If I equip it, it does not show up on the paperdoll. It also doesn't have any tooltip / collision that I can find on the paperdoll. If I strip the doll of all gear, I still can't interact with the shortsword. The only way I found to unequip the shortsword is to equip a two handed weapon in it's place. In first person, the shortsword appears normal. I toggled Dream to be sure it wasn't a texture issue and it's still invisible with vanilla graphics.

Save game attached.

Image
Attachments
SAVE96.zip
(487.59 KiB) Downloaded 72 times

User avatar
Hazelnut
Posts: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: [0.11.0] Invisible orcish shortsword

Post by Hazelnut »

Since you're using a graphics replacement mod, try disabling that and see if it shows up. I suspect the problem is with the mod.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

Re: [0.11.0] Invisible orcish shortsword

Post by AuntiePixel »

I mentioned that in the original post. I'm using DREAM, and I turned it off. Sword was still invisible.

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: [0.11.0] Invisible orcish shortsword

Post by BadLuckBurt »

According to the save file, it's trying to load an image from Texture Archive 232 which does not exist. It probably needs to be changed to archive 233 but I wonder where this sword came from.
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
Hazelnut
Posts: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: [0.11.0] Invisible orcish shortsword

Post by Hazelnut »

What other mods were you running? From what Burt says we need to figure out how it was generated.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

Re: [0.11.0] Invisible orcish shortsword

Post by AuntiePixel »

Roleplay Realism, or roleplay realism - items look like candidates since they affect the loot tables etc. Full mod list in spoilers below.
Spoiler!
09/23/2020 05:06 PM 194,441 archaeologists.dfmod
10/17/2020 05:50 PM 96,387 basicroads.dfmod
06/29/2019 05:11 AM 215,654 birds in daggerfall.dfmod
01/14/2021 01:11 PM 211,454 climates & calories.dfmod
04/26/2020 12:04 PM 16,217 decorator.dfmod
09/10/2020 07:04 AM 996,580 distant terrain.dfmod
12/16/2020 05:50 AM 387,700,648 dream - cinematics.dfmod
12/16/2020 06:02 AM 119,205,761 dream - commoners.dfmod
12/16/2020 07:35 AM 449,570,877 dream - handheld.dfmod
12/16/2020 06:06 AM 124,547,538 dream - hud & menu.dfmod
12/16/2020 06:12 AM 797,196,095 dream - mobs.dfmod
12/17/2020 07:24 AM 272,690,961 dream - music.dfmod
12/16/2020 06:37 AM 476,498,854 dream - npcs.dfmod
12/16/2020 06:44 AM 1,127,489,627 dream - paperdoll.dfmod
12/16/2020 07:54 AM 190,969,792 dream - portraits.dfmod
12/17/2020 07:17 AM 62,085,598 dream - sound.dfmod
12/16/2020 07:56 AM 200,996,419 dream - sprites.dfmod
12/17/2020 07:30 AM 1,491,946,366 dream - textures.dfmod
09/03/2020 06:56 AM 9,108,285 enhanced sky.dfmod
10/18/2020 05:49 PM 29,978,347 handpainted models - buildings.dfmod
10/18/2020 06:02 PM 79,485,017 handpainted models - main.dfmod
10/18/2020 05:50 PM 7,943,634 handpainted models - treasure piles.dfmod
10/06/2020 04:02 AM 9,688 improved interior lighting.dfmod
12/17/2020 11:42 PM 4,208 mightyfoot.dfmod
02/11/2021 11:21 AM 0 modlist.txt
05/14/2020 11:30 AM <DIR> Outfit Manager
07/19/2020 04:25 PM 5,739 races redone.dfmod
09/23/2020 06:19 PM 18,618 randomstartingdungeon.dfmod
09/22/2020 12:10 PM 1,497 Readme - Handpainted models.txt
12/14/2020 01:38 AM 73 readme.txt
02/25/2020 11:51 AM 10,342,937 realgrass.dfmod
10/18/2020 09:18 PM 64,416 roleplayrealism-items.dfmod
01/16/2021 05:48 PM 90,985 roleplayrealism.dfmod
10/05/2020 05:20 PM 144,881,253 splat terrain texturing.dfmod
01/16/2021 06:00 PM 35,610 traveloptions.dfmod
10/24/2020 12:01 PM 13,375 world tooltips.dfmod

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: [0.11.0] Invisible orcish shortsword

Post by BadLuckBurt »

In Assets\Scripts\Game\Items\ItemBuilder.cs, the ApplyWeaponMaterial function substracts 1 when you're playing as a female. So it seems the game somehow generated an Orcish Shortsword using the female archive (233) and then substracted 1. I have no idea what would cause that.

Code: Select all

            // Female characters use archive - 1 (i.e. 233 rather than 234) for weapons
            if (GameManager.Instance.PlayerEntity.Gender == Genders.Female)
                weapon.PlayerTextureArchive -= 1;
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
Hazelnut
Posts: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: [0.11.0] Invisible orcish shortsword

Post by Hazelnut »

AuntiePixel wrote: Thu Feb 11, 2021 4:24 pm Roleplay Realism, or roleplay realism - items look like candidates since they affect the loot tables etc. Full mod list in spoilers below.
I checked my mods (Archs and R&R + Items) and the templates changes don't contain 233 or 234 so I don't think it's them, but it could be a bug I've no idea about. Any chance you can provide the player.log for the session where this happened?
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

Re: [0.11.0] Invisible orcish shortsword

Post by AuntiePixel »

Hazelnut wrote: Thu Feb 11, 2021 4:48 pm
I checked my mods (Archs and R&R + Items) and the templates changes don't contain 233 or 234 so I don't think it's them, but it could be a bug I've no idea about. Any chance you can provide the player.log for the session where this happened?
definitely willing. I've played on since this, but not lots. Should be back on my pc in a couple hours. Where should it be? I'm on Windows 10.

User avatar
Hazelnut
Posts: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: [0.11.0] Invisible orcish shortsword

Post by Hazelnut »

See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply