Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pseudo-ASCII: graphics set based on tileset image  (Read 5559 times)

DPh Kraken

  • Bay Watcher
  • [PRONOUN:she:her:hers][PRONOUN:it:it:its]
    • View Profile
Pseudo-ASCII: graphics set based on tileset image
« on: August 29, 2024, 03:33:54 am »

This is a project I've been working on, it's basically putting a bunch of tileset images for each color combination and putting them into the full-color Premium graphics raws. Design goal is to be extensible and use this mod as a framework for loading tilesets by other authors in a post-TWBT world. Because each renderer has its own quirks, it's not perfectly accurate, but I've tried to make it work as well as possible.

Features a DFhack script to replace the black background with a custom image.

It's heavily WIP, since it requires a lot of research to find the equivalencies of graphics tokens vs things from the tileset. Item graphics are complete, environment is almost done, buildings and plants need some extra attention. Any help is appreciated.

https://github.com/ATP-Kraken/DF-PseudoASCII/

Screenshots:
https://imgur.com/a/BaO79xg
« Last Edit: December 03, 2024, 06:21:01 pm by DPh Kraken »
Logged
[CHEESE_PLANT] and [CHEESE_GRAPHICS] biggest fan
My mods:
Language & symbols • Miscellany • Graphics repository • Pseudo-ASCII

Ontoue

  • Escaped Lunatic
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #1 on: September 02, 2024, 10:32:27 pm »

Oh I was just fantasizing about something like this the other day. I can't see the previews unfortunately, but I am very interested in this. How do you find the original tile for a given sprite? Just dig through the raws?
Logged

DPh Kraken

  • Bay Watcher
  • [PRONOUN:she:her:hers][PRONOUN:it:it:its]
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #2 on: September 02, 2024, 11:11:55 pm »

There's no raws for most objects, I have to rely on the Tilesets page on the wiki and switching between ASCII and graphics.
Logged
[CHEESE_PLANT] and [CHEESE_GRAPHICS] biggest fan
My mods:
Language & symbols • Miscellany • Graphics repository • Pseudo-ASCII

jecowa

  • Bay Watcher
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #3 on: September 11, 2024, 01:31:06 pm »

So you make the main tilesheet in all 256 combinations of foreground color and background color. Then you write raw objects files that map it to those files. And then the raws can be used for any 32x32 tileset that uses the vanilla raws just by making 256 versions of its main tilesheet. Am I understanding this correctly?

How do I install it? I have DFHack running on Dwarf Fortress 0.50.13. I put "hardcoded_gfx.lua" into the /hack/scripts/ folder and "swap_graphics.lua" into the /hack/scripts/internal/ folder. How do I install the graphics?

---
Edit3: I put the contents of the graphics folder into the vanilla folder, and turned on graphics mode, but I don't think it worked. Tested adamantine pants here:

Spoiler (click to show/hide)
« Last Edit: September 11, 2024, 03:01:52 pm by jecowa »
Logged

DPh Kraken

  • Bay Watcher
  • [PRONOUN:she:her:hers][PRONOUN:it:it:its]
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #4 on: September 12, 2024, 02:32:13 am »

I'm only using a limited number of combinations, but the principle is the same.
To use it, you need to install it as a mod when creating a new world. I'm not sure why you're trying to merge it into vanilla.
Logged
[CHEESE_PLANT] and [CHEESE_GRAPHICS] biggest fan
My mods:
Language & symbols • Miscellany • Graphics repository • Pseudo-ASCII

jecowa

  • Bay Watcher
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #5 on: September 12, 2024, 02:37:52 am »

Thank you. I figured out how to add mods to the arena, and it works now.
Logged

A_Curious_Cat

  • Bay Watcher
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #6 on: December 03, 2024, 10:08:58 pm »

Are you familiar with mikekchar’s Invisible project?
Logged
Really hoping somebody puts this in their signature.

DPh Kraken

  • Bay Watcher
  • [PRONOUN:she:her:hers][PRONOUN:it:it:its]
    • View Profile
Re: Pseudo-ASCII: graphics set based on tileset image
« Reply #7 on: December 04, 2024, 04:11:15 am »

I am. The way that Pseudo-ASCII references graphics tiles is completely separate from the way Invisible does it. It does sound like we've got some pretty similar end goals, what with enabling the conversion of old graphics sets to the v50+ format.
In an ideal world, this sort of hybrid ASCII-graphical should just work, instead of having to rewrite all of the raws to actually do so. Pseudo-ASCII can still do some interesting stuff like full colors for materials and such.
Logged
[CHEESE_PLANT] and [CHEESE_GRAPHICS] biggest fan
My mods:
Language & symbols • Miscellany • Graphics repository • Pseudo-ASCII