Jump to content
  • The forum downloads section will be removed on Jan 1st 2023. Players may still download mods that are currently hosted, but new submissions are no longer being accepted. Mod makers are advised to relocate their mods to alternative hosting solutions.

2 Screenshots

About This File

This mod can be used as a template for custom ground tiles for Don't Starve Together. I use it in the Green World. The main logic implemented in two files:

  1. tileadder.lua — provides two functions: AddTiles() and AddMinimap();
  2. tiledescription.lua — contains parameteres for new tiles.

Function AddTiles() should be called from the modworldgen.lua, function AddMinimap() should be called from the the modmain.lua. Ground ID is not required, the tile adder calculates it automatically; this provides high compability with any other custom tile mods. Turf prefab is also generated by the tile adder, but you need to set build/icon/anim/any other prefab data with AddPrefabPostInit() function in the modmain file.

Five steps to add new tile:

  1. Pick the name for you tile;
  2. Place ground texture (resolution 512x512, name «noise_yourtilename») and minimap texture (resolution 256x256, name «mini_noise_yourtilename») in the «images/textures» folder;
  3. Add string «yourtilename = { }» to the tiledescription.lua file;
  4. Add AddPrefabPostInit() function to set inventory images for your tile;
  5. Test it!

More information you can find in the tiledescription.lua file. As an example, two custom ground tiles (Jungle and Tech) are added. 


User Feedback

Recommended Comments

if there is a don't starve (region of giants,Shipwrecked) version of this mod or similar comment that out for me if you can

Link to comment
Share on other sites

hello, i tried to use this as a template for a custom forge turf, and despite your tech tile working just fine and following it step by step, when i place my custom turf on the ground, the game just closes without saying anything. the client logs didnt say anything clear either.

i just dont understand what could go wrong, i put the forge texture files in the right folders and renamed them correctly. any idea of what could be the problem?

Spoiler

[00:06:00]: Serializing user: session/2B8136D0842DA51C/A7G81C9PRVVO/0000000003
[00:06:00]: Deserializing tile data (425 x 425)
[00:06:22]: Assert failure 'idx < mFreeIndex' at c:\dst-jobs\workspace\DST_BuildGame_Windows\source\util/staticvector.h(66): Trace follows...

 

client_log_2018-07-12-13-22-14.txt

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...