Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: How do I do this?  (Read 3675 times)

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
How do I do this?
« on: June 11, 2015, 06:42:18 pm »

Okay, so I'm looking to make a 24x24 tile set, but I'm not even sure how to do this. Do I use Paint? I could start with a smaller one if someone advises. Also, can I include tiles for my custom made creatures? I hate seeing them left as letters. Thanks for any help in advance!
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: How do I do this?
« Reply #1 on: June 11, 2015, 06:55:50 pm »

I'm going to be explaining this in a way that assumes you are completely new to the concept of graphics/tilesets in Dwarf Fortress, as I do not know how much you know about it. Tilesets and graphics mean two different things.

Tilesets are images that the game uses to display the majority of non-creature objects, from terrain on the map to tools and numbers/letters. A tileset image is typically saved within data/art in the Dwarf Fortress directory, and the selection of the tileset is made within the init file.

Graphics are images stored within raw/graphics in the Dwarf Fortress directory. They are used to create images for creatures, and can include many different images for a single creature based on things such as their profession, whether they are a child or infant, or if they are an animated corpse. The definitions for these graphics are done in files that are also saved within raw/graphics.

Paint can be used. Anything that puts out an image file should be possible to use, so you should just go with which program you feel most comfortable with. I personally use GIMP, but I've also seen other programs such as paint.net mentioned.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #2 on: June 11, 2015, 06:56:52 pm »

Graphic pack, yeah, that's what I meant.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: How do I do this?
« Reply #3 on: June 11, 2015, 07:30:45 pm »

Ah, alright then. I'll use some graphics that I have made as an example.

I have created this small graphics set for some Dark Souls creatures I have created, though this version is slightly altered to remove graphics I have borrowed from elsewhere.



And here are the graphic's raws, with explanations for what each tag or argument does:
Spoiler (click to show/hide)

The first argument is for what profession is to be used for the image to display. The second is the graphics image ID, as noted above. The two numbers that follow are the tile's location on the page. The very first tile is in the top left, and is considered to be tile 0:0. As that tile is blank, I would go one over to define the bat-demon's image. It is tile 1:0, as it is 1 to the right of the first column and 0 from the top of the first row.

The next argument is how the image is to be coloured. you can ADD_COLOR based on the creature's colour in their raws, or you can leave the image's colours AS_IS. For example, I want the bat to appear with the same colour scheme it has in the above image, but I want the golem to be given a different colour, instead of being gray. In-game, it will appear different colours depending on the material it is made of, with varying colours.

The final argument is the texture token, which can change the image depending on contexts. For example, DEFAULT would apply to most circumstances, but you can make it so that the graphic is only used when the creature is an ADVENTURER, or an ANIMATED corpse, or even a LAW_ENFORCE type unit or a GHOST.

Additional information on graphics can be found on the wiki here.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #4 on: June 11, 2015, 07:50:35 pm »

Okay, thanks. This'll take a while. I tried just modifying the look of the kobold spearman in the raws in an old version, and suddenly, all humanoids have a light grey box around them.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #5 on: June 11, 2015, 08:38:11 pm »

Ehh, decided to go with 18x18 for now... It's a wee bit intimidating to make the second 24x24.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #6 on: June 11, 2015, 09:34:24 pm »

Is it okay to modify another person's graphic pack? Like, take the models, change a bunch of colours, and replace things? I'd obviously give them credit.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: How do I do this?
« Reply #7 on: June 11, 2015, 09:37:24 pm »

I'd say that you should ask them first, as a courtesy.

Though I suppose that would depend on whether or not the user is still active on here.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #8 on: June 11, 2015, 09:48:19 pm »

I was hoping to use Ironhand as my basis. I've already started on the basic dwarf model, replacing the brown beard and baldness with a blonde beard and hair. I'll have multiple beard colours, including red, brown, blonde, and dark grey. Masters will get grey beards, showing age. If I'm allowed to use his graphic pack as a basis, I'll change the armour to be darker, and have them face the opposite way as normal soldiers, as well as basic armour changes. Everyone with professions will look different, a little, and everyone's got blue eyes.

Here's the basic dwarf of mine, next to the normal Ironhand.

« Last Edit: June 11, 2015, 09:50:07 pm by StagnantSoul »
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: How do I do this?
« Reply #9 on: June 11, 2015, 09:52:50 pm »

As a heads-up, you cannot have different graphics for different castes.

Unless I've misread, and by masters you mean weapon masters. Weapon masters can indeed be given their own graphics.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #10 on: June 11, 2015, 09:54:51 pm »

Yeah, that's what I meant. Weapon masters will look kind of grizzled.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #11 on: June 11, 2015, 09:58:04 pm »

And I got the OK to use Ironhand! With the summer coming up, I'll probably have this done before too long. Maybe I'll even make a 24x24. Or would other sizes, like 20x20, work too? Getting everything to look nice will be the big problem, probably. I've always loved Ironhand, but some of the creatures throw me off. Minotaurs and Rocs, for example.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #12 on: June 12, 2015, 06:00:33 pm »

Flyne, I'm pretty sure you're phsychic, I was just wondering about caste-level appearances. Which really sucks, as my Sprites and Draconians each have different looks for the castes.

In other news: Can someone test out what I have so far for me? I can't get my test-DF (a 40.13 file) to run the graphics, even when I copy and paste then save onto the normal ironhand paint file.

Here's what I have so far:



I know, a bit odd looking. I couldn't figure out how to give the miner a pick and make it look right, and I'm having problems with the Thresher and other farmers. I'll get them done with soon. I'm not bugging Ironhand's animals, they're perfect.

Also: Would it cause problems if I used a different sized (24x24) file for certain things? Like, made the nobles and weapon masters higher resolution than the rest?
« Last Edit: June 12, 2015, 06:05:49 pm by StagnantSoul »
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: How do I do this?
« Reply #13 on: June 12, 2015, 06:52:22 pm »

The caste-graphics is a question that I've seen come up from time to time. The only example of a workaround off the top of my head would be how Meph did the Warlocks for Masterwork DF. Each caste had caps on which skills they could gain experience in, and graphics were based on professions, so each caste would be restricted to certain profession graphics based on that.

Also, so long as the different sized graphics are actually different images altogether, and the graphics raws were written to adapt to that, I don't believe there should be any issues.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: How do I do this?
« Reply #14 on: June 12, 2015, 06:56:02 pm »

Holy crepe, Meph is a genius. I'll just give the sprites some cloak-y looks, and the Draconians a general dragon-human-hybrid-like but I'll ask Meph how he did that. I'll make the soldiers each have their own looks.

I'm going to go 32x32 for all races' weapon masters and nobles.
« Last Edit: June 12, 2015, 07:04:57 pm by StagnantSoul »
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.
Pages: [1] 2