Snes tile map tool

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
Cisra
Posts: 9
Joined: Sun Jan 27, 2019 6:34 pm

Snes tile map tool

Post by Cisra » Mon Feb 04, 2019 5:00 pm

Is there any tool to generate 4bpp tile map hexadecimal values which are indexes of tiles?
I'm currently using superfamiconv which gives me a tile map but when I use it it gives me garbage on screen. Also I've noticed when I export it as an C array it is by far larger than some arrays from my examples. (example: for picture 14x19 tiles I have array of the same size for tile map).
Using superfamiconv and setting dimensions of map to 16x16 the output file opened with hex editor is 496x16.
Or if someone knows more on how can I make this map file from superfamiconv useful it would be of great help.

User avatar
nesrocks
Posts: 457
Joined: Thu Aug 13, 2015 4:40 pm
Location: Rio de Janeiro - Brazil
Contact:

Re: Snes tile map tool

Post by nesrocks » Mon Feb 04, 2019 5:10 pm

Doesn't yy-chr do that?
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!

User avatar
dougeff
Posts: 2672
Joined: Fri May 08, 2015 7:17 pm
Location: DIGDUG
Contact:

Re: Snes tile map tool

Post by dougeff » Mon Feb 04, 2019 5:30 pm

tile map. not tiles.

yy-chr can make tiles.

You could make a tile map in tiled map editor, export csv, and turn it into a .asm file with a clever python (or whatever language) script.
nesdoug.com -- blog/tutorial on programming for the NES

User avatar
nesrocks
Posts: 457
Joined: Thu Aug 13, 2015 4:40 pm
Location: Rio de Janeiro - Brazil
Contact:

Re: Snes tile map tool

Post by nesrocks » Mon Feb 04, 2019 6:49 pm

The question seems confused then. Why would a tilemap need to be 4bpp? It seems a question about tilesets. Maybe I don't know what I'm talking about since it's snes ^^
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!

tepples
Posts: 21936
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Snes tile map tool

Post by tepples » Mon Feb 04, 2019 8:25 pm

I'm guessing a "4bpp tilemap" is an abuse of nomenclature for a tilemap that contains appropriate attributes for accessing 16-color subpalettes.

User avatar
koitsu
Posts: 4217
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: Snes tile map tool

Post by koitsu » Mon Feb 04, 2019 8:30 pm

Tool in question: https://github.com/Optiroc/SuperFamiconv (I'd never heard of this tool until now)

It would help if you could provide the exact arguments/commands you're using, and details of your image source files.

We had old tools in the MS-DOS days that would output assembly statements (usually .db $xx,$xx,$xx,...) for such data, but almost certainly these tools would not work on whatever imagery you're using today.

calima
Posts: 1107
Joined: Tue Oct 06, 2015 10:16 am

Re: Snes tile map tool

Post by calima » Tue Feb 05, 2019 1:44 am

My tilecoords tool from https://github.com/clbr/nes can do maps from any PNGs. You might also notice the array of bugs I filed for superfamiconv :P

Cisra
Posts: 9
Joined: Sun Jan 27, 2019 6:34 pm

Re: Snes tile map tool

Post by Cisra » Tue Feb 05, 2019 4:43 am

YY-char has options like bg set and than you have to manually add tile by tile and export it as .nam file but the grid is too wide and I need to, also manually, delete 0x00 values that should not be there . (This is the only way I found to use yychr for my purpose).

What I need is something that could extract that from the image file.
I even got idea to write my own script for that purpose.
calima wrote:My tilecoords tool from https://github.com/clbr/nes can do maps from any PNGs. You might also notice the array of bugs I filed for superfamiconv
I'm looking forward to check your tools as soon as possible :)

psycopathicteen
Posts: 2923
Joined: Wed May 19, 2010 6:12 pm

Re: Snes tile map tool

Post by psycopathicteen » Tue Mar 05, 2019 9:56 am

I remember asking this question before and for some reason I usually get responses like "it wouldn't be very useful because compression formats are highly customisable." Except that some programmers just want to get done with their game and don't care about saving every last byte.

Oziphantom
Posts: 825
Joined: Tue Feb 07, 2017 2:03 am

Re: Snes tile map tool

Post by Oziphantom » Wed Mar 06, 2019 4:32 am

did you post in the wrong forum? Nobody here is talking about a "compressed" tile map, just a tile map.

psycopathicteen
Posts: 2923
Joined: Wed May 19, 2010 6:12 pm

Re: Snes tile map tool

Post by psycopathicteen » Wed Mar 06, 2019 9:41 am

No, this thread just reminded me of time a while ago when I asked a similar question and got a response about "compression formats being highly customisable" when all I wanted was an easy way to make a tile map in general.

Post Reply