Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Minor Modding Tool: DF Color Girl  (Read 906 times)

Darekun

  • Bay Watcher
    • View Profile
Minor Modding Tool: DF Color Girl
« on: March 13, 2012, 01:31:28 am »

New minor modding tool: DF Color Girl! It takes color descriptor files and displays them. You can pass it one or more on the command line, or drag-and-drop one or more at a time.
  • Left-click on a color copies its identifier, like "GOLDENROD".
  • Right-click copies its identifier in the form of [TL_COLOR_MODIFIER] parameters, appending if the clipboard already starts with a : character, like ":COPPER:1:DARK_INDIGO:1:ECRU:1:GOLDENROD:1".
  • Middle-click is kind of a mix, appending the identifier with a space, like(starting with a left-click) "COPPER DARK_INDIGO ECRU GOLDENROD".
This also shows some oddities in the official colors. Why is CHOCOLATE so much brighter than CINNAMON? o_O And the name is a variant of a standard pattern of mine, varied of course for the bad pun.

Needs: Windows or Wine. No frameworks/interpreters/etc. needed for native Windows support.

Known Flaws: Should report errors better.



Also, this tool is pretty minor. In searching, I didn't find a "minor modding tools" thread, but found lots of threads for individual tools. I don't expect there to be much discussion for this tool, so if you have a minor modding tool of your own, go ahead and post about it! Hopefully this thread can collect tools too small for their own threads :J (Alternately, I screwed up and this should be in an existing thread >_>)
« Last Edit: March 14, 2012, 01:38:28 am by Darekun »
Logged
Darekun likes iron, cobalt, alicorn, cut gems, elves for their comparative advantage, and goblins for being an iron-bearing ore. When possible, she prefers to consume tea, cow meat, and Bacon Salt. She absolutely detests pasture creatures.

Sorcerer

  • Bay Watcher
  • [magical]
    • View Profile
Re: Minor Modding Tool: DF Color Girl
« Reply #1 on: March 13, 2012, 06:23:51 am »

Oooh, this is actually really handy, thanks!
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Minor Modding Tool: DF Color Girl
« Reply #2 on: March 13, 2012, 06:32:37 am »

Why is CHOCOLATE so much brighter than CINNAMON? o_O

Research, my friend!

http://en.wikipedia.org/wiki/Chocolate_%28color%29#Cocoa_brown_.28web_color_.22chocolate.22.29_.28light_chocolate.29

Editing the color tokens in the game is probably not the best idea unless necessary for some reason, because they're usually based on pretty well-defined standards.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Darekun

  • Bay Watcher
    • View Profile
Re: Minor Modding Tool: DF Color Girl
« Reply #3 on: March 14, 2012, 01:38:47 am »

New ver up, fixed mousewheel.

Oooh, this is actually really handy, thanks!
You're welcome, glad you like :J

Research, my friend!

http://en.wikipedia.org/wiki/Chocolate_%28color%29#Cocoa_brown_.28web_color_.22chocolate.22.29_.28light_chocolate.29
Yeah, I meant that in a deeper sense. Especially since we mainly encounter them through the identifiers, it's a minor bug waiting to happen.
Logged
Darekun likes iron, cobalt, alicorn, cut gems, elves for their comparative advantage, and goblins for being an iron-bearing ore. When possible, she prefers to consume tea, cow meat, and Bacon Salt. She absolutely detests pasture creatures.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Minor Modding Tool: DF Color Girl
« Reply #4 on: March 14, 2012, 01:39:54 pm »

Nice. :) Does it read out the colors from the descriptor raw, or did you enter the vanilla colors by hand ? Because modded games might have a few new colors. :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Darekun

  • Bay Watcher
    • View Profile
Re: Minor Modding Tool: DF Color Girl
« Reply #5 on: March 14, 2012, 04:20:49 pm »

Nice. :) Does it read out the colors from the descriptor raw, or did you enter the vanilla colors by hand ? Because modded games might have a few new colors. :)
It reads them out, it doesn't have anything like that hardcoded :J In particular, I think there's only one color descriptor file in vanilla DF, so the "one or more" feature is intended for "the vanilla file plus your mod's file".

Also… I pretty much started this project in order to avoid entering the vanilla colors by hand :P
Logged
Darekun likes iron, cobalt, alicorn, cut gems, elves for their comparative advantage, and goblins for being an iron-bearing ore. When possible, she prefers to consume tea, cow meat, and Bacon Salt. She absolutely detests pasture creatures.