Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Graphics help  (Read 747 times)

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Graphics help
« on: June 07, 2013, 11:21:31 am »

So I've made a 16x16 tile. How exactly do I get this thing to work with a creature? I've tried this;
Spoiler (click to show/hide)
To no avail. Any help?
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Graphics help
« Reply #1 on: June 07, 2013, 11:42:28 am »

Is your png file really 16 tiles by 16 tiles?  (i.e. 256 px by 256 px with the tile you intend to use in the 0,0 position?)  Otherwise you have to change the PAGE_DIM.

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Re: Graphics help
« Reply #2 on: June 07, 2013, 11:45:59 am »

Oh.. I see how that bit works now :P it's literally only 16x16 PIXELS in dimension..
The image is a 16x16 image of a robot thingy. So... I don't suppose you could really quickly whip a file up that has <insert creature name here> or something for me?? Hahaha
Logged

Obsidian Soul

  • Bay Watcher
  • ...and the severed part sails off in an arc!
    • View Profile
Re: Graphics help
« Reply #3 on: June 07, 2013, 12:29:44 pm »

If you're using another tileset, you simply find where the 16x16 tile of this creature is originally, then cut it out and replace it with your custom image.

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Re: Graphics help
« Reply #4 on: June 07, 2013, 01:43:48 pm »

Its a creature graphic. Nothing to do with the tileset. I'm talking about raws/graphics. I'm useless with these files :)
« Last Edit: June 07, 2013, 01:48:43 pm by Godlysockpuppet »
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Graphics help
« Reply #5 on: June 07, 2013, 01:50:51 pm »

So... I don't suppose you could really quickly whip a file up that has <insert creature name here> or something for me?? Hahaha

Vanilla DF comes with "graphics_example.txt" still, right?  That's probably the best thing to look at.

TILE_PAGE is arbitrary name, it's like a variable
TILE_DIM has to match what you drew
PAGE_DIM has to match what you drew
CREATURE_GRAPHICS has to match the name of your creature
The coordinates X:Y locate the tile on your page (upper left tile is 0:0)




Spoiler (click to show/hide)
« Last Edit: June 07, 2013, 02:24:32 pm by smakemupagus »
Logged

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Re: Graphics help
« Reply #6 on: June 07, 2013, 02:43:31 pm »

Thanks smake :) as for PAGE_DIM is it that that determines the total number of tiles? So for one tile its 1x1?
Logged

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Re: Graphics help
« Reply #7 on: June 08, 2013, 04:03:06 am »

Does transparency have an issue (with the picture itself?) Because this is my code; And I know that it should work.
Spoiler (click to show/hide)

In arena mode it just appears as a black tile? :P
« Last Edit: June 08, 2013, 04:13:06 am by Godlysockpuppet »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Graphics help
« Reply #8 on: June 08, 2013, 04:17:12 am »

TILE_PAGE:DEITIES

DEFAULT:ACONSTRUCT

ACONSTRUCT there should be DEITIES.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Godlysockpuppet

  • Bay Watcher
  • [Insert wit here]
    • View Profile
Re: Graphics help
« Reply #9 on: June 08, 2013, 04:39:36 am »

Really? The name of the creature is ACONSTRUCT though? I'll try deities.
//edit herpaderpderp. Why wasen't that explained to me the first time I screwed up? God damn it guys :( It worked btw
Logged