Jump to content

Recommended Posts

please help me, im making a new item for don't starve and i just cant get the ground image of the item to be visible, i can see it in my inventory i can see it when picked up with mouse from inventory but i cant see it when its on the floor. i have read every guide tried everything for 5 days now, changing the item lua 1000 times, trying with the export folder, trying without it, tried 3 other mods with custom items and copied them all to the core but the item name and it still doesnt work, its driving me nuts!!

please if someone can spare a few minutes to take a look at my item.lua, inventoryimages and the item.zip i will upload them, and tell me where have i gone wrong

please

i beg you

necronomicon.zip

Link to comment
https://forums.kleientertainment.com/forums/topic/30399-help-please/
Share on other sites

Does it have an animaton for being pt on the ground and picked up? if so, are these animations called in the prefab, which I'm guessing is necronomicon.lua? Check that, and look for items in the game's lua files that function like yours. Also,could you upload the entire mod file, not just some things? because I have no idea what goes where. The main mod directory should have several folders, at least anim and scripts. All animations should go in the "anim" folder, and all scripts should go in "scripts/prefabs". If you have the animation in the prefabs folder, the game is not finding them. Tell you what, go to Documents/Klei/DoNotStarve, and attach the log.txt you find After you run the game with your mod once, after you take a look at it. That should be the #1 thing you do with any mod, BEFORE you ask for help.

Does it have an animaton for being pt on the ground and picked up? if so, are these animations called in the prefab, which I'm guessing is necronomicon.lua? Check that, and look for items in the game's lua files that function like yours. Also,could you upload the entire mod file, not just some things? because I have no idea what goes where. The main mod directory should have several folders, at least anim and scripts. All animations should go in the "anim" folder, and all scripts should go in "scripts/prefabs". If you have the animation in the prefabs folder, the game is not finding them. Tell you what, go to Documents/Klei/DoNotStarve, and attach the log.txt you find After you run the game with your mod once, after you take a look at it. That should be the #1 thing you do with any mod, BEFORE you ask for help.

omg you helped me so much you had no idea!

yes the problem was the anim bank

log said: Could not find anim bank [necronomicon]

so i opened the necronomicon.zip and opened anim.bin in notepad++

the words i could find were ANIM, anim, bushhat

bushhat was the problem cause i was using another mods item.zip for testing

so i changed inst.AnimState:SetBank("necronomicon") to ("bushhat") and inst.AnimState:PlayAnimation("idle") to ("anim")

and it worked omg i could kiss you right now but ur a dude probably so heres a big hand shake and bow, thank you!

i am sorry i'm so ingorant, im fairly new to moding but am a fast learner, so i didnt know about the log the game was saving

made the character the pet the item and this ground invisibility thing just couldnt get past it, ill include your help when i upload it in a few days maybe even tonight

thank you again

You're welcome.

can i ask you one more question while were at it, i noticed when my summoned monster dies it drops the item which i use to summon it, thats when it dies normaly, but when it dies of fire damage the item just burns and it drops only ash, how could i make the item noneburnable, cant seem to find the code for it anywhere, i find

 

    MakeSmallBurnable(inst)

    MakeSmallPropagator(inst)

 

and

 

    MakeSmallBurnable(inst, TUNING.MED_BURNTIME)

    MakeSmallPropagator(inst)

 

but what would be the code for it to be not burnable, cant find it in any of the noneburnable items, they only dont have any of these lines but neither does my item, if you could help, i think it has to do something with inst:AddTag, tried a few but noone seem to work

thank you in advance

I'm not a coder, but couldn't you just take out those burnable lines? Pure assumption here, but I've checked rocks.lua and grass.lua to try my luck, haha. xD

 

You could try putting -- in front of those lines in case any problems occur, then it'd be easier to reset them.

I'm not a coder, but couldn't you just take out those burnable lines? Pure assumption here, but I've checked rocks.lua and grass.lua to try my luck, haha. xD

 

You could try putting -- in front of those lines in case any problems occur, then it'd be easier to reset them.

yeah i tried deleting them like for instance ash.lua doesnt have it and its not burnable. when i remove them mod runs fine but the item still burns when the monster that's supposed to drop it dies of burning dmg. must be some code i need to add in the item.lua maybe even in the monster.lua that drops it, but have no clue what

 

ty anyway for trying to help :)

Items are only burnable when they have the component "burnable". So removing all these lines and any line like AddComponent("burnable") should definately prevent the item from burning.. I'm 99.42% sure you're missing something otherwise..

i removed it from the item.lua and it is not burnable but the thing is i use that item to spawn a monster and the item dissapears, but when the monster dies of fire it should drop the item but it drops only ash (item burned) if it doesnt die from fire it drops the item normaly, the monster that drops the item is burnable it has

 

    MakeLargeBurnableCharacter(inst, "marker")

    inst.components.burnable.flammability = TUNING.LEIF_FLAMMABILITY

    inst.components.propagator.acceptsheat = true

 

in its lua

 

and the normal

 

    inst:AddComponent("lootdropper")

    inst.components.lootdropper:SetLoot({"necronomicon"})

 

dont have a clue what to do

Yep, everything that is dropped by a burning thing will become ash.. I didn't know that yet. With the limited time I have I can only come up with a rather stupid workaround. Create a prefab that's called "necronomicon_cooked" which on pickup removes itself and creates a "necronomicon" instead. That is rather stupid but it should work...

i will definitely try those out, ahh hell ill upload the mod now, just made the whole monster not burnable and thats it for now, will try to change it at the weekend i just dont have the nerves now, am away from one more not working thing to give the laptop wings xD

 

thank you in advance good people for helping my, i will try those definitely

 

thank you all!

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