Ornaments
Submitted by bare_elf on Mon, 2014-10-20 08:28 | ||
Armor Ornaments from Broken World should work in Dungeon Siege 2 if one where to create a mod that contained the necessary logic and objects files for the Ornaments in the correct directory structure you would think it just might work if it where to be placed in the Dungeon Siege 2 resources directory. However it does not. Any Suggestions on how I might make this work? forums: |
||
» |
Assumed model and textures are available, all ornament models will fit/work since the basic bone structure they have made for didn't change in the addon.
There's also a good chance that the BW armors/helmets/weapons will work, but it probably would go a bit far to republish larger portions of the addon as mod. However a minor 'content diffusion' shouldn't have real consequences I guess (rather a marketing than an IP issue), and for private usage only there's nothing against anyway.
What's not working exactly? Does anything show or nothing at all?
Here's a tutorial on making ornaments which could be useful as a reference since you're not trying to make one from scratch. Assuming you haven't already made reference to it.
http://ghastley.org/DS/ornaments.html
Of particularly interest are these lines from Ghastley;
To use the ornament, you can include it in either the armor template, if it is to be used by the party members, or in the NPC template if it is specifically for a non-party character. The syntax is slightly different for each.
For an armor, add an [armor_ornaments] section to the [aspect]. You need to provide the full mesh bitmap name, but the mesh name is relative, as the armor can be worn by multiple characters, so you have to supply an ornament for each one - i.e. a female, a male, and a half-giant.
An NPC already has race and gender decided, so there you specify the full name of the ornament mesh.
Do you have an entry for the ornaments folder in the NNK? You won't see anything if that's missing.
No Ghastley I do not have an NNK within my armor mod, did not know I needed one since the armor mod works just fine when playing broken world (the ornaments display correctly, they are the ones that come with broken world not ones I designed). I knew I had to do something since they did not exist in DS2 even though the files are within my mod. Now as for NNK files I am not sure what would be necessary to display the standard Broken World Ornaments when playing DS2 since I have never written an NNK file and would not know where to place it once I had written it. I am assuming that the NNK file is just a text file, even though windows does not know how to open it.
So if someone would be so kind as to point me in the correct direction I would be most grateful.
As KillerGremal pointed out -- namingkey200.nnk exists in both Dungeon Siege 2 and Broken World and both contain ornaments section which is identical.
Now I have no issue with Broken World as my custom armor shows any ornament that I apply to it, but when I use the same armor in DS2 the armor displays correctly but not the ornaments.
Here is a template for one of the many items.
[t:template,n:amr_bdy_elf17_mythril]
{
doc = "mythril_body";
specializes = base_body_ranger;
[aspect]
{
material = mediummythril; //jmc_armor (the radiant sun)
[armor_ornaments]{*=type01_shoulder_02, b_c_gah_amr_orn_type01_shoulder_002;}
}
[common]
{
screen_name = "Lili's Costume";
}
[defend]
{
armor_style = 300;
armor_type = a1;
}
[gui]
{
inventory_icon = b_gui_ig_i_amr_suit_a1_ranger;
inventory_height = 2;
inventory_width = 2;
equip_requirements = ranged:#item_level-2.0;
}
[magic]
{
[enchantments]
{
[*]
{
alteration = alter_armor_source_percent;
value = 5.00;
description = "+500% Armor";
duration = #infinite;
is_permanent = true;
is_single_instance = false;
}
}
}
[pcontent]
{
[base]
{
item_level = 43.0;
}
[var1]
{
item_level = 56.0;
}
[var2]
{
item_level = 63.0;
}
[var3]
{
item_level = 70.0;
}
[var4]
{
item_level = 87.0;
}
[var5]
{
item_level = 96.0;
}
[var6]
{
item_level = 100.0;
}
}
}
The mod contains all the bitmaps for the ornaments and all the meshes for the ornaments -- I have verified that all the folders that make up the mod are correctly located in the logic tree.
I don't remember what DS2 did with ornaments. It may be that it supported NPC ornaments, but not ones for player armours. When I added the shoulder spikes to the Stitched Horror Armour for the tutorial I was working with BW, and they were an item from a BW armour. The bunny tail in the ornament tutorial went on a NPC, not the player.
I suspect the whole [armor_ornaments] block just gets ignored if the engine doesn't handle it, so you get the armour without it.
I doubt the reason is that DS2 only supported ornaments for npcs since a quick search of amr_body_fighter.gas from DS2 reveals that several unique armors (Ravager's Skin, Lescanza Skin & The Radiant Sun) have armor ornaments.
I can't imagine any npcs in DS2 that wear any of these unique armors, the normal variants possibly but the unique versions?
So there must be another reason for them not appearing. The template looks correct so I can't imagine what the reason is.
You are correct iryan to a point. I took the three unique armors you noted and made a quick mod so that I could test them. They work with some ornaments but not all and it appears to depend on the type of armor it is. A1 to A5 I will have to do some additional testing to figure it out but at least I am on the right track.
I know that all of the ornaments listed below work correctly when Using Broken World. So I decided to do a bit of testing on the same ornaments I have yet to test all the ornaments on all armor types however here is what I have found so far.
All of the following Ornaments Work in Dungeon Siege 2 and Broken World on type 1 armor
*=type02_quiver_01,b_c_gah_amr_orn_type02_quiver_001;
*=type04_shoulder_a, b_c_gah_amr_orn_type04_shoulder_002;
*=type04_shoulder_02,b_c_gah_amr_orn_type04_shoulder_005;
*=type04_shoulder_a,b_c_gah_amr_orn_type04_shoulder_006;
*=type03_shoulder_01, b_c_gah_amr_orn_type03_shoulder_001;
*=type02_shoulder_03,b_c_gah_amr_orn_type02_shoulder_003;
*=type05_shoulder_02,b_c_gah_amr_orn_type05_shoulder_005;
The following armor ornaments only work in Broken World on type 1 armor
*=type01_shoulder_05,b_c_gah_amr_orn_type01_shoulder_007;
*=type01_shoulder_06,b_c_gah_amr_orn_type01_shoulder_008;
The following are not yet tested. However I do believe that all of the remaining will function correctly, based on the types that worked during the test.
*=type03_shoulder_02,b_c_gah_amr_orn_type03_shoulder_002;
*=type02_shoulder_04,b_c_gah_amr_orn_type02_shoulder_006;
*=type02_shoulder_04,b_c_gah_amr_orn_type02_shoulder_005;
*=type03_shoulder_03,b_c_gah_amr_orn_type03_shoulder_003;
*=type02_shoulder_03,b_c_gah_amr_orn_type02_shoulder_003;
*=type05_shoulder_03,b_c_gah_amr_orn_type05_shoulder_003;
*=type05_shoulder_03,b_c_gah_amr_orn_type05_shoulder_004;
*=type05_shoulder_02,b_c_gah_amr_orn_type05_shoulder_002;
*=type05_shoulder_02,b_c_gah_amr_orn_type05_shoulder_005;
*=type04_shoulder_02,b_c_gah_amr_orn_type04_shoulder_005;
*=type04_shoulder_02,b_c_gah_amr_orn_type04_shoulder_003;
*=type04_shoulder_02,b_c_gah_amr_orn_type04_shoulder_004;
I was using the type01 ornaments on the armor that I had issues with.
iryan the uniques you pointed out do not use the type01 ornaments and that is what gave me the clue. I wonder why the type01 ornaments fail to display when playing DS2, as there is no difference in the female characters between DS2 and Broken World.
More thinking and testing required. I want to find out if the type01 ornaments work on any of the armor types when playing DS2
DS2 only has 1 type01 ornament and that's used with the Dryad Armor (amr_bdy_dryad) found in amr_generic.sets.gas. So its possible that none of the other type1 armors will support ornaments in DS2.
Broken World adds another 6 type1 ornaments and they are all used on new armor meshes. A quick look seems to reveal that 3 are npc armors and 3 are playable armors. 2 of these ornaments are used for the talker model meshes.
So I would try the Broken World type1 ornaments on the dryad armor first.
I agree you would think the ornaments would work in DS2 as the female, male and half-giant meshes haven't been altered in Broken World. There could be a simple file that's needed, even just a text file. Remember when we first made the extended armor types in DS2 from the DS1 armors? Who would have thought that armor_lookup.gas could have been responsible for causing issues with the a7 armor mesh (previously DS1 a2 mesh) and a simply edit enough to solve all issues.
Hi Iryan and KillerGremal
@ Iryan, the ornaments that the dryad armor has assigned work on the dryad armor in DS2 however none of the other type 01 ornaments work. I have tried several of the type one ornaments on various of the DS2 Armors and they do not display. So I now know it is not my custom armor that has the issue.
@KillerGremal, I tried to use the type 01 ornaments you added to the hotfix mod. They work fine on the armor you put them on and work also in the addon however they will not work on my custom armor or many of the standard ds2 armors.
Not exactly sure why some work and some do not work in DS2 when almost any combination works in Broken World. Now I have only tried female armor and have not tried the male armor types in DS2. Reason being the custom armor I made only fits female characters. Iryan you made note of an armor_lookup.gas I looked at the one done for adepts as I knew where it lived. Now I am not sure do I need a lookup table for the ornaments or the custom armor (which works in DS2 except for ornaments) how would I do that?
Hm, I don't seem to be able to reproduce this matter, neither with the AnimViewer nor in-game...
Perhaps you should try it out once in the AnimViewer if you didn't yet!?
As you probably know it can directly handle untanked sources, making it some easier to test such things.
There is not ornaments key though, but you could take the boots (key 9) for example to attach ornaments.
The two ornaments for me work fine on armor types a2 through a5 in v2.2 but they do not work at all for me when applied to armor type a1 in v2.2. You say you used a custom template (could you send me a copy of the template via PM or post it here so that I can see the difference between the template I am using and the one you are using?) What is odd is all the other ornament types work just fine on any type 1 armor I apply them to.
I am also having difficulty finding any logic files (templates associated with the ornaments in either v2.2 or v2.3) this I find odd since armor or all types, weapons of all types, and almost every other item in the game has a template associated with it.
Concerning the ornaments I notice that when playing DS2 the ornaments that go on the legs, around the neck and on the Shoulders all appear to function.
However those that fit the upper arm like the spikes do not. Now this should not be an issue since the ornaments that fit the upper arm work in broken world and there is no difference in the character's body. I think I will see what occurs when I try another race and sex maybe I will discover something.
UPDATE:
I tried the male & female elf & human, and dryad. None of them can wear the spikes type01_shoulder_02, b_c_gah_amr_orn_type01_shoulder_002;
on type one armor. Now I am going to try type 2 and type 3 armor with the spikes.
UPDATE 2:
I tried both type 2 and type 3 armor with the spikes and they do not show. However I also had the quiver *=type02_quiver_01,b_c_gah_amr_orn_type02_quiver_001; selected and it showed up fine on the all armor types -- I am currently not using any mod that supplies the quiver except for my armor mod.
Oh just had another idea, be right back! Well that idea was a flash in the pan.
So still stuck but still looking
@KillerGremal
First let me thank you for the gas file you sent me with the custom templates. I built a mod using them. I then turned off all armor and skin texture mods that I have made plus everything related to the legendary mod just to be sure the only things operating Were DS2, Sharkull's My Test World and the new mod I made based on the files you sent me. I then verified that all the ornaments displayed correctly when starting from Broken World just so that I had a baseline and knew what the ornaments looked like. All was good. Next I started DS2 and although the armor displayed correctly there where on ornaments on any of the armor be it type 1, type 2, type 3, type 4 or type 5. So I thought maybe I needed the hot fix mod. So I downloaded and installed version 5f. When I started DS2 again it told me that armor template e157 had a bad aspect. So I commented out that template and tried again. I got the same message for the next item in line I believe it was template e168 so I fixed the template that I commented out and turned off the Hot fix mod and although I had no ornaments in ds2 I did not get any errors. So I am not sure where the error is and why ghastley, iryan and you do not seem to have a problem making ornaments work in DS2 and I do.
On one of my computers I totally uninstalled DS2 and deleted everything related to DS2 all the mods that were installed and deleted the DS2 folder in microsoft games directory. Reinstalled from scratch, patched to version 2.2 I wanted to make sure that everything was just like out of the box with no possible corruption of any file and I got the same result.
So I think I will let this go for a while and work on other things and if I want ornaments on my armor I will play Broken World. I should have never tried to debug a problem with the legendary mod when running in DS2 and then get side tracked trying to discover why the silly ornaments did not work. Oh well it was interesting and I will look at it again when my mind clears.
@bare_elf: That's quite strange... :o
On one hand I tested all armors with the Hotfix mod and they worked fine (these are native DS2 armors, just with ornaments).
On the other hand only the ornament files (*.asp files and their textures) from the addon had to be inside your mod, there is nothing I knew in the Hotfix mod that 'enables' addon ornaments.
However are you really certain that the ornaments files from the addon were available for/in DS2 v2.2?
Just for a testing purpose you also could move once the xObjects.ds2res file from the addon to the resources folder of DS2.
thanks Killer yes that is what I tried to say where NO ornaments I was just very tired when I wrote the post.
I will try putting a copy of xObjects.ds2res in ds2 resources just for test.
thank you
I did as you suggested and moved a copy of xObjects.ds2res to the DS2 Resources folder and the ornaments are now there. There is therefore something in xObjects.ds2res that is missing from Objects.ds2res. I will have to look for it and then when I find it put that file or files into my armor mod and try things again. Thank You for the help.