Morphing Weapons [message #58457] |
Mon, 12 July 2010 10:33 |
|
Keshire
Messages: 1266 Registered: July 2005
|
Administrator
|
|
|
Here's what has failed, and what hasn't been tried yet:
Adding CAppearanceModifierDef (obviously a must) = Nothing
AlwaysFrameUpdate = Nothing
IsClothing = Nothing
GroupDef = Nothing
CAMD-AppearanceType = Changed to a few values, Nothing
The stat modifiers of it also seem to not be registering.
Haven't messed with Body Placement yet.
Haven't tried to tie it to heromorhpdef for texture changes (ala prophet robes I did)
Haven't removed all the non-essential cdefs from the weapon.
Haven't tried using a skeletal mesh (like Bows). It'd be pretty stupid if that was a requirement though. But stupid hasn't stopped some of the design decisions so far.
Otherwise I'm missing a value or something that says it can morph.
Any ideas?
Edit: Tried everything in red.
Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
[Updated on: Mon, 12 July 2010 16:06] Report message to a moderator
|
|
|
|
|
|
Re: Morphing Weapons [message #58479 is a reply to message #58478] |
Mon, 12 July 2010 21:11 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
Okay, I've edited this post quite a few times now. Needs to be reorganized.
My base is the OBJECT_HERO_HORNS. I have added all the CTCs and CDefs that you would find in any weapon or clothing entry. I'm using the animated longsword meshes posted above for AppearanceModifier morphing, as well as the iron longsword as the "folded" static mesh in the OBJECT entry.
I have had everything set to act as a weapon, and it functioned exactly as a weapon despite all the clothing entries. Interestingly enough, it would also be automatically worn. So I has two OBJECT_HERO_HORNS going on, one as a weapon, the other as clothing, both at the same time. Unfortunately, morphing only worked on the clothing one. You think having no effect is bad? I had two no effects of different kinds at the same time.
I have had everything set to act as clothing, even going so far as to actually turn it into clothing that won't automatically be worn and so must be spawned***, they were gloves. As clothing, they morphed as expected. But it wasn't a weapon.
Switched everything back to act as a weapon except for InventoryCategory and InventoryType in the CInventoryItemDef, which remained as clothing. The item acted as clothing, morphing worked.
Switched everything once more back to act as clothing, switched InventoryCategory and InventoryType in the CInventoryItemDef to act as a weapon. Again, the item acted as a weapon, morphing did not work.
Having InventoryType and InventoryCategory not match resulted in a crash in both Clothing/Weapon and Weapon/Clothing combinations.
After countless experiments, I have played around with everything you have in the first post in every imaginable combination except the CHeroMorphDef. Which is a bad thing because the only thing the CHeroMorphDef can morph without a CAppearanceModifierDef is the Hero. What will happen is that we'll only be able to successfully implement texture morphing on the swords that act as clothing and not the swords that act as swords.
*** Unrelated notes.Something is telling the game to force the Hero to wear OBJECT_HERO_HORNS and to treat it as clothing despite it being a weapon. Wanted to see if there's anything that can be done to make the game treat the horns as a weapon despite the CInventoryItemDef saying that it's clothing. I've looked into this and nothing in any of the binaries makes any reference to the horns by ID number or entry name, so I'm guessing it's hardcoded magic. Interestingly, changing the CAppearanceModifierDef of the horns to make them more like regular clothing, specifically AppearanceType, will stop them from being worn automatically. Changing all of the values of any other clothing to mirror that of the horns, even naming the OBJECT entry to OBJECT_HERO_HORNS, does not make that item automatically worn. Whatever is making that happen is using the ID number.
Last edit, and then I quit. Tried the CHeroMorphDef. Started out with nicomon's idea and then just tried to get anything going with the CHeroMorphDef, got nothing for weapons. Exhausted this one. Tried it with and without the CAppearanceModifierDef, with static and animated meshes, same as before. Works only on clothing.
Must have edited this post over a dozen times. Time for some much earned sleep.
[Updated on: Tue, 13 July 2010 03:03] Report message to a moderator
|
|
|
Re: Morphing Weapons [message #58481 is a reply to message #58479] |
Mon, 12 July 2010 21:32 |
|
Nosferatu
Messages: 113 Registered: June 2010 Location: Under Your Desk, Go Take ...
|
|
|
|
looks like some good advantage is going on here, ill definitely check this post time to time.
Pain, Anger, Hate, Fear, Chaos, Darkness, Evil, Hell.
The Gates Are Open:
Gate 1: Darkness, The World Of Demons.
Gate 2: My Gaurds Are Watching You.
Gate 3: Only Evils Lives Here.
Gate 4: There's No Way Out.
Gate 5: Feel The Fire.
Gate 6: Pick Up Your Weapons And Fight.
|
|
|
Re: Morphing Weapons [message #58486 is a reply to message #58457] |
Tue, 13 July 2010 05:26 |
|
Keshire
Messages: 1266 Registered: July 2005
|
Administrator
|
|
|
Guess it's time to see what's so different about the inventory stuff between weapon and clothing.
Edit:
INVENTORY_CATEGORY -> Available Augments (obviously not related to augments at all...)
INVENTORY_TYPE->BF94D2A0
-Weapon = False
-Clothing = True (Only Type to be set True)
->28231802 & 56BB8233 clothing has floats set to 1.0 (might just be menu related though)
->InventoryIdentifier
-Weapon = 3
-Clothing = 2
The rest is just menu stuff. Text, Hero Suits, and floats for x/y positions.
Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
[Updated on: Tue, 13 July 2010 06:39] Report message to a moderator
|
|
|
Re: Morphing Weapons [message #58567 is a reply to message #58486] |
Thu, 15 July 2010 14:18 |
nicomon
Messages: 199 Registered: November 2007 Location: Zearth
|
|
|
|
Stranger, if you haven't deleted it yet, could you send me an FMP of what you've got on this?
I divided by zero and survived.
Two of Diamonds, people. This is important.
|
|
|