Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creating Tilesets  (Read 775 times)

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Creating Tilesets
« on: March 19, 2009, 11:26:17 pm »

Any have a template or something to create a tileset or something? :P

Sarge

  • Escaped Lunatic
    • View Profile
Re: Creating Tilesets
« Reply #1 on: November 30, 2009, 09:27:03 am »

I recently downloaded and installed the Dig Deeper mod and I'm having quite a bit more fun with it. I installed it after I already had the Mayday Tileset installed. Even though the Dig Deeper mod is great, it seems to lack quite a view pics.

Admittedly I am clueless, so they might actually be there somewhere and i just don't know how to activate them. Still, it annoys me that there are pics for most trees, animals etc., but that some are in ASCII.

I found a great tileset page that Nethack for Windows uses (http://www.nethack.org/v343/ports/download-win.html see step5) and wanted to use some for animals, orcs, weapons, armor etc., but I'm just too daft to figure out how to, even when following Mayday's Example page.

I saved the Nethack tiles32.bmp file as a tiles32.png file in the Mayday folder. Then, checking the ANIMALS section noticed that I needed to set the amount of tiles on the page in x,y starting with 0,0 top-left. Blah blah, this is what I did in graphics_mayday in its own section, after the current list of animals:

[TILE_PAGE:ANIMALS]
   [FILE:mayday/tiles32.png]
   [TILE_DIM:32:32]
   [PAGE_DIM:40 :27]

[CREATURE_GRAPHICS:PIG]
   [DEFAULT:ANIMALS:26:0:AS_IS:DEFAULT]
   [CHILD:ANIMALS:25:0:AS_IS:DEFAULT]
   [STANDARD:ANIMALS:18:0:AS_IS:ZOMBIE]

Now, in stead of having the letter 'p' for pigs, I have graphics, but it's graphics from the animals.png file in the Mayday folder and not the tiles32.png file.

- What do I need to do to make it read from the Nethack tiles32.png file?
- How does TILE_DIM work? I used 32 x 32, cause that's what it said the tile dimensions are on step 5 of the nethack download link. But 16x16 didn't seem to do anything either.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Creating Tilesets
« Reply #2 on: November 30, 2009, 09:56:14 am »

TILE_DIM = tile dimensions, basically XxY of your sprites.
PAGE_DIM = number of tiles XxY, starting with 0.

Basic DF uses 16x16 max, 40d16 may use higher dimensions.

P.S. As for "templates", you can look into any released versions:

Character sets: http://dwarffortresswiki.net/index.php/List_of_user_character_sets
Graphic sets:  http://dwarffortresswiki.net/index.php/Graphics_sets
« Last Edit: November 30, 2009, 09:58:06 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository