Jump to content

Recommended Posts

I've had a lot of trouble making this character and her perks, but I finally managed to get her working!
But now I'm facing the issue of getting a custom item working for them!
So far I've made the item and called it "bunwand" using THIS.
But now I get this this error log when I try to use the character now that I have the item with her.
Specifically I need help getting the item to spawn in my characters inventory and figuring out what code I need to make it act like a never ending torch!
I hope you can spare some time to help me with this! It's my first time making an item!

Below is the crash log and my mod!

client_log.txt

Lavbun.zip

[00:01:11]: WARNING! Could not find region 'lavbun.tex' from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'. Is the region specified in the atlas?
[00:01:11]: Looking for default texture '' from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'.
[00:01:11]: Error Looking for default texture in from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'.
[00:01:11]: WARNING! Could not find region 'lavbun.tex' from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'. Is the region specified in the atlas?
[00:01:11]: Looking for default texture '' from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'.
[00:01:11]: Error Looking for default texture in from atlas '../mods/Lavbun/images/names_gold_lavbun.xml'.

The references to the tex and xml files in the code are incorrect and/or your XML files are incorrect. From what it's saying, you could try going to your names_gold_lavbun.xml file, and change the element name to "lavbun.tex", since it seems to be expecting the element name to be that.

Then...

[00:01:13]: Can't find prefab bunwand

...means that your prefab isn't being created.

You seem to be missing some things pertinent to a DST item. At least the inst.entity:AddNetwork() call. Take a look at this Cactus Armor.zip from my newcomer post, to see which things you might be missing e.g. MakeHauntableLaunch(inst) and the inspectable component.

Edited by Ultroman

Thanks you so much for giving me your time!
I did what you told me to do, but it seems like the same issue occurs with the "lavbun.tex" file! 

I compared both the wand and cactus armor and added what seemed to be missing like MakeHauntableLaunch and Inspectable component and others, but still won't get a prefab from it?

Am I still doing something wrong? I refuse to give up on this mod.

Lavbun.zip

client_log.txt

This works Lavbun.zip

Things I fixed:

  1. You had missed fixing names_gold_lavbun.xml
  2. You did not include "bunwand" in your list of prefabs at the top of modmain.lua

Those two things fixed everything, really. Then I also added name and description for the item (also in modmain.lua), and I changed all the e.g. STRINGS.NAMES.lavbun to STRINGS.NAMES.LAVBUN just to be consistent with how it's usually done by others and in the game code.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...