Modding Tools, Tutorials & Examples

83 files

  1. Webber-Themed Animated Cursor Pack

    Express your love for our hairy little friend with this brand new
    Webber-Themed Animated Cursor Pack
    Including 15 Cursors inspired by my favourite Don't Starve Character!
    Precise enough to use at work and the survival-y feel of your favourite
    game is finally complete with this original handdrawn Cursor Pack!
    Also check out my other Cursor Packs!
    Cheers, Jules
    Follow this link for a tutorial on how to install the cursors. Thanks to @iMCrafter

    526 downloads

    6 comments

    Updated

  2. Mini Furniture FOR ROG

    You must be familiar with the MOD 
    That's right. This is the ROG version of the mini furniture you want. 

    In this version of the MOD what is the use? 
    1: you can take your furniture around the map 
    2: when the four seasons BOSS comes, do not have to worry about the destruction of the house 
    3: of course, you can do whatever you want. 

    SW version:http://steamcommunity.com/sharedfiles/filedetails/?id=578820740


    433 downloads

    8 comments

    Submitted

  3. Backup your saves game

    In Don't Starve Shipwrecked, to backup your save game, you must copy all files from two locations:
    -  C:\Users\USERNAME\Documents\Klei\DoNotStarve\save
    - ...\Dont Starve Shipwrecked\bin\3DMGAME\Mr DJ\storage
    Every time backup or restore, you must do the 1st and 2nd steps. For convenience, I create an application run in Windows that you can backup/recover easily with a by only one click.
    Name player: input name of player properties.
    Date Game: input date in game.
     
    (Only Compatible With Windows due to How Finding File Works and I have no idea if Visual Basic programs work on Linux or Mac.)
    Some when I will be adding new features based on suggestions and feedback, so if you have any then I want it!

    489 downloads

    9 comments

    Updated

  4. Mod Music Manager

    This is a component for managing special mod music. Try to use it if you can. If you need a practical example, check out Soulful Alchemy.
    Don't mind the DirectorNode stuff, I was just too lazy to remove it.
    If you have any questions or concerns, tell me please!

    87 downloads

    0 comments

    Updated

  5. ktools: Cross-platform modding tools for Don't Starve

    IMPORTANT: Starting with version 4.3.0, the Windows binary release requires Microsoft's Visual C++ 2013 Redistributable Package (previously, the 2010 one was required). See the bottom of this description for more information.
     
    ktools is a set of cross-platform (Linux, Mac and Windows) modding tools for Don't Starve. It consists of the following command-line tools:
    ktech: a bidirectional converter between TEX texture and PNG; krane: a anim.bin/build.bin decompiler, whose output is a Spriter project. More detailed information about these tools may be found in the README, in the project's GitHub repository.
    ktools primary release format is as source code, compilable under every platform using CMake, as per the instructions in the README. A Windows binary release is also included (the ZIP ending with "-win32").
    When compiling from source, if libzip is found then the ktools are compiled with zip support, so that zip archives may be given as input in the same way directories may. The binary Windows release does not have zip support.
    If you have issues running the Windows binary release, make sure you have Microsoft's Visual C++ 2013 Redistributable Package (the 32 bit version, that is, download the file called vcredist_x86.exe). It's very likely already installed, but in case of any errors first make sure that is in fact the case.

    8,620 downloads

    98 comments

    Updated

  6. Expert Tools

    This mod is just a life quality improvement for those who find themselves typing redundant code on the console.
    It doesn't really change the game in any way other than adding some handy console commands.
    In case of any questions about how stuff works, just take a look at the code.
    Just install this mod on the SERVER and it's ready to be used.
    Command list:
    shutdown(bool save)
    Same as c_shutdown()
    reset(bool save)
    Same as c_reset()
    restart(bool save)
    Same as c_reset(), for those who just like me think that the word "restart" is nice and smooth to type.
    modList(int index)
    Prints a table-like list of all the mods active on the server, containing the following information:
    ID: just for organizing the list better and to be used as a parameter;
    Name: workshop name of the mod;
    c_requires: whether or not the client needs to download the mod in order to join the server;
    Version: the mod version;
    Fancy Name: The way the mod is called, such as "expert tools".
    Parameters:
    int index: [optional] This parameter allows you to see information about the specific mod instead the whole list.
    count(str prefab)
    Uses c_announce() to display a count of the prefab on the world. See parameters for more info.
    Parameters:
    str prefab:
    "beefalo": counts and specifies beefalo and baby beefalo.
    "gears": counts gears on the world, including those that are still inside the mobs, just waiting to be killed.
    You can also input any prefab to have a generic message with a count of that prefab.
    revive(int playerIndex)
    Revives players, specific or all.
    Parameters:
    int playerIndex: [optional] specifies the player to revive by the number you get with c_listallplayers(). If absent, revives all dead players.
    kill(int playerIndex)
    Works just like revive(), but kills instead of reviving.
    creative(int playerIndex)
    Toggles creative mode on playerIndex.
    Parameters:
    int playerIndex: specifies the player.
    isCreative(int playerIndex, bool noPrint)
    Returns whether or not the player is on creative mode.
    Parameters:
    int playerIndex: [optional] specifies the player.
    bool noPrint: [optional] suppresses the print.
    If used with no parameters, a list showing all players and their creative status will be displayed.
    say(str message)
    Allows you to send chat messages from the console easier.
    Parameters:
    str message: the message.
    kick(int playerIndex)
    Kicks a player and drops its inventory.
    Parameters:
    int playerIndex: specifies the player.
    ban(int playerIndex)
    Bans a player and drops its inventory.
    Parameters:
    int playerIndex: specifies the player.
    tp(int p1, int p2)
    Teleports player 2 to player 1. Specify only player1 to teleport all to p1.
    If you get confused on who goes to who, just remember that p1 never moves.
    Parameters:
    int p1: specifies the final location of the teleport.
    int p2: [optional] specifies the player that is going to be teleported.
    If p2 is absent, all players will be teleported to p1.
    p1 and p2 work just like playerIndex on the other functions.
    heal(int playerIndex, noPrint)
    Heals health, sanity, hunger, moisture, temperature and removes revival penalties.
    Parameters:
    int playerIndex: specifies the player.
    bool noPrint: [optional] suppresses the print.
    god(int playerIndex, noPrint, god)
    Applies heal() and makes the player a god, invulnerable to everything.
    Parameters:
    int playerIndex: specifies the player.
    bool noPrint: [optional] suppresses the print.
    bool god: [optional] forces god state to be false or true, instead of toggling it.
    isGod(int playerIndex)
    Returns whether or not the player is on GodMode. Works in a similar way to isCreative().
    Parameters:
    int playerIndex: [optional] specifies the player.
    bool noPrint: [optional] suppresses the print.
    If used with no parameters, a list showing all players and their GodMode status will be displayed.
    silentBan(int playerIndex)
    Silently bans a player, without kicking from the server.
    Parameters:
    int playerIndex: specifies the player.
    unban(int playerIndex)
    Removes a player from the ban list, allowing him to join the server again.
    Parameters:
    int playerIndex: specifies the player. This player here is not a player that is on the server, its a player from the banlist()
    banlist()
    Displays a list with all the banned players, does not display user names.
    serverTime()
    Prints for how long the server has been running.
    goNext(str prefab, int ...)
    Teleports how many players needed to the nearest specified prefab.
    Parameters:
    str prefab: this is the prefab that is going to be the teleport target.
    int ...: [optional] this means that you could specify how many number of playerIndex'es you wish. Example: goNext("beefalo",1,3,7,4). This would teleport players 1,3,4 and 7 to the closest beefalo. If used with no parameters, teleports all players to the prefab.
    player()
    Displays a list with all the players. Lists player indexes, name, character and if they are admin.
    invisible(int playerIndex, bool noPrint, bool invis)
    Makes the player invisible.
    Parameters:
    int playerIndex: specifies the player.
    bool noPrint: [optional] suppresses the print.
    bool invis: [optional] forces invisible state to be false or true, instead of toggling it.
    isInvisible(int playerIndex, bool noPrint)
    Returns whether or not the player is invisible.
    Parameters:
    int playerIndex: [optional] specifies the player.
    bool noPrint: [optional] suppresses the print.
    If used with no parameters, a list showing all players and their invisible status will be displayed.
    I'm currently working on adding other functions and improving the mod.
    Please leave a comment to say something you think should be different or just that the mod helps you. Show some love!
    You may request a feature that you would like to see in this mod.

    504 downloads

    1 comment

    Updated

  7. Smarter Crock Pot

    Steam Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=596800985
    Compatible with DS, ROG and SW.
    Original link: https://steamcommunity.com/sharedfiles/filedetails/?id=222342168
    Fixed by zUsername.
    Created by Nadav.

    10,298 downloads

    8 comments

    Updated

  8. Weapons armour values

    Show all the values releated with weapons, armour, tools.
    Make more or less the same that detailed tooltips and values plus
    enjoy

    2,530 downloads

    1 comment

    Submitted

  9. Working Body Heat

    "Work keeps you warm, but makes you peckish."
    This mod considers strong physical activity such as mining or chopping trees and increases your body temperature when doing so. However, this comes at an increased calories burn rate.
    You can tune the exact values in-game.
    As suggested by _Sips[1] (warning: swear words)

    323 downloads

    3 comments

    Submitted

  10. Speech Template

    This is a speech template compatible with DS (with or without RoG) and DST.
    Remember to rename the file!
    You can set the speech file using: STRINGS.CHARACTERS.CHARNAME = require "speech_charname"
    Pro Tip: You can "comment" specific lines "out" by putting -- before them. You can also comment several lines out by putting --[[ before and ]] after them.
    I assembled this in less that 15 minutes, so it's likely there's some redundant strings left (as in, the same key being set twice). Don't blame me, should that be the case, I just copied Wilson's file from Together and ran a simple script over it to empty the quotations.

    106 downloads

    4 comments

    Submitted

  11. Twitch Plays Together Action Template

    Mod template for add-on actions to Twitch Plays Together mod.

    636 downloads

    2 comments

    Submitted

  12. Season Calendar

    As I found Lunar Calendar from darkestaxe some days ago I found it very useful. But I couldn't find any calendar, table, chart or whatever for the season cycles, neither here nor elsewhere on the net. So I decided to write my own in MS Excel.
    Feel free to change the worksheet and the script to your needs.
    Update:
    Thanx for the nice comments.
    F... this voting system. I accidentally gave myself 2 stars and can't adjust this anymore Please could some users who like my tool vote for it?
    Update 2:
    Hopefully this version is the final one.
    Thanx for voting.
    LAST update:
    Due to the amazing Season Clock mod my tool is obsolete:
    http://forums.kleientertainment.com/files/file/862-season-clock
    Thanx again for all your feedback.

    881 downloads

    6 comments

    Updated

  13. Persistent Data

    A module that can store, save, and load any arbitrary data.
    For developers only! Don't expect it to do anything interesting in-game.
    Download contains:
    persistentdata.lua - The module. Put this in your mod's scripts folder.
    PersistentDataExample_v1.x.zip - Example usage of the module with comments
    See the example for information on how to use it.
    Mods that currently use it:
    Mod Manager - by Blueberrys
    Feats of the World - by debugman18
    Previously posted here.
    Everything provided here is public domain. No warranties for anything. Blah blah blah. Use it however you want!
    Attribution would be appreciated, but is not required.

    511 downloads

    3 comments

    Updated

  14. Supervivencia Natural



    -Supervivencia Natural-



    Contenido de MOD´S

    Always On Status
    Architectural Geometry
    Auto planting
    Damage Indicators
    DisplayFoodValues
    Follower Badges
    FOV
    MemSpikeFix
    MinimapHUD
    More Map Icons
    Seasonclock
    Sort Inventory
    Spanishv7.0DLC
    Wormhole Marks



    -Supervivencia Natural-



    El Paquete trata solo con unos cuantos mods que no alteran la



    dificultad con del juego, si no solo cosas visuales que ayudan



    de una manera sin afectar a el juego.



    Los mods yo no los he creado, solo son una recopilación de ellos.



    Echo por: OblanquitO

    7,580 downloads

    11 comments

    Updated

  15. Spider Companion Animation Fail Sample

    Do not download unless you're trying to help me, haha. There is a steam version of this currently working if you are interested. This one is not for entertainment purposes.

    115 downloads

    1 comment

    Submitted

  16. Sample - Mr Smiley

    This is just a sample of a spriter file which creates an anim that is compatible with hats.

    399 downloads

    1 comment

    Submitted

  17. Don't Starve Calendar

    English
    By: SITUVN
    Language: HTML, Javascipt, CSS.
    First, I created it for myself, not for public.
    But I think I should share it, now.
    You need the newest browser version or atleast supported HTML5.
    Leave a comment. Let me know what you think about this. Or when you found a bug.
    Extrac and run "Don't Starve Calendar.htm" file with a web browser.
    Thanks, Don't Starve and don't forget Werepigs.
    SITUVN
    Tiếng Việt
    Bởi: SITUVN
    Ngôn ngữ: HTML, Javascipt, CSS.
    Ban đầu, Tôi chỉ tạo cho mình tôi, không sẻ chia.
    Nhưng giờ tôi nghĩ tôi nên chia sẻ nó.
    Bạn cần phiên bản mới nhất của trình duyệt hoặc ít nhất hỗ trợ HTML5.
    Hãy bình luận. Cho tôi biết bạn nghĩ gì về thứ này. Hoặc khi bạn gặp bọ (lỗi).
    Giải nén và chạy tập tin "Don't Starve Calendar.htm" với trình duyệt.
    Cảm ơn, Đừng Đói và đừng quên Ma lợn (Werepigs).
    SITUVN

    689 downloads

    1 comment

    Submitted

  18. blow darts 50 remod

    this is a version remod of liao
    http://steamcommunity.com/profiles/76561198133238113/myworkshopfiles/?appid=322330

    790 downloads

    5 comments

    Submitted

  19. Development tool

    This mod adds a Development Tool - It have been crated by Klei, to help with testing Don't Starve and RoG DLC. File "devtool.lua" can be found in vanilla game, in prefabs folder. This mod adds a remade version of it, that makes it possible to use in-game, along with couple of features.
    Devtool:
    - can be used as weapon (range: 20, about half of a screen; damage: 10000)
    - can be used as axe, pick, shovel, hammer and net; every action is instant
    - creates large light spot around a holder, or around lying spot
    - provides health, hunger and sanity insta-regeneration
    - provides heat in Winter and (if RoG is enabled) act as cooler in Summer
    - act as Walking Cane, adding speed multiplier (about 2 times faster than normal)
    - has built-in prototyper, so you can prototype stuff anywhere and anytime
    - if you want to build anything, provides necessary resources
    - act as blinkstaff (you can teleport to a chosen spot)
    - almost every feature is configurable in mod configuration screen
    I'm uploading it here as a mod, because it really helps testing mods. It doesn't have a crafting recipe (obviously), so, Here as a console command that you have to type in console to get it:


    c_give("devtool")



    This mod is meant to be OP, because I made it to help testing mods...



    Consider that before posting a comment...
    Have fun with testing mods

    2,703 downloads

    20 comments

    Updated

  20. Spriter Example: Equippable Item

    This is an example of an equippable item made in Spriter. This example requires the pc version of the Steam Workshop 'Don't Starve Mod Tools' to be installed.
    Big thanks to the Waverly Mod Team for letting me use their art!

    3,316 downloads

    9 comments

    Updated

  21. Sample Animation

    This is an example of how to create a custom character animation. Instructions on how to use this example can be found here:
    Tutorial: Adding a Custom Idle Animation

    1,888 downloads

    5 comments

    Updated

  22. Easy Character Art Template

    This is a template character for Don't Starve. Instructions on how to use this template can be found here.

    3,894 downloads

    4 comments

    Updated

  23. Example: Cookpot Fix

    This is obsolete! This mod's changes have been incorporated into Don't Starve as of the May 24th, 2014 patch (Rev. 102535)
    An example mod that implements a fix for modded crockpot recipe results being invisible.
    See this thread for more information.

    984 downloads

    3 comments

    Updated

  24. Sample mod: Savable Infinity

    This sample mod provides a file, savable_infinity.lua, which when modimport'ed allows storing correctly the following numerical values as savedata:
    Plus and minus infinity (i.e., math.huge and -math.huge);
    NaN (Not a Number, i.e., the result of invalid arithmetical operations, such as 0/0).
    The game's save system is patched transparently, so other than modimport'ing savable_infinity.lua no other steps need to be taken: simply feel free to store the above values in savedata.
    The patching of the game's DataDumper function uses the fact that Don't Starve's savedata is simply Lua code to store these values as arithmetical expressions: plus infinity is saved as 1/0, negative infinity as -1/0 and NaN as 0/0. The method used for the patching is more hackish than I would like (making heavy use of Lua's debug library), but it is the cleanest method of doing so I could think of, other than simply overriding vanilla's dumper.lua.
    The rest of the mode code, beyond savable_infinity.lua, is just a test suite to see the added functionality in action.
    The file savable_infinity.lua is modimport'ed in modworldgenmain.lua, so that all savedata is stored correctly (but it can safely be modimport'ed in modmain.lua instead, if worldgen savedata is not a concern).
    In modmain.lua, the global variable ENCODE_SAVES is set to false, causing save files to be stored as plain Lua instead of zip compressed Lua, allowing visual inspection of the saves' contents. Furthermore, modmain.lua adds the included infinitysavetest component to the world entity: this component simply returns the mentioned values in its OnSave method and checks the validity of the loaded savedata in its OnLoad method, which prints the following to log.txt:

    ../mods/SavableInfinity/scripts/components/infinitysavetest.lua(17,1) Running InfinitySaveTest:OnLoad() for [100013 - cave] ../mods/SavableInfinity/scripts/components/infinitysavetest.lua(28,1) Testing savedata entry 'positive infinity'... PASSED ../mods/SavableInfinity/scripts/components/infinitysavetest.lua(28,1) Testing savedata entry 'negative infinity'... PASSED ../mods/SavableInfinity/scripts/components/infinitysavetest.lua(28,1) Testing savedata entry 'NaN'... PASSED ../mods/SavableInfinity/scripts/components/infinitysavetest.lua(30,1) Ran InfinitySaveTest:OnLoad()

    202 downloads

    8 comments

    Updated

  25. Sample mod: Custom tile/ground types

    This mod shows how to add a custom tile (ground) type to the game, to the map and minimap.
    The actual work is encapsulated in the file tile_adder.lua, which may just be plopped into your mod and modimport'ed. It exports the function AddTile(), whose usage is exemplified in modworldgenmain.lua (note, however, that the tile texture assets must be declared in modmain.lua).
    As an example, a new tile type GROUND.MODTEST is added. The mod will also spawn in the player's inventory an infinite turf item which places the new tile type (to make testing easier, it does not require digging up the original turf with a pitchfork).
    WARNING!
    The numerical id passed as the second argument to AddTile (which becomes the value of GROUND.YOURNEWTILETYPE) must be unique, not conflicting with with game's own values (specified in vanilla's constants.lua) as well as with other mods. It must also be less than 128 (the value of GROUND.UNDERGROUND), otherwise the game assumes the new tile represents a wall type. The AddTile function checks the given numerical id for validity, raising an error if the check fails. With regard to intercompatibility between mods adding tiles, it is important to choose numerical ids not conflicting with the choice of other mods. Ideally the ids would be generated automatically and stored/restored as map savedata, but since mods run before any savedata is loaded this would add a number of pitfalls for the modder to be aware of, and generally increase the complexity of the code required for adding a new tile, so I kept the manual specification. The sample tile is added with an id of 80, while Up and Away uses consecutive ids starting from 64.

    358 downloads

    6 comments

    Updated