r/DwarfFortressModding • • Jan 27 '25

Mod Making tutorial? (Sprites +)

Hello,

Is there a good tutorial for making new mods for DF? Specifically adding new objects and their sprites to the game?

I've found the sprite sheets for existing assets, not sure if I'd be able to add my sprites to them, or if I make a new sprite sheet altogether. I imagine I can just follow the scheme of the txt files for the vanilla to make my own custom stuff with unique items names.

Specifically, I'd like to add various other kinds of furniture to the game, like beds with 4posts, cupboards, etc, and half-walls.

I'll be using GIMP to make the sprites themselves. I know the game has a limited color palette. Do I need to ensure these colors are the ones I use in GIMP, or will the game replace with closer colors or something.

Thanks in advance.

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/BirminghamBasemntBoy Jan 28 '25

That's really interesting. It's strange that new creatures, like gnolls, can be added with totally new sprites and whatnot, but furniture cannot.

I've also seen how some mods add decor as "workshops" that don't actually function, like little gas lamps. There is also a mod that exists for new kinds of altars, and I see there is already one for fences (half sized that can be walked over). I'm guessing that's why these items aren't coded as furniture or anything.

I've already made some sprites in GIMP, it's not hard at all (pretty fun actually). I've made some rug sprites that I'm hoping to be able to use as decoration that can be walked on (and even better if it could be built on). I was messing around with the txt files for a mod in progress earlier, but was getting stumped.

3

u/chipathingy Jan 28 '25

It makes sense when you realise that a lot of the hard coded stuff is really really old, and is probably buried under lines of code. The buildings (e.g. table or bed) all have specific behaviour attached to them as well

There are some exceptions, some more recent stuff is in the raws like the soap workshop. Maybe the altar too?

Creatures have always been raw defined and moddable

Yeah it's easy to make decorative buildings but unless they have a reaction attached to them theyre just decoration. Workshops can also have impassable tiles which is probably what they use for the fence.