Generating raws with Lua | Dwarf Fortress Modding Tutorial @KitfoxGames
Generating raws with Lua | Dwarf Fortress Modding Tutorial  @KitfoxGames
Uploaded July 2025 | Updated September 2026, 6 hours ago
Learn how to create a Dwarf Fortress mod that uses the Lua procedural generation API. This is a tutorial by DPh Kraken (patreon.com/c/DPhKraken) for experienced modders.

0:00 Introduction
0:35 Adding init.lua
0:57 Registering Raws with do_once
1:56 Pre-scripted Raws from a Table
2:38 Random Generation
3:21 generate_from_list
4:23 Custom Divine Metals
5:33 Conclusion

Links:

Text guide: dwarffortresswiki.org/index.php/Lua_scripting
Copiable scripts: dwarffortresswiki.org/index.php/Lua_script_examples
Example secret: github.com/Putnam3145/Putnam-Mini-Mods/blob/master/Secrets%20and%20Curses/objects/interaction_secret_putnamagic.txt

Join the Kitfox Discord server: discord.gg/kitfoxgames
Generating raws with Lua | Dwarf Fortress Modding TutorialThousand Hells: The Underworld Heists - Official Out Now TrailerPlump Helmet Man - A Dwarf Fortress ballad by @quendelfHow to kiss an NPC - Streets of Fortuna DevlogBoyfriend Dungeon TTRPG: Life on the Edge - Launch TrailerStrike the Earth music video, cover by @SukubaEnsemble (Dwarf Fortress Soundtrack)In-engine gameplay and tools reveal (WIP) - Streets of Fortuna DevlogDeep Dive Dwarf Fortress: Mist generators, aquifers and water mechanics with @RNGStrategistCaves of Qud - Nintendo Switch + Controller GuideMondo Museum Interview & Footage -  Wholesome DirectCaves of Qud Mod Jam Showcase:  VignettesDwarf Fortress Adventure Mode Combat Demo
Kitfox Games |

Generating raws with Lua | Dwarf Fortress Modding Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER