inc2png - encoding include graphics data to an image file

This forum is for artists to post their music and graphics or discuss artistic matters that could be used in Uzebox games.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

inc2png - encoding include graphics data to an image file

Post by danboid »

Has anybody written a tool to convert a Uzebox graphical include file back into a png or another image format?
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: inc2png - encoding include graphics data to an image file

Post by Artcfox »

danboid wrote: Tue Sep 01, 2020 9:12 pm Has anybody written a tool to convert a Uzebox graphical include file back into a png or another image format?
Yes, nicksen782 did: https://github.com/nicksen782/inc2img
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: inc2png - encoding include graphics data to an image file

Post by Artcfox »

There is also an online gconvert as part of UAM: http://www.nicksen782.net/UAM/uam.php

I'm not sure if includes the inc2img functionality, but nicksen782 would know.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

Re: inc2png - encoding include graphics data to an image file

Post by danboid »

Oh so it's called inc2img - I almost guessed the name correctly!

I don't actually have a use for it yet but it's nice to know it exists, it could come in handy.
User avatar
nicksen782
Posts: 714
Joined: Wed Feb 01, 2012 8:23 pm
Location: Detroit, United States
Contact:

Re: inc2png - encoding include graphics data to an image file

Post by nicksen782 »

I did have a web-based version of inc2png. However, I didn't use it very often and didn't put it in the current online gconvert.

I could though. Would you find use in that?

The inc2png on Github probably works but it is an ancient precursor to what I currently have with the Online Gconvert. I'll update the online Gconvert to include the feature. Of course, the result will not look like the original graphic since duplicates and unused tiles in maps would have been removed.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

Re: inc2png - encoding include graphics data to an image file

Post by danboid »

Hi Nick

Yes I do have a use for inc2png. Did you get round to updating it?

What is the address? gh search hasn't found it for me.

Also, did you track down those missing ROMs I highlighted a while back? There were a couple of dead links. Uzetroids and Uze-a-move IIRC.

Thanks

EDIT

Just re-read this thread and noticed that Artcfox posted a link to the repo but it seems Nick didn't update it as it was last updated in 2016.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

Re: inc2png - encoding include graphics data to an image file

Post by danboid »

I've just tried the github inc2img and it seems to have missed off the first and last tiles in both the bmp and png output files for my tileset.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

Re: inc2png - encoding include graphics data to an image file

Post by danboid »

I don't have a UB wiki account so it would be good if someone who does would update the UB wiki Tools page to include both inc2img and UAM.

http://uzebox.org/wiki/Main_Page#Tools

Are there any other tools not listed on there I should know about?
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: inc2png - encoding include graphics data to an image file

Post by D3thAdd3r »

mconvert can compress MIDI music by ~20-40%

dconvert can translate C array<->binary, starting from arbitrary points to arbitrary destinations, with other options. This is all handled by a "batch" file, so that many sequential transforms can be done on the data. It can enhance the power of existing tools(ie. midiconv->mconvert->SD image, or RAW WAV->SD image). Primarily this is automation for the manual operations you need to do for SD games, but can be used for many things.

Those are in "Weber's Rants" somewhere.
User avatar
danboid
Posts: 1881
Joined: Sun Jun 14, 2020 12:14 am

Re: inc2png - encoding include graphics data to an image file

Post by danboid »

Now that I have a wiki account I was able to add inc2img to the Main page tools list.
Post Reply