Page 1 of 2

inc2png - encoding include graphics data to an image file

Posted: Tue Sep 01, 2020 9:12 pm
by danboid
Has anybody written a tool to convert a Uzebox graphical include file back into a png or another image format?

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

Posted: Wed Sep 02, 2020 5:38 am
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

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

Posted: Wed Sep 02, 2020 5:51 am
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.

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

Posted: Thu Sep 03, 2020 12:23 pm
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.

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

Posted: Sun Sep 06, 2020 4:43 pm
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.

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

Posted: Tue Mar 02, 2021 1:24 am
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.

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

Posted: Wed Mar 03, 2021 5:32 pm
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.

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

Posted: Wed Mar 03, 2021 5:35 pm
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?

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

Posted: Sun Mar 07, 2021 6:17 pm
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.

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

Posted: Fri Feb 17, 2023 1:54 pm
by danboid
Now that I have a wiki account I was able to add inc2img to the Main page tools list.