Jump to content

Recommended Posts

TL;DR, My item has no image or name when dropped, the file is below in .zip format, Please help! (Useful info at the bottom)

 

 

I decided, seeing as some of my friends (we're all incapable) were modding, I was mostly helping code (That's why the art is all... random and unrelated).

I ran into an error; when I drop any item on the ground, or spawn it in, it disappears. When I hover over it; there's no name, no picture and no highlight.

Please help me out! Here are some things that may help:

 

(private mod for friends) I copied the "Bolt Gun", made by emistro the "GreenGuy420", and have thus far renamed the mod to "gun" instead of "boltgun"

-I assume it's a naming issue, however, I have used build renamer and have extensively looked at each build.bin, anim and even xml to attempt to spot the error, no luck.

-Yes, the code is copied. I just want my character to have this weapon so i'll merge the folders later ;P (My character isn't copied and pasted)

Thinggun.rar

Edited by mikey99222
4 hours ago, mikey99222 said:

 

-I assume it's a naming issue, however, I have used build renamer and have extensively looked at each build.bin, anim and even xml to attempt to spot the error, no luck.

Ok so if i understand you used another mod as a base, a mod named Bolt Gun, and renamed the build to "gun". But as far as i know, in the prefab of your gun, there is :


    inst.AnimState:SetBank("gun")
    inst.AnimState:SetBuild("gun")
    inst.AnimState:PlayAnimation("idle")

When you rename a build, you don't touch the anim. The anim name stay the same. So i guess, even if i'm not sure, that the problem could be that you need to keep the original anim name ("boltgun" or whatever it was), and just change the build name, and see if it's better.

5 hours ago, Lumina said:

Ok so if i understand you used another mod as a base, a mod named Bolt Gun, and renamed the build to "gun". But as far as i know, in the prefab of your gun, there is :



    inst.AnimState:SetBank("gun")
    inst.AnimState:SetBuild("gun")
    inst.AnimState:PlayAnimation("idle")

When you rename a build, you don't touch the anim. The anim name stay the same. So i guess, even if i'm not sure, that the problem could be that you need to keep the original anim name ("boltgun" or whatever it was), and just change the build name, and see if it's better.

 

I found the mentioned code in the gun.lua file, I changed the "gun" to "boltgun" (as it was when I got it.)

What happened:

    - I have no clue how, but changing the build in the gun prefab file made my character appear.

    - More bizarrely, the gun is still invisible?

 

Thank you a ton for your time, it really helped :3

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...