MrDeepDarkmind Posted September 20, 2017 Share Posted September 20, 2017 Hello I'm a bit new to the modding scene and wanted to make my own tweak mod for Don't Starve overall I don't seem to find a thread that talks about this or not but if anyone can tell me how or link me a thread that shows how to do one. I appreciate it so much Link to comment https://forums.kleientertainment.com/forums/topic/82171-how-do-i-make-a-tweak-mod/ Share on other sites More sharing options...
w00tyd00d Posted September 28, 2017 Share Posted September 28, 2017 The best place to start is to try a get a bit familiar with their API. Here's is a link to their sample mod, give that a download and just take a look at the files inside with a text editor (I'd recommend Atom or Sublime, but Notepad++ also works, something with syntax highlighting). Do note that you'll need to have a least a little bit of prior knowledge in Lua, but fortunately Lua is generally a pretty easy language to read even for non-programmers. From there I would then suggest downloading a mod or two that you're familiar with and how they work in-game, then open their files up through a text editor and see how the modder set up their mod. Everyone has their own style and naming conventions, so it's good to take a look at a few different mods to see how everyone does it differently, but you'll notice they're using the same API functions but in a practical way instead of just an example. Lastly, just start simple and baby step from there. I'd start with something like adding or configuring a new recipe in the game as it's one of the easier things to do (one simple function) but there's a bit more of a process to building a mod than just its functions so it helps to start simple to get used to things like setting up your modinfo.lua and, if you ever plan on uploading it to the workshop, you'll need to make an icon and take screenshots to show off the mods features, etc. Then once you finally get a grasp on the whole process, you can always expand your mod from there or make a new one with a different idea in mind. The choice is yours. Hope this helped! Link to comment https://forums.kleientertainment.com/forums/topic/82171-how-do-i-make-a-tweak-mod/#findComment-958800 Share on other sites More sharing options...
w00tyd00d Posted September 28, 2017 Share Posted September 28, 2017 And really if you're only looking to adjusting certain numbers of the game here and there, that's even easier lol All of the game's tuning numbers are located in tuning.lua, and to adjust any of their values are as easy as just setting a variable. It would look something like this in your modmain.lua: local TUNING = GLOBAL.TUNING TUNING.[insert variable here] = [insert value here] So even easier than adding a recipe Link to comment https://forums.kleientertainment.com/forums/topic/82171-how-do-i-make-a-tweak-mod/#findComment-958806 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