moistedparanoia Posted February 17, 2013 Share Posted February 17, 2013 Okay, so I was messing around in the strings.lua script, for my mod, and was trying to add the insanity monsters. Whenever I tried, don't starve kept on crashing. I set it up just like beefaloes and the other ones. Any help? Or should I just wait for the mods to implement them? Link to comment Share on other sites More sharing options...
dontstarver.wiki Posted February 17, 2013 Share Posted February 17, 2013 uninstall all, if you dont know how it exactly works. and for future do not modify strings.lua/gamelogic.lua, make a backup folder from your data!thanks Link to comment Share on other sites More sharing options...
WrathOf Posted February 17, 2013 Share Posted February 17, 2013 (edited) First off....you guys have got to stop editing the strings.lua file! It will make Kevin a much happier dev in the long run.Ok, so the shadow creatures are currently NOT inspectable therefore adding anything to strings.lua will not get evaluated.So....here are the changed required to activate inspectable shadow creatures....bearlings included! Add to fn function in shadowcreature.lua, shadowhand.lua, shadowskittish.luaAdd to fn function in rabbit.lua after....inst:AddComponent("inspectable")Add above fn function in rabbit.lua-- MOD -- inst:AddComponent("inspectable")-- /MOD ---- MOD -- inst.components.inspectable.getstatus = GetStatus-- /MOD ---- MOD --local function GetStatus(inst) if inst.components.inventoryitem then if inst.components.inventoryitem:IsHeld() then if inst.israbbit then return "HELD" else return "BEARDLING_HELD" end else if inst.israbbit then return "GENERIC" else return "BEARDLING" end end endend-- /MOD --]]For those still editing the strings.lua Add the following under the STRINGS.CHARACTERS.GENERIC.DESCRIBE sectionAdd these items to the STRINGS.CHARACTERS.GENERIC.DESCRIBE.RABBIT sectionCRAWLINGHORROR = { GENERIC = "What is that!? Spirit of the Beefalo?"}TERRORBEAK = { GENERIC = "What is that!? Spirit of the Tallbird?"}SHADOWHAND = { GENERIC = "Is that you again Maxwell?"}SHADOWHAND_ARM = { GENERIC = "Hey?! Leave my fire alone!"}SHADOWSKITTISH = { GENERIC = "What is that!?")BEARDLING = "Why do the rabbits look so strange?"BEARDLING_HELD = "Wonder what happens when I kill it?"For those of you creating custom lua files Make are new file called mod_shadowcreaturesspeech.lua and save it in the "dont_starve\data\scripts\mods" folder under Steam, then add the following to it.....STRINGS.CHARACTERS.GENERIC.DESCRIBE.CRAWLINGHORROR = {}STRINGS.CHARACTERS.GENERIC.DESCRIBE.CRAWLINGHORROR.GENERIC = [[What is that!? Spirit of the Beefalo?]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.TERRORBEAK = {}STRINGS.CHARACTERS.GENERIC.DESCRIBE.TERRORBEAK.GENERIC = [[What is that!? Spirit of the Tallbird?]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWHAND = {}STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWHAND.GENERIC = [[Is that you again Maxwell?]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWHAND_ARM = {}STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWHAND_ARM.GENERIC = [[Hey?! Leave my fire alone!]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWSKITTISH = {}STRINGS.CHARACTERS.GENERIC.DESCRIBE.SHADOWSKITTISH.GENERIC = [[What is that!?]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.RABBIT.BEARDLING = [[Why do the rabbits look so strange?]]STRINGS.CHARACTERS.GENERIC.DESCRIBE.RABBIT.BEARDLING_HELD = [[Wonder what happens when I kill it?]]Then add the following line to the language.lua file....require ("mods/mod_shadowcreaturesspeech")Enjoy!Let me know if you have any trouble adding this.I will look at packaging this up for people to download soon.EDIT:It is also possible to have characters say something different for these....just add the speech items under their DESCRIBE sections in strings.lua or mod_shadowcreaturesspeech.lua, e.g. instead of GENERIC, use WILLOW. [MENTION=7941]moistedparanoia[/MENTION](you might change the title of this to include "shadow creatures" or something to make it more specific) Edited February 17, 2013 by WrathOf 1 Link to comment 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