This is an example I was asked to provide for a reader on the subreddit. It is a bit starved for power approaching the late game but otherwise demonstrates some management and automation concepts, as well as a solid format for a modular base. Download, critique, whatever.
By IronHunterThis code is designed for Don't Starve Together to allow for critical hits and items with critical hit properties.
By design this allows all mobs the potential to be able to crit if they have crit chance greater than 0
Using inst.components.combat:SetCrit(critchance, critdmg, critfn) we can define a basic crit settings for a mob.
Currently equipment have crit variables as inst.variables rather than component ones.
Some fun examples if you have a hat that has crit chance, we can give it to a pigman and he'll be able to crit.
Currently tested on a caves enabled server and works as advertised.
Suggestions and bugs found for improvements welcome.
By ElectroelySimple Java application that allows its user to split the contents of Klei's TEX files using their respective XML atlases. In other words...
Using it is simple:
- The first text field is for the XML file. It usually has the same name as the TEX file and is found in the same folder.
- The second text field is for the PNG file. The tool will accept TEX files if it is put in the same folder as simplex's ktools.
- The third field is for the output folder. All images contained in the PNG/TEX will be put there when they're extracted.
As I've previously mentioned, this tool does NOT convert TEX files to PNG. It will make ktech from ktools do so if they are in the same folder. The second field's label will change from to if ktech.exe is detected.
By MobbstarBased on this:
This project is a complimentary one to help you understand FMOD, and to give you an idea of how to make complex sounds.
Open the README.txt for more info.
By Cunning foxlibrary that sends data between the clients without server code. This is very useful when you want to create a client mod and send something to other players with your mod. You can find how to use it here:
A Don't Starve Together Mod. Add keybindings to use with tools, weapons, armor and much more.
Keybindings can be changed in the configuration:
Default Key Function G Equip best weapon by damage C Equip best armor V Equip best helmet 1 Equip best axe 2 Equip best pickaxe 3 Equip best shovel 4 Equip best scythe, requires scythes mod H Use best healing item J Eat food Also when unequiping the hand slot using the keybindings it automatically equips a cane if available
Download latest release from github
This contains a little tool called CaseReplace that I whipped up because I got tired of using search & replace with different letter cases when renaming characters for Don't Starve.
It runs a search & replace process, replacing one name with another in all the relevant files while preserving case (so, for example, "oldname" will become "newname" while "OLDNAME" will become "NEWNAME").
It also renames all the files and directories accordingly (this can be turned on or off).
I bundled a batch file named RenameDSCharacter with it which runs the script using the parameters you would normally need in order to make the replacements for a standard Don't Starve character (it basically searches everywhere except zip files).
This tool performs a simple search & replace. It doesn't know that you only want to change text when it's referring to a character name.
Therefore the name you replace needs to be unique and only appear when as the name of that character!
If your character is named "e" and you run this tool to replace "e" with "a" you'll most certainly break your mod and nothing will work.
Also, this tool has no undo option (replacing "a" with "e" won't undo it), so it's highly recommended you back your files up before using it.
I have tested it but not rigorously, so it's best to make a backup before running this.
I will not be held responsible for the loss of your work or data as a result of using this tool.
You need Python 3 to use them, so if you don't have it and you want to use this tool, go get it.
I was using Python 3.6.6 when I made it but it's probably OK to use any version of Python 3.
To use it, first extract it into your mod folder.
Now you have two options:
Double-click the file called RenameDSCharacter.bat and when prompted enter the name of the character you want to replace followed by the new name you want it to have (it asks you for those two; just follow the instructions). Run RenameDSCharacter.bat from command prompt and give it the current name and the new name as parameters (in that order). If you really want to, or if there's a problem making it get to the right files or something, you can also use the CaseReplace script directly.
To do that, go to the folder in command prompt and type "python CaseReplace.py" (no quotes) followed by the parameters you want.
You can run "python CaseReplace.py --help" to see a list of parameters
Enjoy your modding. =)