Problem with grfcodec

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
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Problem with grfcodec

Post by chrissicom »

Sorry when this has been asked before but I've searched the forums and grf tutorial pages for this now for quite a while and haven't found anything that helped.

I try to decode the PlanetSet because I want to play a game with my brother with realistic prices so I want to increase the prices of planes in this set so they get more realistic prices like with trains in DB Set XL. Well but I simply get a file not found error when I try to decode the file although the .grf file is clearly where it should be! I get the same error when using GRF Wizard i.e. Runtime Error "53": File not found since it uses grfcodec just with a graphical interface. See the screenshot attached.

I really don't know why I get this error :(
Attachments
grfcodecerror.jpg
(183.46 KiB) Downloaded 131 times
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

The name of the file is planesetw.grf, not planetsetw.grf...
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Post by chrissicom »

Wahahahaha :shock: Thank you for the quick reply... sometimes I am just blind to the most obvious errors! The weird thing is I didn't copy paste the command line but made the same spelling mistake 3 times lol :oops: :oops:
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Post by chrissicom »

Ok now I've got the next problem... the prices of planes don't seem to be stored in the .nfo file as I thought. How can I modify how much planes cost in the game?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

chrissicom wrote:the prices of planes don't seem to be stored in the .nfo file as I thought.
How were you expecting them to be stored? They're certainly in there somewhere. :)

The simplest way, if you just want to modify all the planes' costs in one go, is to create a new grf which changes the base cost multiplier.
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Post by chrissicom »

Well I was told the prices are in the .nfo and I can use NFO Editor to edit them. But the generated .nfo file has like 20 lines only telling me the x y pos of the plane graphics in the pcx file and NFO Editor shows nothing anywhere that's related to the prices or other data of the planes :(

But I think the idea to make an additional cost modifier is very good so I will try that instead :) Thanks for the links!
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

PikkaBird wrote:How were you expecting them to be stored? They're certainly in there somewhere. :)
Not only are they in there, they're in there in at three different places. Which place gets used depends on the planespeed setting.
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
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 16 guests