I was wondering if it were possible to create new items. Now, I will say that I've already successfully changed item combos for crafting by modifying ItemCombos.txt and ItemComboPreviews.lsx. I can make a pre-existing skillbook be created from wool and water if I want. But this is only modifying based off existing items (whether they be consumables or books_scrolls (which both have their separate .lsf files).
When I attempt to create an item, using a template from a currently existing item but changed to be my new item, it doesn't really work. I can set it up to be created in the crafting, and indeed I get a non-existant "Unknown Item" combo. The best clue I can find is that in the .lsx files for items (Books_Scrolls.lsf for example), they all have unique "MapKey"s.
Example
This is the Man-At-Arms Inspire/Encourage skillbook
<attribute id="MapKey" value="6db02a85-14a3-4ada-8247-74014e045aeb" type="22" />
This is the Man-At-Arms Shackles of Pain skillbook
<attribute id="MapKey" value="99fa47fa-a40a-4dc1-b34b-ec3c987ab3d5" type="22" />
That's just two examples, but needless to say every type of item has a unique mapkey. The strings convert into bits of decimal, as they look to be Hex, but there isn't a pattern that I know of, so I'm not sure where the game is creating/originating these numbers from. I've tried changing the mapkey to be a new random number, same length, just off a few numbers, but that doesn't work either.
So yeah, anyone have any idea? Like I said, I can add new recipes to use
existing items to create
existing items, but the recipe fails when attempt to combine into an item I've created. Which actually means, most likely, that I'm failing to create an item correctly and the issue isn't the recipe combos.
I've been using the .lsf files in the RootTemplates to attempt to create new items, since those files house all the things like consumables, tools, etc. The only thing is that I've been copying existing mapkey IDs and that just doesn't work, so I'm pretty sure that's why I can't make new ones. Any help would be lovely, thank you!
Edit: From what I can tell, I also need an entry in something like object.txt or armor.txt. I've inserted a new one, which changed how far I've gotten. Now, instead of getting an unknown item, the game crashes on item combination. It dings like it made it but just before the icon shows up and it finishes, the game crashes. This was with the mapkey ID being a duplicate number from a real item, so I tried changing the mapkey to a different number by a few digits, the game crashes differently - right as the bar fills up but before the ding, the game crashes. I'm convinced that the mapkey is important and I just can't figure it out.
Edit: I tried taking a valid mapkey from a different item and putting in my new item (in the .lsf roottemplate file) and then deleting the real item's mapkey (in otherwords transplanting) as a temporary test. The game created a blank item but then as soon as I clicked the invisible item in the crafting window the game crashed. So yeah, whatever is up with mapkey, it isn't as simple as "steal some other item's mapkey". Oh well, stumped again!