It is currently Wed Aug 21, 2019 11:03 am

All times are UTC - 7 hours



Forum rules





Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Snes tile map tool
PostPosted: Mon Feb 04, 2019 5:00 pm 
Offline

Joined: Sun Jan 27, 2019 6:34 pm
Posts: 9
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.


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Mon Feb 04, 2019 5:10 pm 
Offline
User avatar

Joined: Thu Aug 13, 2015 4:40 pm
Posts: 416
Location: Rio de Janeiro - Brazil
Doesn't yy-chr do that?

_________________
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Mon Feb 04, 2019 5:30 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2548
Location: DIGDUG
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


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Mon Feb 04, 2019 6:49 pm 
Offline
User avatar

Joined: Thu Aug 13, 2015 4:40 pm
Posts: 416
Location: Rio de Janeiro - Brazil
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!


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Mon Feb 04, 2019 8:25 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21560
Location: NE Indiana, USA (NTSC)
I'm guessing a "4bpp tilemap" is an abuse of nomenclature for a tilemap that contains appropriate attributes for accessing 16-color subpalettes.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Mon Feb 04, 2019 8:30 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 4208
Location: A world gone mad
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.


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Tue Feb 05, 2019 1:44 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 965
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


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Tue Feb 05, 2019 4:43 am 
Offline

Joined: Sun Jan 27, 2019 6:34 pm
Posts: 9
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 :)


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Tue Mar 05, 2019 9:56 am 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2885
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.


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Wed Mar 06, 2019 4:32 am 
Offline

Joined: Tue Feb 07, 2017 2:03 am
Posts: 749
did you post in the wrong forum? Nobody here is talking about a "compressed" tile map, just a tile map.


Top
 Profile  
 
 Post subject: Re: Snes tile map tool
PostPosted: Wed Mar 06, 2019 9:41 am 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2885
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group