Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: A few graphics Questions  (Read 1209 times)

JackSlinger

  • Bay Watcher
    • View Profile
A few graphics Questions
« on: February 10, 2012, 04:29:23 pm »

Could some kind soul talk me through what needs to be present to add creature graphics to dwarf fortress. I'm using Ironhand and want to add new graphics for one or two modded creatures, how would I go about adding a graphic for them.

Sorry if this has been asked before, I'm a noob at DF but am studding computer science so have some general tech skills.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: A few graphics Questions
« Reply #1 on: February 10, 2012, 05:38:48 pm »

Here a simple example to help you on the way



graphics_warlock

Place this in a txt called graphics_warlock.txt in the raw/graphics folder. Also make a 16*16 pixel png-image that looks like a warlock.

[OBJECT:GRAPHICS] <--- the object type

[TILE_PAGE:WARLOCK] <--- name
   [FILE:warlock.png] <--- filename
   [TILE_DIM:16:16]  <--- dimension (should fit your tileset, this is 16*16 for phoebus)
   [PAGE_DIM:1:1] <--- X and Y coordinate. Ignore for single pictures, just add 1:1

[CREATURE_GRAPHICS:WARLOCK] <- creature name
   [DEFAULT:WARLOCK:0:0:ADD_COLOR:DEFAULT] <- standart setup. Will be more complicated if you have babys, children, undead variants, or professions. All not needed for simple creatures/monster.


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 :::

JackSlinger

  • Bay Watcher
    • View Profile
Re: A few graphics Questions
« Reply #2 on: February 11, 2012, 04:56:01 am »

Thanks, is it possible to have a different tile for each caste of a creature?
Logged

Alkhemia

  • Bay Watcher
  • aka Deep Sea Diver Man
    • View Profile
Re: A few graphics Questions
« Reply #3 on: February 11, 2012, 07:16:29 am »

not yet no
Logged
"Hiken: Tsubame-Gaeshi" -Sasaki Kojirou (Grand Order}

"Please touch me. Without lying, wherever you want to touch. That is my wish." - Kiyohime (Grand Order)

"Tyranny, violation, genocide. Those are the things that I detest above all else." - Amakusa Shirou Tokisada (Grand Order)

Reudh

  • Bay Watcher
  • Perge scelus mihi diem perficias.
    • View Profile
Re: A few graphics Questions
« Reply #4 on: February 11, 2012, 07:45:29 am »

Caste: no.
Profession: yes.

JackSlinger

  • Bay Watcher
    • View Profile
Re: A few graphics Questions
« Reply #5 on: February 11, 2012, 02:14:34 pm »

Mildly disapointed by that but it's not a big deal, thanks for your help. Now I've got to try and alter a graphic to suit my needs (gulp) wish me luck.
Logged

WatsonX

  • Escaped Lunatic
    • View Profile
Re: A few graphics Questions
« Reply #6 on: April 20, 2012, 01:07:51 am »

Here a simple example to help you on the way



graphics_warlock

Place this in a txt called graphics_warlock.txt in the raw/graphics folder. Also make a 16*16 pixel png-image that looks like a warlock.

[OBJECT:GRAPHICS] <--- the object type

[TILE_PAGE:WARLOCK] <--- name
   [FILE:warlock.png] <--- filename
   [TILE_DIM:16:16]  <--- dimension (should fit your tileset, this is 16*16 for phoebus)
   [PAGE_DIM:1:1] <--- X and Y coordinate. Ignore for single pictures, just add 1:1

[CREATURE_GRAPHICS:WARLOCK] <- creature name
   [DEFAULT:WARLOCK:0:0:ADD_COLOR:DEFAULT] <- standart setup. Will be more complicated if you have babys, children, undead variants, or professions. All not needed for simple creatures/monster.

Thank you! I would have never figured this out on my own.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: A few graphics Questions
« Reply #7 on: April 20, 2012, 02:23:34 am »

No worries.

For this line there is also a little trick:
 [DEFAULT:WARLOCK:0:0:AS_IS:DEFAULT] <<< displays the sprite
 [DEFAULT:WARLOCK:0:0:ADD_COLOR:DEFAULT]  <<< displays the sprite with a color overlay

This way you can give different castes different colors, for example make ant-queens stand out by using a golden color on them, or color different warlocks, blue for ice, red for fire and so on. All you need is CASTE_COLOR:x:x:x in the appropiate castes. All castes without a defined color will be shown as usual.
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 :::