Bay 12 Games Forum

Please login or register.

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

Author Topic: Tile Genie - Merge multiple tile sets - Updated to 1.0.2.0!  (Read 20675 times)

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Tile Genie - Merge multiple tile sets - Updated to 1.0.2.0!
« on: February 18, 2011, 06:32:32 pm »

Updated to Version 1.0.2.0

I wrote a quick little tool that will allow you to take multiple tile sets and combine them in to one set by picking and choosing the tiles.  Its just the first version, so it is very rough and not very user friendly just yet, but I'm working to make it better.

Spoiler (click to show/hide)

Basic Instructions:
  • Run the program.
  • Select the tile sets that you are interested in merging.
  • Switch to the "Create" tab, and select the base tile set.  This is the tile set that you want to use as your starting point.
  • select tiles by clicking in the image area.  You can select multiple tiles by clicking and dragging, and multiple ranges by holding control while dragging (sort of like a listbox).
  • use the drop down menu on the right to replace the selected tiles with the tiles at the same location in the selected tile set.
  • Click Save to export your new tile set.

It should handle tile sets of different sizes by resizing the tile to be the same size as the base set, though it may look ugly or blurry.  If the source tile is smaller than the base tile you may end up with some garbage pixels from neighboring tiles included, I'm working on a fix for this.
It also requires the .NET framework.
www.gumpstudio.com/TileGenie/TileGenie-1.0.2.0.zip

Any suggestions or bug reports would be greatly appreciated.

Changes for version 1.0.2.0:
  • Added 2 new resizing modes.  "None" will just place the new source tile at the origin of the destination tile with no resizing.  "Center and Clip"  will center the source tile within the destination tile, and clip it so that it can't overlap tiles around it; it will also not resize.
  • control-A now selects all the tiles.
  • brightness has been refactored to be stored per tile, though it can still only be edited for the entire set at once currently.

Changes for version 1.0.1.0:
Spoiler (click to show/hide)

Changes for version 1.0.0.3:
Spoiler (click to show/hide)

Changes for version 1.0.0.2:
Spoiler (click to show/hide)

Changes for version 1.0.0.1:
Spoiler (click to show/hide)
« Last Edit: February 25, 2011, 12:50:04 pm by BradUffner »
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Spiral42

  • Bay Watcher
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #1 on: February 18, 2011, 08:30:05 pm »

I just spent much of this morning splicing tilesets together before seeing this, so I'm in a great position to say that this is an excellent idea and I commend your hard work.
Logged
Add me on Steam: ColdSpiral

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #2 on: February 18, 2011, 11:18:13 pm »

I've uploaded a new version that cleans up the UI and fixes a transparency bug.  Download link in the first post is updated.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #3 on: February 18, 2011, 11:31:02 pm »

Sorry, yet another new version to fix some stupid mistakes in 1.0.0.1
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #4 on: February 19, 2011, 02:00:32 am »

There is still a pretty serious bug where the alpha layer is getting lost when the new tileset is saved.  I've spent the last few hours digging around the .net framework trying to find out what's going on without any luck.  Until I can get this fixed the program isn't going to be very useful.

Right now I need some sleep, but I'll be back on it in the morning.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #5 on: February 19, 2011, 02:11:59 am »

Ha! I figured out what the bug was just as I was getting in to bed.
New version uploaded.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Korva

  • Bay Watcher
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #6 on: February 19, 2011, 05:18:59 am »

Just as I was wondering how to mix different sets. I may give this a whirl, thanks!
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #7 on: February 19, 2011, 09:00:36 am »

Heh, it may be faster than comparing tiles in photoshop and copy-pasting them manually. Also it's nice to merge your changed tilesets with updates to original ones, so it's definitely useful. Thanks.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #8 on: February 19, 2011, 10:21:11 am »

Does anyone have any information about how dwarf fortress uses the RGBA layers of the image when combining them with the foreground and background colors?  I'd like to do something where you can pick colors in Tile Genie and it will display what the tiles would look like in DF using those colors.  Also, possibly adding the ability to edit individual tiles in an editor.  So far the post on "Tile Magic" is the closest to what I'm looking for, but it's not complete for what I need.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #9 on: February 19, 2011, 12:59:05 pm »

The "solid" (transparency=0%) pixels use the foreground color, the "transparent" (transparency=100%) are the background color, the partially transparent pixels use a blend of background/foreground color based on transparency. It led to a "tile magic" (I think Ironhand first invented it and its name) where you make the real background just black and use foreground/background colors to make different-looking sprites out of a single sprite (i.e. you could have two overlapping images, where you could show the first one using a foreground color, the second one using a background color or a mix using both).

An example: a small creature as a foreground color and a worm as a background color on a place of pet's tail. You could toggle foreground color to show a small creature (frog? hamster?), toggle background color to show a small worm (or a snake?) or both to show a small critter with a long tail (a squirrel?).
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #10 on: February 19, 2011, 01:17:43 pm »

The "solid" (transparency=0%) pixels use the foreground color, the "transparent" (transparency=100%) are the background color, the partially transparent pixels use a blend of background/foreground color based on transparency. It led to a "tile magic" (I think Ironhand first invented it and its name) where you make the real background just black and use foreground/background colors to make different-looking sprites out of a single sprite (i.e. you could have two overlapping images, where you could show the first one using a foreground color, the second one using a background color or a mix using both).

An example: a small creature as a foreground color and a worm as a background color on a place of pet's tail. You could toggle foreground color to show a small creature (frog? hamster?), toggle background color to show a small worm (or a snake?) or both to show a small critter with a long tail (a squirrel?).

ok, so if a pixel has an alpha value of 25%, it will blend 25% fore color with 75% of the back color?  how do the RGB channels of the actual tileset factor in?  For example, Iron Hand's set has a bed with blue sheets in the raw tileset, how does that affect the output color of one of those blue pixels?  What happens if that blue pixel has an alpha of 50%?
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #11 on: February 19, 2011, 01:23:32 pm »

The RGB of the actual tileset simply overlap with foreground/background color (the color mixing method may be affected by the PRINT_METHOD, or not).
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Tile Genie - Merge multiple tile sets
« Reply #12 on: February 19, 2011, 01:33:44 pm »

The RGB of the actual tileset simply overlap with foreground/background color (the color mixing method may be affected by the PRINT_METHOD, or not).

Perfect!  Thanks for the help :D
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Fullmoon

  • Bay Watcher
  • Elfless
    • View Profile
Re: Tile Genie - Merge multiple tile sets
« Reply #13 on: February 20, 2011, 01:05:20 pm »

This...
You know, every time I think of would-be-great DF utility, somebody goes and make it.
First I thought about visual raws editor.
Next about some kind of visualiser based on Minecraft.
Yesterday I thought ‘It would be nice to use Ironhand's font with Phoebus tileset’.
Logged
Quote from: Fishbulb
I got an artifact cave spider silk sock this morning. It's worth 5,720 dwarfbucks, and it doesn't menace with spikes of anything.
Quote
Dwarfs don't have issues.  Dwarfs merely have inspiration for the legendary artifact they will one day make.
Quote from: Urist son of Urist
Considering the general state of DF, I think Einstein and Newton are already rotating fast enough that you could hook them up to pumps and use them to kill Elves.

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Tile Genie - Merge multiple tile sets
« Reply #14 on: February 20, 2011, 03:43:35 pm »

Nice! People often ask about mixing and matching tilesets :D

Maybe add an option to adjust the brightness? (Some people find our tileset a bit too dark.)
Logged
Pages: [1] 2 3