Sebakool Posted March 31, 2021 Share Posted March 31, 2021 Hello to ya'all, after several hours figuring why is not a mod for craftable killer beehives for regular dont starve, I got the idea to do it miself... It worked! At least almost all what i intended worked, I am now able to craft killer beehives, but not in the way in intended. I got two issues: The first one is that the icon for the hive is not displayed correctly (this issue isnt important for me), it just gets the icon from the item that is above of him. The second and real problem is when i craft the beehive, it is placed imediatelly where i crafted it. It doesnt allows me to choose where to put it like a normal structure. Im "noob" programmer on this game, and i mean i just started about one hour ago. That would be nice if someone more knowledge on thi could help to solve this problems. thanks ya'all. PD: Here is the code :P STRINGS = GLOBAL.STRINGS RECIPETABS = GLOBAL.RECIPETABS Recipe = GLOBAL.Recipe Ingredient = GLOBAL.Ingredient TECH = GLOBAL.TECH STRINGS.RECIPE_DESC.WASPHIVE = "Protect a zone from even yourself" Recipe("wasphive", { Ingredient("killerbee", 4, Ingredient("honey", 10), Ingredient("honeycomb", 3) }, RECIPETABS.TOWN, TECH.SCIENCE_ONE ) 1 Link to comment https://forums.kleientertainment.com/forums/topic/128454-help-with-finishing-a-simple-structure-mod/ Share on other sites More sharing options...
inferjus4 Posted April 10, 2021 Share Posted April 10, 2021 (edited) This is how some of the structure recipes look in recipes.lua file: Spoiler Most of them after TECH.SCIENCE_ONE or TECH.SCIENCE_TWO have "name_placer" written. I don't know what it is, but maybe there is a problem. Maybe try to write "beebox_placer" or something else at the end of your recipe and try if the mod works. EDIT You can find recipes.lua in scripts folder. EDIT 2 Recipe("wasphive", {Ingredient("killerbee", 4), Ingredient("honey", 10), Ingredient("honeycomb", 3)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "beebox_placer") This recipe now lets me build killer bee hive just like any other structure. Spoiler When I tried to use "wasphive_placer" game crashed when I tried to place a building. Same thing happens when you try to replace "beebox_placer" with "wasphive". EDIT 3 Try to check out code of Fish Farm mod or other mods which add structures to the game, it should help you with solving some issues. Spoiler Buildable Cave Entrance mod may be even better for it, because just like your mod, it uses sprites from the game. Spoiler EDIT 4 Basically if you want to have custom "wasphive_placer" icon you need to make folder in mod files that would provide a sprite for it. Check out files of the mods I mentioned in EDIT 3. Edited April 10, 2021 by inferjus4 1 Link to comment https://forums.kleientertainment.com/forums/topic/128454-help-with-finishing-a-simple-structure-mod/#findComment-1447224 Share on other sites More sharing options...
inferjus4 Posted April 10, 2021 Share Posted April 10, 2021 (edited) I made some progress in terms of sprites: Spoiler I guess I should make background transparent, so it looks better. EDIT Yup, that helped. Now I will try to make placer sprite work properly. Spoiler Edited April 10, 2021 by inferjus4 Link to comment https://forums.kleientertainment.com/forums/topic/128454-help-with-finishing-a-simple-structure-mod/#findComment-1447294 Share on other sites More sharing options...
inferjus4 Posted April 10, 2021 Share Posted April 10, 2021 (edited) It took a lot of work, but I did it! There is an icon, placer and everything needed! Spoiler EDIT Now I am trying to make recipe appear in worlds with DLCs available. It seems to work in vanilla DS, but not in games where DLCs are on. EDIT 2 I fixed it. Now I will be finishing the mod. Edited April 11, 2021 by inferjus4 Link to comment https://forums.kleientertainment.com/forums/topic/128454-help-with-finishing-a-simple-structure-mod/#findComment-1447345 Share on other sites More sharing options...
inferjus4 Posted April 11, 2021 Share Posted April 11, 2021 Aaaand here it is! The mod is completed. Now you can enjoy placing Killer Bee Hive anywhere you want! Link to comment https://forums.kleientertainment.com/forums/topic/128454-help-with-finishing-a-simple-structure-mod/#findComment-1447510 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