Topic: Adding in new Items question  (Read 8103 times)


Xellophane

« on: January 17, 2018, 02:14:22 AM »
Hey all, I'm messing around with the modding that is possible in the game and wanted to make sure I hadn't run into a quirk before I investigated further.

Whenever I add in a new entry such as this for example's sake:
Code: [Select]
.Fiber Cord. "BASE ITEM"  *TIMBERCRAFT* [effort:1] [phys:hands] /60/ %-40% |-2|
{Fiber Strip} (3) [remove]
{Knife} <Small knife>
and do not put the "BASE ITEM" into the entry, the item will not show up as an entry in the menu. From my understanding I should be able to, am I misunderstanding that?
The game does seem to detect that the item is there, as it'll read the item after it if it has "BASE ITEM" as #2 in the list. To clarify, if I have two items, 'Fiber Strip' and 'Fiber Cord'; if 'Fiber Strip' does not have the "BASE ITEM" tag while 'Fiber Cord' does, 'Fiber Strip' will not show up in the menu while 'Fiber Cord' does as the entry after 'Fiber Strip'.

Privateer

« Reply #1 on: January 17, 2018, 04:09:40 AM »
 Hello :D

 I think a simple misunderstanding of what was meant by "BASE ITEM".
~Base item~ this is an object in the game that can be created, it also serves as a base for the; type, material, weight, purpose etc.

So for your code;
.Fiber Cord.  "Cord" etc etc

would be the proper usage.
 This will create an item called "Fiber Cord" the item will be Cord behind the scenes unless you change other properties.

Have fun

 Oh btw for a good list of all the items (well the vast majority) the file "create_objects.txt" has it for whatever version you are running.
To help is it's own reward.
Mods:
https://www.unrealworld.fi/forums/index.php?action=profile;area=showposts;sa=attach;u=10 Player Quests, Arrow quiver, Bee hives honey & mead, Massive menus, Fish Farmer, Combat trainer, Player made markers, Weaving, Wood stacks, Chicken coop Fish cuts, string&bone.

Xellophane

« Reply #2 on: January 17, 2018, 04:56:39 AM »
Hello :D

 I think a simple misunderstanding of what was meant by "BASE ITEM".
~Base item~ this is an object in the game that can be created, it also serves as a base for the; type, material, weight, purpose etc.

So for your code;
.Fiber Cord.  "Cord" etc etc

I was using "BASE ITEM" as a variable to provide an example, my apologies for not being more clear about that. The overall question was if it would be possible to create an item without using that... tag? definition? I'm not sure what to refer to it as. Thank you for that list too.

Privateer

« Reply #3 on: January 17, 2018, 04:59:27 AM »
You can create base items without it
.Cord.

You can not create something "new" without basing it on an ingame item to start.
To help is it's own reward.
Mods:
https://www.unrealworld.fi/forums/index.php?action=profile;area=showposts;sa=attach;u=10 Player Quests, Arrow quiver, Bee hives honey & mead, Massive menus, Fish Farmer, Combat trainer, Player made markers, Weaving, Wood stacks, Chicken coop Fish cuts, string&bone.

Xellophane

« Reply #4 on: January 17, 2018, 05:21:42 AM »
Oh. Well that makes things more interesting from a design perspective. So it's a modding quirk and not a bug. Thank you for the help ^.^

caethan

« Reply #5 on: January 17, 2018, 08:45:55 PM »
I tend to use Hunting Horns as base items because they're not used by any other crafting recipes and they generally don't interfere.  One other quirk of this system is if you use, say, a staff as a base item for a new recipe, that new item can be used anywhere a staff could be used for crafting.  And it will autoselect those items for recipes when you may not want to.  Sometimes you want this behavior - like for your cords, you want them usable as cords.  But for something like a distaff, you may not want the fine distaff you crafted autoselected for making javelins.

Xellophane

« Reply #6 on: January 18, 2018, 05:48:12 PM »
As far as the item inheritance and crafting goes, the wiki page on modding did mention it and it does make design a bit more interesting. It also makes that info about the Hunting Horn all the more useful too! Are there any other items like the Hunting Horn? Or is there something else that makes the Hunting Horn well suited for a base item?

 

anything