Is WEAPON03.CIF archive really used in game?

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.
Post Reply
User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Is WEAPON03.CIF archive really used in game?

Post by King of Worms »

These archives are 1st person handheld weapons.

It looks like WEAPON03 is not used. Instead, the WEAPON03.CIF archive is a copy/paste of WEAPON04

Can someone pls also clarify the archives usage per weapon:
WEAPON00
WEAPON03
WEAPON04

Its about the length of the sword:
Short sword (Tanto) - I think this is WEAPON03
Medium (Katana ?) - ........
Long (Dai katana) - ........

It seems to me that all swords have same length in the game now, but when I check the Daggerfall Imaging, there is quite a difference between the archives, esp the 03 is shorter... 00 and 04 appear roughly similar, but its hard to tell.

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

Re: Is WEAPON03.CIF archive really used in game?

Post by Hazelnut »

All blades use 04 except for daggers which use 02. When I looked in imaging before, 00, 03, 04 look identical but I never looked closely.

Code: Select all

        public static string GetWeaponFilename(WeaponTypes weaponType)
        {
            switch (weaponType)
            {
                case WeaponTypes.LongBlade:
                    return "WEAPON04.CIF";
                case WeaponTypes.LongBlade_Magic:
                    return "WEAPO104.CIF";
                case WeaponTypes.Staff:
                    return "WEAPON01.CIF";
                case WeaponTypes.Staff_Magic:
                    return "WEAPO101.CIF";
                case WeaponTypes.Dagger:
                    return "WEAPON02.CIF";
                case WeaponTypes.Dagger_Magic:
                    return "WEAPO102.CIF";
                case WeaponTypes.Mace:
                    return "WEAPON05.CIF";
                case WeaponTypes.Mace_Magic:
                    return "WEAPO105.CIF";
                case WeaponTypes.Flail:
                    return "WEAPON06.CIF";
                case WeaponTypes.Flail_Magic:
                    return "WEAPO106.CIF";
                case WeaponTypes.Warhammer:
                    return "WEAPON07.CIF";
                case WeaponTypes.Warhammer_Magic:
                    return "WEAPO107.CIF";
                case WeaponTypes.Battleaxe:
                    return "WEAPON08.CIF";
                case WeaponTypes.Battleaxe_Magic:
                    return "WEAPO108.CIF";
                case WeaponTypes.Bow:
                    return "WEAPON09.CIF";
                case WeaponTypes.Melee:
                    return "WEAPON10.CIF";
                case WeaponTypes.Werecreature:
                    return "WEAPON11.CIF";
                default:
                    throw new Exception("Unknown weapon type.");
            }
        }
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Is WEAPON03.CIF archive really used in game?

Post by King of Worms »

They are not the same :)
Its not only different resolutions but the blades are shorter for smaller variants. Its not really apparent, so I understand why it was harder to spot.
Would be cool to have all three blade weapons archives working properly in DFU

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

Re: Is WEAPON03.CIF archive really used in game?

Post by Hazelnut »

Do you know if classic uses them?

Been looking in DF imaging and 00 is the same as 04 but the palette is a bit different with a cream/yellow highlight.

However 03 is different in that the frame sizes are a bit shorter and it seems to use the same model but does look shorter in some frames I think.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Is WEAPON03.CIF archive really used in game?

Post by Hazelnut »

Doesn't look to me like 03 is used in classic - just looking visually between tanto,shortsword,longsword, claymore - all look the same 04 set of images to me.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Is WEAPON03.CIF archive really used in game?

Post by King of Worms »

However 03 is different in that the frame sizes are a bit shorter and it seems to use the same model but does look shorter in some frames I think.
Exactly as you stated.
BTW: For magic weapons, there is only one archive used (same 04 suffix) - the other two are non-existent... so if standard weapons use only 04 as well, that would be consistent behavior than.. But if thats the case, its sad that a tantoo is looking the same as Dai katana when equipped :cry:

I have not tested it in vanilla yet, I need to loot some weapons etc..

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

Re: Is WEAPON03.CIF archive really used in game?

Post by Hazelnut »

King of Worms wrote: Sat Mar 28, 2020 3:30 pm I have not tested it in vanilla yet, I need to loot some weapons etc..
Ever heard of a thing called a shop? Or is that not KoW style... :lol:
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Is WEAPON03.CIF archive really used in game?

Post by King of Worms »

Thanks for a reminder :D Yea thats not exactly a KoW way of things :twisted:

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Is WEAPON03.CIF archive really used in game?

Post by King of Worms »

..that being said. I can confirm that vanilla Daggerfall does NOT use those archives and all swords look the same.

On one hand thats good to know, as I can remove those archives from a Mod as its unnecessary bloat.

On the other hand, its sad that we cant have that feature. Because it meants, a small Tanto in a hand will look the same as Dai Katana :X

If we could add those archives - and do what Bethesda intended (because thats why the archives exists and have different dimensions and weapon cut-out) - it would open the possibility to have the short and medium length swords modded in.

If done right - they way you did the Horse with neck meshing - it could be extended to vanilla this way:

Short sword - 50% of length of the Long
Medium - 75% length of the long sword
Long sword - 100% length same as current

This could by done by cutting out the lower portion of the image by 25% or 50%

Dunno, just a idea. For now, I remove those archives from DREAM. So at least its now confirmed feature :)

Maybe that would be a nice way to expand the Combat overhaul by I3lessed viewtopic.php?f=14&p=41539#p41539

Post Reply