Dwarf Fortress

Dwarf Fortress

27 ratings
Stained Glass
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.193 MB
Feb 4, 2024 @ 11:50am
Nov 3, 2024 @ 12:44pm
16 Change Notes ( view )

Subscribe to download
Stained Glass

In 1 collection by niemst
Niemsts mods
33 items
Description
Stained Glass
Old - Colors in the Industry (Stained Glass)

TL;DR;
This mod adds stained glass and the ability to make objects from it.


Please see my other mods:
https://steamcommunity.com/sharedfiles/filedetails/?id=3157869674


Introduction

I felt really constrained by the glass being limited to green, clear, and crystal options only. From my research, there were both ancient and medieval technologies to obtain glass in a variety of colors.




Detailed Content
New Elements
  • 18 powdered metals from metal bars - all based metals starting on powdered aluminum via copper and iron till zinc and some of the alloys (bismuth bronze powder, brass, electrum, etc.) The metal powders are key ingredients in creating different colors. 2 powdered metals from stones - manganese pyrolusite and cobaltite powder. Powdered coal - can be used to create black or dark gray stained glass.
    All above can create up to 9 different stained glass pigments (black, white, red, brown, yellow, green, cyan blue, magenta)
  • Stained glass. It is a glass that is more fragile than standard glass, so keep that in mind when deciding to use it. So far, there are 33 colors that cover a based 16 colors in ASCII values and many of the exact colors tokens according to the List of colors from DF Wiki[dwarffortresswiki.org].
  • From 2 to 6 reactions for each stained glass color, allowing the creation of them. For each one, you can create unprocessed shards and blocks. Each color of stained glass can be created with a mix of sand, stained glass pigment, and work in a glass furnace (fuel required). Most of colors can be also created by sand mixed with 2 pigments (so yellow and blue into stained emerald glass). Similar mix 2 existing stained glass shards to create new color.
  • A set of finished goods and furniture that can be created from any stained glass.
  • A special displays tools (display frame and full display frame) that can be used to present the stained glass (of by stacking the decorative windows) .
  • A set of decorative windows that can be created from stained glass blocks.
  • For QoL added reaction for creating pigments from ingredient (make powdered metal) - but also divided by produced pigment (make stained glass pigment)
  • The ability to create those glasses is provided to dwarfs and humans.


Design Decisions
I didn't want to create something like - take a dye, and you can make any color glass. Moreover, some natural cloth dyes cannot be used 1 to 1 in the glassmaking industry as they change due to the heat required in glass making or shaping. Painting the ready product is a slightly different process I have not yet included in my mod plan.
I decided that powdered metal would be able to act as any compound of that metal. So powdered copper is equivalent to copper(II) oxide (CuO) and copper(I) oxide (Cu2O) or pure copper - providing colors from blue and cyan through green and ending on rose and red. The exact recipes may be changed in the future.
I also decided to avoid creating objects directly from sand and dye. To be totally clear, it is not the design but the limitation of mod creation, as I would need to create a set of 30-something reactions for each finished object multiplied by 30-something colors multiplied by 2-4 ways of making the stained glass (direct dye, mix, etc.). So, instead of creating a 2000+ reaction, I decided it would be a multi-step production process. First, the glass BOULDER would be made, which can later be shaped into finished goods or furniture. Of course, that approach has some limitations, like using twice the fuel.
I also went with a boulder that I renamed as shard (and blocks renamed as tiles set) as the rough can be quickly taken by the jeweler and processed into a gem. I wanted to avoid that default behavior (but I wasn't able to prevent it entirely and u still can remelt boulder into rough gem).
The display frame and decorative windows are a work aorund for the lack of the ability to redefine proper windows with multiple graphic in the game. Instead the display frame can ge use to place de decorative window in it and present in full color.



Other

Plans
  • Compatibility with mod Grind bones and shells into flux Done
  • Compatibility with mod Cobalt Crafting Done (must be placed after that mod)
  • Compatibility with mod Lead oxide
  • Compatibility with mod Mineral Powders
  • Compatibility with mod Dwarven Chemistry
  • Creating liquid glass that could be processed without needing additional fuel
  • Creating a set of tools needed for the industry.
  • Dedicated graphic for some of the existing object Done - decorative windows
  • Few colorful variants of display frame as game engine do not use its color when showing them
  • Additional objects (kaleidoscope toy, multicolored stained glass windo) etc

Issues
  1. I encounter an issue that STATE_COLOR is ignored when rendering floor and slope. I have not yet found a solution for now, so to wrap that somehow in-game flavor - there is no need to create undecorated stained glass - if you create any - use engraving as well.
  2. There is an ability to create improvement of an item that is an art ART_IMAGE. I imagined that the default window creation would be already improved with that feature, and every stained glass window would contain a description of an image. Unfortunately, that tag is not supported in modding (yet, I hope). But still u can encrust the window with a staind glass gem and use a image on it.

If you used this mod and had some interesting story or screenshot to share please write a comment.

Compatibility
The mod should be compatible with other mods. It uses SELECT and do not remove existing objects. It may not work if there is a mod that alter by CUT and re-adding the MOUNTAIN entity. If you encounter any issues, please let me know.
It is compatible with:
Grind bones and shells into flux - the bone char can be used as a dye, grinded shells can be used as a pigment
Civ Patch: https://steamcommunity.com/sharedfiles/filedetails/?id=3200910668 by Catwet12

Using in Other Mods
Please feel encouraged to use this resource as a dependency in your mod. If you need just a subset of features and others are misalignment with your vision - please contact me - it is likely there will be no problem from my side to create a resource-only mod (or mods) with content you require.
If you would like extend the decorative windows set - please let me know - I would be happy to help or create your own set based on the existing one and make your mod require this one.

LICENSE: Creative Commons - CC BY 4.0 License
18 Comments
Gabotsu Nov 8, 2024 @ 12:25pm 
@niemst Yes, it works and looks great, thank you very much.
niemst  [author] Oct 20, 2024 @ 2:36am 
@Obsidious thanks for the comment. That make me feel my work is appreciated and eager to add more. When u decided to use it please feel encouraged to share your structures screenshots :-)
Obsidious Oct 19, 2024 @ 3:55pm 
Every single one of your mods that I see, no matter whether or not I personally want to download it, is absolutely brilliant, genuinely adding to the game in a tangible but non-intrusive way, and always with an eye to the sort of robust historical context that makes these little lines of code wearing pixels on my screen feel real.

I'm proper stoked to try this out; I don't know if the fancy will take me to play with stained glass soon, just like any of the more niche in-game industries, but if and when it does I'm certain it'll be a blast.
niemst  [author] Oct 2, 2024 @ 1:37pm 
@Gabotsu: you place the frame as a display case and after placment you assign the decorative window. Please tell me if the instructions were clear and u made it :-)
Gabotsu Sep 29, 2024 @ 5:12pm 
How do I connect the decorative glass windows with the frame? I have tried to put in Jeweler's Workshop: Encrust furniture with cut glass/gem/polished stones and I can't get them to join together to build them. sorry for bad english
CocoBat Sep 13, 2024 @ 5:46am 
Hey, I was just playing some adventure mode when I found this on a human ringleader.
https://steamcommunity.com/sharedfiles/filedetails/?id=3330269106
It might be silly to share but I thought it was quite cool and unique.
niemst  [author] Aug 16, 2024 @ 5:36am 
Thank you @Deon I also appreciate your mods :-)
AETHER Jul 31, 2024 @ 3:13am 
what is the storage category for stained glass shards?
Deon ☣ Jul 3, 2024 @ 1:35pm 
These windows are beautiful.
niemst  [author] Jun 8, 2024 @ 7:23am 
Updated to version 2.10 -> added decorative windows and display frames