NFO Editor Problems

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
Zhe Toralf
Engineer
Engineer
Posts: 10
Joined: 21 Jan 2007 14:19
Location: Germany

NFO Editor Problems

Post by Zhe Toralf »

Hi I'm Zhe Toralf from Germany, so my english could be a little bad.
Well, I just got some stuff to create own .grf files, including the NFO Editor
(http://www.divxland.org/ttd/).

I've decoded some grf files to learn how this all works, but there's a Problem with the NFO Editor. When I open a NFO file, the editor tries to create a preview .bmp file from the .pcx file which belongs to the nfo.

But I can only view pseudo sprites, because when the Editor tries to create a preview for real sprites, the progress reaches 100% but right after that, theres an Alert "Failed to ceate file <file>.bmp. The NFO file will be closed now, but it is recommended to restart the program now."

I restarted the program and my system (windows XP with service pack 2)
several times, but there's no difference.

Anybody got a suggestion?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: NFO Editor Problems

Post by PikkaBird »

Zhe Toralf wrote:Anybody got a suggestion?
Yes. Don't use NFO editor.

It's by no means a required program for making grf files - in fact, I've never heard of anyone using it.
User avatar
Zhe Toralf
Engineer
Engineer
Posts: 10
Joined: 21 Jan 2007 14:19
Location: Germany

Post by Zhe Toralf »

SO what else should I use?

I tried to open the nfo files with Notepad2 (http://www.editoren.net/text/notepad2.htm), which can read a lot of files, but when I view an NFO file with it, i have some characters which are shown as some symbols you can't read, depending on file, how many of them appear.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

That's very peculiar. An NFO shouldn't include any too outlandish characters. Although the decoding parser for text strings is not perfect and will occasionally convert bits it shouldn't, resulting in sprites like:
1045 * 47 00 03 01 29 00 0E 1F "+8ä" 8B "cm«´Üâ" 7F "fYÊÆu" 87 A2 87 "¯<PJ2H%-¢" 16 3F 94 "N©`+" 13 "-'" 13 1C
I personally use ConTEXT for editing NFO files.

Incidentally, decoding grf files is probably not the best way to learn to write NFO. Your best bet is to start from scratch, read slowly through the tutorial on the wiki, and then come and post in the graphics forum when you get stuck.
User avatar
Zhe Toralf
Engineer
Engineer
Posts: 10
Joined: 21 Jan 2007 14:19
Location: Germany

Post by Zhe Toralf »

With conTEXT, it doesn't look different. It really seems to be an decoding problem.
Well if I have such a NFO file, with strange charakters, will the grf file be correct, if I encode this file again?
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Post by XeryusTC »

PikkaBird wrote:Incidentally, decoding grf files is probably not the best way to learn to write NFO. Your best bet is to start from scratch, read slowly through the tutorial on the wiki, and then come and post in the graphics forum when you get stuck.
I don't agree with you here, I used decoded GRFs to help me understand what was explained at the wiki. It helped me make my first (working) newstations GRF today :).
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
User avatar
Zhe Toralf
Engineer
Engineer
Posts: 10
Joined: 21 Jan 2007 14:19
Location: Germany

Post by Zhe Toralf »

Wait, if you don't decode the grf's, how do youd edit them? AFAIK, you need a .pcx file and a .nfo file to create a .grf with the grf codec, or is there another way?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Zhe Toralf wrote:AFAIK, you need a .pcx file and a .nfo file to create a .grf with the grf codec, or is there another way?
Yes. You can make a pcx and nfo file from scratch, you don't need to decode a grf to get them.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

PikkaBird wrote:Yes. Don't use NFO editor.
Seconded.
Or, if you do use it, read the notes and warnings first, and obey them.
Zhe Toralf wrote:Well if I have such a NFO file, with strange charakters, will the grf file be correct, if I encode this file again?
Yes. GRFCodec is guaranteed to produce output it can read, and barring requested palette changes, output that will generate a functionally equivalent grf file.

NFORenum's @@BEAUTIFY command is pretty good at converting NFO from GRFCodec's often-flawed guesses to something that's pretty close to correct. If you don't like the output, check the readme; it details several settings that you can adjust to tailor the output to your liking.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

As DaleStan said.
NFO Editor is totally outdated, it don't support text strings too, etc. If you aren't familliar with NFO editing, you can PM Szappy for GRF Maker (altough it has its own limitations too).
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 22 guests