Daniel, when John says "pass it to the power of 2 program", he means for you to open a cmd window and then "pass" the file as an input parameter to the tx2pow2 program by using the "<" character, for example:danielj wrote:How I PASS the file?
I have to put the file inside F-Tex Tools and then what?
The conditions as a video file is problematic.I run the bat.exe and it only produces the levels 0-5,all empty.
What is the normal?I know that Power of 2 is tx2pow2,but I don?t know which one is normal and where I have to put the file.
Code: Select all
tx2pow2 1 92160 < Clementine.bin > level5\64k.bin
To break this command down:
tx2pow2 : is the name of the program you run to convert to a power of 2.
1 : is the first parameter, which says in this case you are processing a grayscale image.
92160 : is the 2nd parameter which is the size of the input file
< Clementine.bin : tells the program where to get the input (the filename must follow next (in this case Clementine.bin)
> level5\64k.bin : tells the program where to put the output (in this case in a file called 64k.bin in the level 5 folder.
After doing that you will find that a file called 64k.bin has appeared in the level5 folder. All that remains now is to just repeat the process by using the output file from that step, as the input for the next run of tx2pow2:
Code: Select all
tx2pow2 1 65536 < level5\64k.bin > level4\32k.bin
...and so on,
Code: Select all
tx2pow2 1 32768 < level4\32k.bin > level3\16k.bin
...and so on....for 8k and 4k files....
until you finally get the last output file in the level0 folder:
Code: Select all
tx2half 1 4096 < level1\4k.bin > level0\2k.bin
You will now have the correct power of 2 sized .bin file in each folder.
The next step is to use each of these files as the input to the tile creation program.
Code: Select all
cd level5
txtiles 1 65536 5 < 64k.bin
cd ..
cd level4
txtiles 1 32768 4 < 32k.bin
cd ..
cd level3
txtiles 1 16384 3 < 16k.bin
cd ..
cd level2
txtiles 1 8192 2 < 8k.bin
cd ..
cd level1
txtiles 1 4096 1 < 4k.bin
cd ..
cd level0
txtiles 1 2048 0 < 2k.bin
cd ..
Finally after you've done all these steps, you can delete or archive all the BIN files.
The wholes process was explained earlier in this thread by praesepe, here: Subject: Just a test - 64K Moon
Now that you understand cmd line commands and how they work, I suggest you re-read his post.
CC