Item 1: You encode a GRF, not an NFO.Bennythen00b wrote:Code: Select all
grfcodec -e -c buffers_Onlytemperate.nfo -f
Item 2: You must not use -f if you want me to look at your files.
Moderator: Graphics Moderators
Item 1: You encode a GRF, not an NFO.Bennythen00b wrote:Code: Select all
grfcodec -e -c buffers_Onlytemperate.nfo -f
I am wondering, why grfcodec does support encoding *.nfo.DaleStan wrote: Item 1: You encode a GRF, not an NFO.
Even if Pikka's tutorial says to use -f, which it doesn't, you still must not use -f if you want me to look at your files.Bennythen00b wrote:I am just following PikkaBird's tutorial!
In fact, it does. But I do not guarantee that it will continue to work.Ammler wrote:I am wondering, why grfcodec does support encoding *.nfo.
It makes more sense to me that you give grfcodec the name of the file you want it to read, rather than the name of some file that doesn't exist yet and which has only a tenuous relationship to the name of the file you want it to read. I'll stick with it as long as it works...Ammler wrote:I am wondering, why grfcodec does support encoding *.nfo.DaleStan wrote: Item 1: You encode a GRF, not an NFO.
It is.PikkaBird wrote:Anyway, Benny, you probably need to make sure that the filename is correct in the batch file.
Yes, I do.PikkaBird wrote:You know you can run batch files from a command prompt too, right?
Sure, how should I do it then?DaleStan wrote:Even if Pikka's tutorial says to use -f, which it doesn't, you still must not use -f if you want me to look at your files.
That would be because the palette in your PCX is incorrect. 8-bit indexed is necessary but not sufficient. Unless you know what you are doing (or are generating a DOS GRF, in which case you must use the palette from a DOS decoding), you must use exactly the palette that grfcodec generates when decoding a Windows GRF. "Exactly" means that you must have the same colors and they must be in the same order.Bennythen00b wrote:But now GRFCodec sais this:
The palette in your pcx is all over the place. Obviously your graphics program is doing something funny to it.Bennythen00b wrote:I did not add or remove one single pixel. I just copy/pasted the temperate tunnels over the arctic ones.
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 04 15 00 00 00
1 * 39 08 07 "TV" 00 01 02 "Class 465" 00 "Class 465 Description" 00
2 * 04 01 00 01 08 --EMU sprites
3 sprites/465s.pcx 66 8 01 18 8 -3 -10
4 sprites/465s.pcx 82 8 09 16 20 -14 -7
5 sprites/465s.pcx 114 8 01 12 28 -14 -6
6 sprites/465s.pcx 162 8 09 16 20 -4 -8
7 sprites/465s.pcx 194 8 01 18 8 -3 -10
8 sprites/465s.pcx 210 8 09 16 20 -14 -7
9 sprites/465s.pcx 242 8 01 12 28 -14 -6
10 sprites/465s.pcx 290 8 09 16 20 -4 -8
11 * 04 01 00 02 04 --carriage sprites
12 sprites/465s.pcx 322 8 01 18 8 -3 -10
13 sprites/465s.pcx 338 8 09 16 20 -14 -7
14 sprites/465s.pcx 370 8 01 12 28 -14 -6
15 sprites/465s.pcx 418 8 09 16 20 -4 -8
16 * 9 02 00 00 01 01 00 00 00 00 -- train sprite
17 * 9 02 00 01 02 02 01 01 01 01 --carriage sprite
18 * 9 03 00 01 0C 00 00 00 00 00 -- add new GFX to Dash DMU
19 * 7 03 00 81 1B 00 01 00 --livery override of carriages attached to the train
20 * 16 00 00 05 01 0C 15 00 14 AE 09 48 00 22 40 19 28
21 * 7 00 00 01 01 0C 12 FD
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 04 0F 00 00 00
1 * 27 08 07 "TV" 00 01 02 "Class 465" 00 "Class 465" 00
2 * 04 01 00 01 08
3 sprites/465s.pcx 66 8 01 18 8 -3 -10
4 sprites/465s.pcx 82 8 09 16 20 -14 -7
5 sprites/465s.pcx 114 8 01 12 28 -14 -6
6 sprites/465s.pcx 162 8 09 16 20 -4 -8
7 sprites/465s.pcx 194 8 01 18 8 -3 -10
8 sprites/465s.pcx 210 8 09 16 20 -14 -7
9 sprites/465s.pcx 242 8 01 12 28 -14 -6
10 sprites/465s.pcx 290 8 09 16 20 -4 -8
11 * 9 02 00 00 01 01 00 00 00 00
12 * 9 02 00 01 02 02 01 01 01 01
13 * 7 03 00 01 0C 00 00 00
14 * 21 00 00 07 01 0C 15 00 14 AE 09 48 00 22 40 19 28 0B 48 06 16 44
15 * 7 00 00 01 01 0C 12 FD
Obviously you fail to find the built-in documentation as the documentation which comes along with renum:javaguy wrote: Am I doing something wrong with NFORenum? I was rather hoping for a text file listing some errors or at least a little text doc explaining how to use it. A poke about the thread didn't seem to yield any sort of instruction document either.
Code: Select all
/nforenum ingo$ ls *doc
AUTO_CORRECT.cz.txt COMMANDS.cz.txt README.RPN.cz.txt README.cz.txt SANITY.cz.txt
AUTO_CORRECT.en.txt COMMANDS.en.txt README.RPN.en.txt README.en.txt SANITY.en.txt
/nforenum ingo$ cat doc/README.en.txt
(...)
Usage
=====
To renumber NFO files (for example MyGRF1.NFO and MyGRF2.NFO), use
> renum [options] MyGRF1 MyGRF2
(Run renum -? or renum --help for a list of command line options.)
(...)
/nforenum ingo$ renum -h
NFORenum v3.4.6 r2191E - Copyright 2004-2009 Dale McCoy.
renum: unrecognized option `-h'
Usage: renum [options] [file1 [file2 [file3 [...]]]]
Any number of files may be specified.
If no files or options are specified, NFORenum will read a file from
standard input and write it to standard output.
Options:
--comments=<type> -c <type>
<type> is one character, either /, ;, or #, and specifies the comment
style that NFORenum will use. This will not change the header, because
grfcodec requires that the header be commented in C++-style.
--data[=<dir>] -D[<dir>]
If <dir> is specified, look for the .renum directory in <dir>, and
create it if not found.
If <dir> is not specified, report the location of the .renum directory.
In either case, eliminate the 5-second wait used to ensure that those
not running NFORenum from a command line can see the directory-created
message.
Default: Look for the .renum directory in the current directory, and
then in the environment variable HOME, if defined. If not found attempt
to create in HOME, then in .
--force -f
Forces processing of files that do not look like NFO files.
The default is to treat such files as if they specified a too-high info
version.
--help -?
Display this message.
--lock
Locks the current comment command state. Commands will continue to be
parsed as normal (so NOPRESERVE will be honored, @@DIFF will be
removed, &c.) but their changes (such as turning on the diff-assister)
will not be honored.
--no-replace --keep-old -k
Do not replace the old NFO file; write new file to file.new.nfo.
Default: Use file[.nfo].new as temporary, rename it to file[.nfo]
when done.
--auto-correct -a
Perform some rudimentary automatic correction of incorrect pseudo
sprites. This may be specified twice to enable the corrections that
are more likely to be incorrect.
See the README for detailed information on the auto-correcter.
The following options cause NFORenum to behave as if all files started with
the associated command. The readme has full details on the comment commands.
Options associated with comment commands that require additional information
take that information as an argument. With the exception of -L/--let, the
options to the command line versions are case insensitive.
"ON" and "OFF" may be specified with "+" and "-", respectively.
--beautify -b @@BEAUTIFY
--diff -d @@DIFF
--let -L @@LET
--lint -l @@LINT
--preserve-messages -p @@PRESERVEMESSAGES
--real-sprites -r @@REALSPRITES
--use-old-nums -o @@USEOLDSPRITENUMS
--warning-disable -w @@WARNING DISABLE
--warning-enable -W @@WARNING ENABLE
-w and -W (and their long counterparts) also accept a comma-separated
list of messages, all of which will be ENABLEd or DISABLEd.
NFORenum is Copyright 2004-2009 by Dale McCoy (dalestan@gmail.com)
Portions Copyright 2006 Dan Masek
You may copy and redistribute it under the terms of the GNU General Public
License, as stated in the file 'COPYING'.
If this message scrolls by too quickly, you may want to try
renum -? | more
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 04 15 00 00 00
1 * 39 08 07 "TV" 00 01 02 "Class 465" 00 "Class 465 Description" 00
2 * 04 01 00 01 08 --EMU sprites
3 sprites/465s.pcx 66 8 01 18 8 -3 -10
4 sprites/465s.pcx 82 8 09 16 20 -14 -7
5 sprites/465s.pcx 114 8 01 12 28 -14 -6
6 sprites/465s.pcx 162 8 09 16 20 -4 -8
7 sprites/465s.pcx 194 8 01 18 8 -3 -10
8 sprites/465s.pcx 210 8 09 16 20 -14 -7
9 sprites/465s.pcx 242 8 01 12 28 -14 -6
10 sprites/465s.pcx 290 8 09 16 20 -4 -8
16 * 9 02 00 A0 01 01 \w0 \w0 -- train sprite
11 * 04 01 00 01 04 --carriage sprites
12 sprites/465s.pcx 322 8 01 18 8 -3 -10
13 sprites/465s.pcx 338 8 09 16 20 -14 -7
14 sprites/465s.pcx 370 8 01 12 28 -14 -6
15 sprites/465s.pcx 418 8 09 16 20 -4 -8
17 * 9 02 00 B0 01 01 \w0 \w0
18 * 9 03 00 01 0C 00 A0 00 -- add new GFX to Dash DMU
19 * 7 03 00 81 1B 00 B0 00 --livery override of carriages attached to the train
20 * 16 00 00 05 01 0C 15 00 14 AE 09 48 00 22 40 19 28
21 * 7 00 00 01 01 0C 12 FD
-1 * 0 00 00 01 01 1B 12 FD
I think he failed to start a command line and just double-clicked a prebuild executable.planetmaker wrote:Obviously you fail to find the built-in documentation as the documentation which comes along with renum:javaguy wrote: Am I doing something wrong with NFORenum? I was rather hoping for a text file listing some errors or at least a little text doc explaining how to use it. A poke about the thread didn't seem to yield any sort of instruction document either.
Users browsing this forum: No registered users and 19 guests