WalrusMan Posted February 18, 2015 Share Posted February 18, 2015 Hello, people who are reading this!I need some help making a character mod.The things I need help with:1. How do I make it so my character isn't an enemy of walruses and ice hounds?2. How do I make my character spawn with a fishing rod?( and make it a custom item fishing rod)3. How do I give Maxwell a custom speech for my character instead of "Say pal, you don't look so good. You better find something to eat before night comes!"4. How do I change his damage/ defense? Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/ Share on other sites More sharing options...
bigpak Posted February 18, 2015 Share Posted February 18, 2015 I can try and help, which won't be very much since I'm not the best but I can try. 1. I'm not sure where to start, its over my head, apologies.2. To spawn with an item upon a new world so when you generate the world, try this: local start_inv = { "prefabname",}replace prefabname with the prefab you want to use, so for lets say a piece of honey you would do:local start_inv = { "honey",}To make a new fishing rod, you would need to create a new prefab, which is fairly simple, however if you want it to have custom animations it gets harder, but you can follow this tutorial, I did for one of my first equippables:http://forums.kleientertainment.com/topic/29427-tutorial-creating-a-handslot-equippable-item-from-scratch/ 3. I'm not sure, but I am fairly sure there have been topisc in the past about it, I can try and find them 4. you would edit your characters prefab file, try these lines. for damage: inst.components.combat.damagemultiplier = 3this would increase the damage by 3 times, so a spear would do 34x3 for health: inst.components.health:SetMaxHealth(300 )that would set his health to 300 I am sorry I couldn't be more help, please post if you have more questions or need explanations, apologies Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614371 Share on other sites More sharing options...
Blueberrys Posted February 18, 2015 Share Posted February 18, 2015 1. How do I make it so my character isn't an enemy of walruses and ice hounds? See this post. 3. How do I give Maxwell a custom speech for my character instead of "Say pal, you don't look so good. You better find something to eat before night comes!" STRINGS = GLOBAL.STRINGSSTRINGS.MAXWELL_SANDBOXINTROS = { ONE = "Say pal, you seem hungry", TWO = You'd better eat somethin' before night!",} Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614380 Share on other sites More sharing options...
WalrusMan Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) See this post.STRINGS = GLOBAL.STRINGSSTRINGS.MAXWELL_SANDBOXINTROS = { ONE = "Say pal, you seem hungry", TWO = You'd better eat somethin' before night!",}Where do I find the Maxwell speechNEVERMIND Edited February 18, 2015 by WalrusMan Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614391 Share on other sites More sharing options...
Blueberrys Posted February 18, 2015 Share Posted February 18, 2015 (edited) Where do I find the Maxwell speech "..\scripts\strings.lua" Edited February 18, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614394 Share on other sites More sharing options...
WalrusMan Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) @Blueberrys Am I supposed to create that file? :/EDIT:Also, can I add a line 3? Edited February 18, 2015 by WalrusMan Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614423 Share on other sites More sharing options...
Blueberrys Posted February 18, 2015 Share Posted February 18, 2015 @WalrusMan Umm, no. You asked where to find it, that's.. where you would find it. xD Yes, you can add a line 3, but it won't work in his speech unless you add it into the maxwellintro prefab too.local function maxintro_post(inst) local SpeechThreeObj = { string = STRINGS.MAXWELL_SANDBOXINTROS.THREE, wait = 3, anim = nil, sound = nil, } table.insert(inst.components.maxwelltalker.speeches.SANDBOX_1, SpeechThreeObj)endAddPrefabPostInit("maxwellintro", maxintro_post) Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614436 Share on other sites More sharing options...
WalrusMan Posted February 19, 2015 Author Share Posted February 19, 2015 @WalrusMan Umm, no. You asked where to find it, that's.. where you would find it. xDYes, you can add a line 3, but it won't work in his speech unless you add it into the maxwellintro prefab too.local function maxintro_post(inst) local SpeechThreeObj = { string = STRINGS.MAXWELL_SANDBOXINTROS.THREE, wait = 3, anim = nil, sound = nil, } table.insert(inst.components.maxwelltalker.speeches.SANDBOX_1, SpeechThreeObj)endAddPrefabPostInit("maxwellintro", maxintro_post)There is only Prefabs and Speech under Scripts Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614459 Share on other sites More sharing options...
Blueberrys Posted February 19, 2015 Share Posted February 19, 2015 There is only Prefabs and Speech under Scripts Huh..? We're definitely not on the same page here. Let me clarify.The scripts folder of your game has a file called "strings.lua". Inside that file, you can find the text which maxwell says during his speeches.Specifically, the scripts folder at:Steam/Windows: C:\Program Files (x86)\Steam\SteamApps\common\dont_starve\scriptsStandalone/Windows: C:\Program Files\dontstarve\scriptsStandalone/Mac: /Applications/Don't Starve/Don't Starve.app/Contents/scriptsSteam/Linux: /home/username/.local/share/Steam/SteamApps/common/dont_starve/scripts Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614512 Share on other sites More sharing options...
WalrusMan Posted February 19, 2015 Author Share Posted February 19, 2015 (edited) Huh..? We're definitely not on the same page here. Let me clarify.The scripts folder of your game has a file called "strings.lua". Inside that file, you can find the text which maxwell says during his speeches.Specifically, the scripts folder at:Steam/Windows: C:\Program Files (x86)\Steam\SteamApps\common\dont_starve\scriptsStandalone/Windows: C:\Program Files\dontstarve\scriptsStandalone/Mac: /Applications/Don't Starve/Don't Starve.app/Contents/scriptsSteam/Linux: /home/username/.local/share/Steam/SteamApps/common/dont_starve/scriptsYeah, we weren't on the same page. I thought you meant in the mods files. Thanks for clarifying this, but will it only say that for my characters mod? Probably not. Edited February 19, 2015 by WalrusMan Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-614574 Share on other sites More sharing options...
WalrusMan Posted February 24, 2015 Author Share Posted February 24, 2015 Huh..? We're definitely not on the same page here. Let me clarify.The scripts folder of your game has a file called "strings.lua". Inside that file, you can find the text which maxwell says during his speeches.Specifically, the scripts folder at:Steam/Windows: C:\Program Files (x86)\Steam\SteamApps\common\dont_starve\scriptsStandalone/Windows: C:\Program Files\dontstarve\scriptsStandalone/Mac: /Applications/Don't Starve/Don't Starve.app/Contents/scriptsSteam/Linux: /home/username/.local/share/Steam/SteamApps/common/dont_starve/scriptsI edited some of the strings folder. Now the game crashes on start up Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-615994 Share on other sites More sharing options...
bigpak Posted February 24, 2015 Share Posted February 24, 2015 (edited) Log? Also, are you editing it via a mod or through the original game files? Edited February 24, 2015 by bigpak Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-615996 Share on other sites More sharing options...
WalrusMan Posted February 24, 2015 Author Share Posted February 24, 2015 Log? Also, are you editing it via a mod or through the original game files? Original game files. Also, where's the log? Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-615997 Share on other sites More sharing options...
bigpak Posted February 24, 2015 Share Posted February 24, 2015 (edited) You should edit it through a mod, also C:\Users\NAME\Documents\Klei\DoNotStarve\log.txt Edited February 24, 2015 by bigpak Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616017 Share on other sites More sharing options...
Blueberrys Posted February 24, 2015 Share Posted February 24, 2015 (edited) Original game files.Oh no.. no no no. Did you make a backup, at least? Edit: Logs. Edited February 24, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616037 Share on other sites More sharing options...
WalrusMan Posted February 24, 2015 Author Share Posted February 24, 2015 Oh no.. no no no. Did you make a backup, at least?Edit: Logs.I can just re-download my games original files (Thanks, Steam!) and I'll backup my mod. But how am I supposed to edit the strings files in a mod if it's only in the original game files? Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616126 Share on other sites More sharing options...
Blueberrys Posted February 24, 2015 Share Posted February 24, 2015 (edited) @WalrusMan STRINGS = GLOBAL.STRINGSSTRINGS.MAXWELL_SANDBOXINTROS = { ONE = "Say pal, you seem hungry", TWO = You'd better eat somethin' before night!",} Just put that in your modmain? Edited February 24, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616206 Share on other sites More sharing options...
WalrusMan Posted February 24, 2015 Author Share Posted February 24, 2015 @WalrusManJust put that in your modmain?I thought it was strings ;-; Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616237 Share on other sites More sharing options...
Blueberrys Posted February 24, 2015 Share Posted February 24, 2015 @WalrusMan Yes and no. You are modifying the STRINGS variable from your modmain.lua file. Not modifying the strings.lua file. Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616243 Share on other sites More sharing options...
seronis Posted February 24, 2015 Share Posted February 24, 2015 (edited) Never modify a vanilla file unless there is utterly no other way to inject your feature. Only modify the data, not the file. Edited February 24, 2015 by seronis Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616245 Share on other sites More sharing options...
WalrusMan Posted February 24, 2015 Author Share Posted February 24, 2015 (edited) I'm not going to start a new thread over this:How do I make him transform like Woodie does? Edited February 24, 2015 by WalrusMan Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616264 Share on other sites More sharing options...
seronis Posted February 24, 2015 Share Posted February 24, 2015 (edited) Honestly I dont know but how much have you looked into woodies prefab file? Or looked at Fidooops markiplier mod (or someother) that does transformations ? When it comes down to it if you dont need a visual effect you can just swap the animation batch with a new one same way you originally set it in the fn() constructor in your characters prefab. Edited February 24, 2015 by seronis Link to comment https://forums.kleientertainment.com/forums/topic/51141-need-more-mod-help/#findComment-616272 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