It is currently Tue Dec 18, 2018 6:47 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Dec 06, 2018 2:30 am 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2131
Location: Fukuoka, Japan
I think it's a very specific need but I will ask anyway.

Let say that I have a chr already. I want to extract the name table from an image against that chr. This means the tool look at the chr, try to find tiles in the picture and make the nametable data for that screen. Usually it's the opposite you want to do, automatically extract the tiles from an existing image and the nametable, I just want to create the nametable data only.

Does such tool exist? I do not remember seeing any or my memory is failing me.


Top
 Profile  
 
PostPosted: Thu Dec 06, 2018 3:12 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 857
Yes, "tilecoords" from my tools at github.com/clbr/nes.


Top
 Profile  
 
PostPosted: Thu Dec 06, 2018 7:36 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20896
Location: NE Indiana, USA (NTSC)
Banshaku wrote:
Let say that I have a chr already. I want to extract the name table from an image against that chr. This means the tool look at the chr, try to find tiles in the picture and make the nametable data for that screen. Usually it's the opposite you want to do, automatically extract the tiles from an existing image and the nametable, I just want to create the nametable data only.

I seem to remember that savtool.py from my NES background editor can do this as well. Try this:
Code:
savtool.py an_image.png --chr already.chr --palette 0F0010300F0616260F1A2A3A0F021222 -o an_image.sav
savtool.py an_image.sav an_image.nam


Top
 Profile  
 
PostPosted: Thu Dec 06, 2018 8:18 am 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2131
Location: Fukuoka, Japan
@calima, @tepples

So those tools does exist, even two of them :) That will be quite useful for some testing I have to do against an exist chr. Thanks!


Top
 Profile  
 
PostPosted: Fri Dec 07, 2018 7:35 am 
Offline

Joined: Mon May 27, 2013 9:40 am
Posts: 500
I have something too. It reads a palette file, an existing tileset and a png with the image and creates a .NAM, optionally a rle'd image using the Nesst format

https://github.com/mojontwins/MK1_NES/b ... namgen.bas
https://github.com/mojontwins/MK1_NES/b ... namgen.exe

(It's on the 2.0 branch of AGNES, not released yet)

_________________
http://www.mojontwins.com


Top
 Profile  
 
PostPosted: Fri Dec 07, 2018 7:45 am 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2131
Location: Fukuoka, Japan
@na_th_an

Another one, thanks! You should announce your latest game here ;)

So it seems that it was more common than I expected. I had the impression that is was something less common and people were doing the opposite like taking a PNG, extract the chr+nam instead. I was wrong.


Top
 Profile  
 
PostPosted: Thu Dec 13, 2018 1:02 am 
Offline

Joined: Mon May 27, 2013 9:40 am
Posts: 500
Many times I find easier building my title or cutscene screens in Aseprite or Photoshop. Also, this integrates in my toolchain, so I can use the same png to first extract pattern data and build a chr and then use namgen the chr to get a nam out of the png.

_________________
http://www.mojontwins.com


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 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