First GRF project (was "Problem getting GRF Wizard to work")

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
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

First GRF project (was "Problem getting GRF Wizard to work")

Post by ostlandr »

Okay, I downloaded GRFcodec and GRF wizard, ran GRF wizard, set the file locations. I downloaded and installed the Visual Basic runtime libraries also, and rebooted the machine for good measure.

When I pick a GRF to decode and hit "next" I get the following error message:

Run-time error '5':
Invalid procedure call or argument


Any ideas? It may be a Vista thing- haven't had the leisure to try it on the XP box yet.

Gonna do that one-locomotive GRF yet, just to get myself started!
Last edited by ostlandr on 17 Dec 2007 22:31, edited 1 time in total.
Who is John Galt?
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Problem getting GRF Wizard to work

Post by Zephyris »

I have been having problems with grfwizard with Vista and haven't managed to get it to work. In Vista it is easier to get used to the command line method:

Copy grfcodec.exe into [OpenTTD Installation Folder]/data
Shift+Right Click in the data folder (make sure no file/folder is selected) and click "Open Command Window Here"
Use: "grfcodec -d [grfname].grf" (no quotes) to decode a newgrf
Use: "grfcodec -e [nfoname]" (no quotes) to encode a newgrf
Grfcodec will, by default, decode to /sprites

Its also worth getting the nfo renumberer:
Copy renum.exe to the folder with the target nfos
Shift+Right Click in the data folder (make sure no file/folder is selected) and click "Open Command Window Here"
Use: "renum -renum [nfoname]" (no quotes) to renumber the nfo
User avatar
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

Re: Problem getting GRF Wizard to work

Post by ostlandr »

"Command line"?!? What do I look like, some kind of DOS dinosaur?

(looks in mirror at gray hairs)

Command line- got it. :wink:

Thanks!
Zephyris wrote:I have been having problems with grfwizard with Vista and haven't managed to get it to work. In Vista it is easier to get used to the command line method:

Copy grfcodec.exe into [OpenTTD Installation Folder]/data
Shift+Right Click in the data folder (make sure no file/folder is selected) and click "Open Command Window Here"
Use: "grfcodec -d [grfname].grf" (no quotes) to decode a newgrf
Use: "grfcodec -e [nfoname]" (no quotes) to encode a newgrf
Grfcodec will, by default, decode to /sprites

Its also worth getting the nfo renumberer:
Copy renum.exe to the folder with the target nfos
Shift+Right Click in the data folder (make sure no file/folder is selected) and click "Open Command Window Here"
Use: "renum -renum [nfoname]" (no quotes) to renumber the nfo
Who is John Galt?
User avatar
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

Re: Problem getting GRF Wizard to work

Post by ostlandr »

Okay, got GRFcodec working, but now NFO editor is giving me fits-

It keeps telling me the "The file sprites\(filename).pcx was not found. The opened NFO file might be invalid."

The files are right there. . . :?

Time to move the whole project to the XP box.

Curse you Bill Gates and your whole stinking excuse for a software company! :evil:
Who is John Galt?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Problem getting GRF Wizard to work

Post by DaleStan »

ostlandr wrote:Curse you Bill Gates and your whole stinking excuse for a software company! :evil:
Stop blaming Microsoft for the faults in Andrexware.

The requirements for using NFOEditor[0] can be found on the Patch wiki. If you deviate even slightly from said instructions, preapare to watch your work go up in flames. If you're lucky, it'll get violently confused and crash. If you're not, it'll get not-quite-so-violently confused, and destroy your entire NFO file when you save.

[0] Contrary to the implication, NFOEditor cannot edit NFO. It can only edit real sprites in a vanishingly small proportion of NFO files. And for that job, it is somewhat obsolete.
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
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

Re: Problem getting GRF Wizard to work

Post by ostlandr »

Thanks for the info.

Right now I'm playing around in i.Mage with the decoded LV4w.pcx, using George's Model T as a starting point to draw a 1920s Mack AC. (Just for practice, to get the hang of editing/drawing sprites- would never pirate someone's work without explicit permission)

http://www.macktrucks.com/default.aspx?pageid=40

Need to find a better graphics program, though- i.Mage doesn't do a lot of what I need (or I can't figure out how, just as bad.)

Project: 1920s Mack AC

Sprites:

"Artist": ostlandr

Status: getting there

Code: still trying to translate the heiroglyphics in the decoded LV4w.nfo that I managed to open in notepad.

When I get the sprites done for this critter, I will post for comment/criticism.


DaleStan wrote:
ostlandr wrote:Curse you Bill Gates and your whole stinking excuse for a software company! :evil:
Stop blaming Microsoft for the faults in Andrexware.

The requirements for using NFOEditor[0] can be found on the Patch wiki. If you deviate even slightly from said instructions, preapare to watch your work go up in flames. If you're lucky, it'll get violently confused and crash. If you're not, it'll get not-quite-so-violently confused, and destroy your entire NFO file when you save.

[0] Contrary to the implication, NFOEditor cannot edit NFO. It can only edit real sprites in a vanishingly small proportion of NFO files. And for that job, it is somewhat obsolete.
Who is John Galt?
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 24 guests