kilenator Posted December 15, 2013 Share Posted December 15, 2013 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 wrongpleasei beg younecronomicon.zip Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/ Share on other sites More sharing options...
goldfish911 Posted December 15, 2013 Share Posted December 15, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-389898 Share on other sites More sharing options...
kilenator Posted December 15, 2013 Author Share Posted December 15, 2013 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 banklog 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, bushhatbushhat was the problem cause i was using another mods item.zip for testingso 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 savingmade 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 tonightthank you again Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-389945 Share on other sites More sharing options...
goldfish911 Posted December 15, 2013 Share Posted December 15, 2013 You're welcome. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390010 Share on other sites More sharing options...
kilenator Posted December 16, 2013 Author Share Posted December 16, 2013 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 workthank you in advance Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390177 Share on other sites More sharing options...
aredshroom Posted December 16, 2013 Share Posted December 16, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390179 Share on other sites More sharing options...
kilenator Posted December 16, 2013 Author Share Posted December 16, 2013 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 Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390184 Share on other sites More sharing options...
Malacath Posted December 16, 2013 Share Posted December 16, 2013 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.. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390188 Share on other sites More sharing options...
kilenator Posted December 16, 2013 Author Share Posted December 16, 2013 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 Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390192 Share on other sites More sharing options...
Malacath Posted December 16, 2013 Share Posted December 16, 2013 I'll check for the reason when I get home. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390247 Share on other sites More sharing options...
Malacath Posted December 16, 2013 Share Posted December 16, 2013 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... Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390301 Share on other sites More sharing options...
TheDanaAddams Posted December 16, 2013 Share Posted December 16, 2013 Could it be easier, perhaps, to just make the Necronomicon spawn at the location of the creature when it dies? As opposed to dropping as loot.If it's not flammable, and not dropping from the creature directly, it should be fine, right? Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390308 Share on other sites More sharing options...
Malacath Posted December 16, 2013 Share Posted December 16, 2013 I think it would amount for less work.. Yes, definately less work.. I myself would make sure to still give the thing a random velocity so it really looks like it's being dropped. Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390332 Share on other sites More sharing options...
kilenator Posted December 16, 2013 Author Share Posted December 16, 2013 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! Link to comment https://forums.kleientertainment.com/forums/topic/30399-help-please/#findComment-390364 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now