I've finished reading bunnyboy's Nerdy Nights and decided to give it a try. I just want to show some background and sprites the screen, but I found I don't know how to make .chr file. Can anyone tell me please?
How to create .chr file?
Moderator: Moderators
How to create .chr file?
Sorry for asking such a stupid question. I'm new. 
I've finished reading bunnyboy's Nerdy Nights and decided to give it a try. I just want to show some background and sprites the screen, but I found I don't know how to make .chr file. Can anyone tell me please?
I've finished reading bunnyboy's Nerdy Nights and decided to give it a try. I just want to show some background and sprites the screen, but I found I don't know how to make .chr file. Can anyone tell me please?
To make a chr file you will need an editor. One example would be yy-chr that is quite simple to use and can be downloaded here since the original site is down.
There are other one but for now this is the first one that came to mind. There must be other ones available on the same site linked above.
There are other one but for now this is the first one that came to mind. There must be other ones available on the same site linked above.
I made a little command line program that creates blank binary files that I use for CHR work. Download the program called 'makebin' on this page:
http://robertlbryant.com/programs/cpp.htm
Run it from the command line, enter 4 for your file size, and hit enter. Then open Tile Layer Pro, set 'Files of type' at the bottom to All Files (*.*), open the file you made with makebin, click View -> Type -> NES. Start editing your file, and don't forget to save!
Hope that helps a little.
http://robertlbryant.com/programs/cpp.htm
Run it from the command line, enter 4 for your file size, and hit enter. Then open Tile Layer Pro, set 'Files of type' at the bottom to All Files (*.*), open the file you made with makebin, click View -> Type -> NES. Start editing your file, and don't forget to save!
Hope that helps a little.
I usually create file using Translhextion.
Just open it, and insert as many 00's as you want, and save your file with whatever extension (I prefer .chr as many of us).
Just open it, and insert as many 00's as you want, and save your file with whatever extension (I prefer .chr as many of us).
I've tried both makebin and Translhextion. Sorry I don't really technically understand what .chr file is...
1. The .bin created by makebin is a .nes or .chr?
2. If I enter some 00 in Translhextion and save it as a .chr, is it a clean .chr I can import bmp into? What I mean is that if I import a bmp to the .chr, will those 00 be overwritten and I get a clean .chr with only the bmp imported?
Another question. Nes has 2 tile pattern tables, 1 for background and 1 for sprite. Now I've already made my two 128x128 bmp. How can I include both 2 pattern tables into one .chr?
1. The .bin created by makebin is a .nes or .chr?
2. If I enter some 00 in Translhextion and save it as a .chr, is it a clean .chr I can import bmp into? What I mean is that if I import a bmp to the .chr, will those 00 be overwritten and I get a clean .chr with only the bmp imported?
Another question. Nes has 2 tile pattern tables, 1 for background and 1 for sprite. Now I've already made my two 128x128 bmp. How can I include both 2 pattern tables into one .chr?
File extensions are there so that the computer knows what program it should use to open the files, they don't have any impact on what the files actually are/contain. If it has the correct size you can use it as a CHR file just fine.chmaster wrote:1. The .bin created by makebin is a .nes or .chr?
I guess, but I can't say I'm 100% sure because I never used the import features of these tile editors. It seems you'd have to enter 4096 00's if you want a 4KB CHR file though, so "makebin" sounds like a less tedious option to create your empty file.2. If I enter some 00 in Translhextion and save it as a .chr, is it a clean .chr I can import bmp into?
If you use a 128x256 BMP instead you will get a CHR file that will fill both pattern tables. If you already have 2 4KB CHR files, you can join them with "copy /b file1.chr + file2.chr file3.chr" in the command prompt. you could also simply include both files, one after the other, in your source code, no problem.Now I've already made my two 128x128 bmp. How can I include both 2 pattern tables into one .chr?