Have a look at the supplied readme. Works wonders.RL Conroy wrote:I Opened it with Dos Prompt but how do i Use it?Open the command window (dos prompt) and use it there.
Some Requests (Help Needed)
Moderator: Graphics Moderators
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Some Requests
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Some Requests
I'm using Windows VistaAssuming your using vista/7
I Putted them in a Folder in a Folder on my Desktop so what must i type in?4) Type in 'cd C:\Program Files\OpenTTD\' (or wherever grfcodec is on your computer).
Thanks. I'm Scanning it right now for VirusesIf they do, check for viruses.
Strange enough; I don't have a ReadMe!Have a look at the supplied readme. Works wonders.
EDIT: *Note to Myself: The ReadMe from GRFCodec not DOS Prompt!*
Sorry for all the Questions but i'm trying to get as much Info as Possible
Last edited by RL Conroy on 08 Sep 2010 17:07, edited 1 time in total.
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests
It's easier to shift+rightclick on some empty space in the folder with the grf and grfcodec (this can be the desktop). From there you can open the command prompt in that folder, so there's no need to cd to it. Make sure no file or folder is selected while doing so.
Also assuming Vista/7
Please note that if you decode a grf and change it, you need permission from the author(s) of the original grf before you can release your derivative. For personal use it's generally fine to decode an change something, but you shouldn't share such changes without permission. Several grfs out here have a license that permits changes, mostly under the condition that you release the source of your changes under the same (free) license. But again for personal use and learning how NFO works it's fine to decode a grf to see what's in it.
Also assuming Vista/7

Please note that if you decode a grf and change it, you need permission from the author(s) of the original grf before you can release your derivative. For personal use it's generally fine to decode an change something, but you shouldn't share such changes without permission. Several grfs out here have a license that permits changes, mostly under the condition that you release the source of your changes under the same (free) license. But again for personal use and learning how NFO works it's fine to decode a grf to see what's in it.
Re: Some Requests
No Viruses FoundThanks. I'm Scanning it right now for Viruses
I Exactly did what you say but what now?

- Attachments
-
- What to Type in?
- DOS Prompt.png (37.22 KiB) Viewed 1685 times
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests
I always find with the cmd that when I run it as an administrator, it comes up as C:\Windows\system32>, whereas if I don't it comes up as C:\Users\Christopher>. My grfCodec isn't in my users file.planetmaker wrote:Running everything as an administrator is not a good idea. These tools should not need administrative priviliges. If they do, check for viruses.
Re: Some Requests
You didn't do exactly what the grfcodec instructions sayRL Conroy wrote:I Exactly did what you say but what now?

To decode a grf:
Code: Select all
grfcodec -d -p 2 filename.grf
Re: Some Requests
So if i Understand it Correctly...
I must Rename the GRF?
I must Rename the GRF?
Sorry about that. It is New for meYou didn't do exactly what the grfcodec instructions say
From http://www.ttdpatch.net/grfcodec/grfcodec -d trg1.grf
Convert trg1.grf into a PCX file which you will find in the SPRITES folder
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests
No, you can just use the name which the GRF already has, if it's easier to rename it to be something like decompile.grf you can but there's no reason to.RL Conroy wrote:So if i Understand it Correctly...
I must Rename the GRF?
Re: Some Requests
Oh Sorry... I have the Tutorial here now
I overlooked it...
I'm Understanding it Now!
I'm going to Sleep now for my Work but Thanks A LOT with Helping me.
Tomorrow i will Try to Decode a GRF File at home and then i will tell how it goes.
And everyone who reads this... Good Night
Conroy Out.
I overlooked it...

I'm Understanding it Now!
I'm going to Sleep now for my Work but Thanks A LOT with Helping me.
Tomorrow i will Try to Decode a GRF File at home and then i will tell how it goes.
And everyone who reads this... Good Night
Conroy Out.
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests
looks outdated, try http://dev.openttdcoop.org/projects/grfcodeclawton27 wrote: Yes, use GRF codec, here: http://www.ttdpatch.net/grfcodec/
Town Names:


Still work in progress: OpenGFX or/and OpenSFX - Please help!
Re: Some Requests
Can someone help me?
At First when i Typed in the Code it appears Strange at GIMP! What supposed to be Black is now PINK! (I hate PINK!
)
I Removed the map "sprites" because of the PINK Problem.
When i Retried it with the Same Code it says at DOS Prompt "Permission Denied"!
And when i Typed in this code Foobar gaves me it says at DOS Prompt "Permission Denied" again!
Help me please
At First when i Typed in the Code
Code: Select all
grfcodec -d filename.grf

I Removed the map "sprites" because of the PINK Problem.
When i Retried it with the Same Code it says at DOS Prompt "Permission Denied"!
And when i Typed in this code
Code: Select all
grfcodec -d -p 2 filename.grf
Help me please
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests
Close the opened file in GIMP before you run grfcodec. It wants to write the pcx file, but it isn't allowed to do so due to the file being open. At least that's my bet what's wrong.
The pink colours are indeed fixed by adding "-p 2".
The pink colours are indeed fixed by adding "-p 2".
Re: Some Requests
*Facepalm* Thanks for that.Close the opened file in GIMP before you run grfcodec.
Yes it works! Thanks i can go to Work now with it but first i'm going to Eat.The pink colours are indeed fixed by adding "-p 2".
When i'm back i will tell how it goes.
EDIT4: I had no Time when i was done with Eating so i will tell it Tomorrow.
I also had 4 Questions:
Queston 1: If i'm gonna Replace a Signal at GIMP must it be the Same in the Top-Left Corner or...
How do i Explain it...

Question 2: Can i also Edit a GRF that is being Used in OpenTTD?
Because i Spotted in some GRF's some Mistakes...
Question 3: Can i also Create a GRF that Replaces only PBS Signals, Block Signals, or Presignals?
Question 4: Can i Recreate a GRF so that the GRF In-Game is called Different than the Original GRF Name?
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests (Need Help)
Yes you can create and edit NewGRFs to replace just about any graphics in the game. Be wary and respectful of licenses though if you intend to release your NewGRFS.
Yes you can but the best course of action for this is to inform the author at the NewGRF's development thread or release thread.Question 2: Can i also Edit a GRF that is being Used in OpenTTD?
Because i Spotted in some GRF's some Mistakes...
Re: Some Requests
Yes when you decompile it you should be able to see the name in clear text, of course you can't release someone else's grf just edited so the only use of that might be to add that its your version and not for release so you don't forget.RL Conroy wrote: Question 4: Can i Recreate a GRF so that the GRF In-Game is called Different than the Original GRF Name?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Some Requests
ad 1)You can freely align and place it. But you have to tell the dimensions and offsetsRL Conroy wrote: Queston 1: If i'm gonna Replace a Signal at GIMP must it be the Same in the Top-Left Corner or...
How do i Explain it...
Question 2: Can i also Edit a GRF that is being Used in OpenTTD?
Because i Spotted in some GRF's some Mistakes...
Question 3: Can i also Create a GRF that Replaces only PBS Signals, Block Signals, or Presignals?
Question 4: Can i Recreate a GRF so that the GRF In-Game is called Different than the Original GRF Name?
ad 2)Sure. Somehow they have to be gotten into place... but you cannot edit them ingame. It always involves editing, compiling the grf and then re-loading the game, better re-starting
ad 3)Of course. But as opposed to many other features (vehicles, industries...) you cannot alter how signals work. Only how they look
ad 4)Sure. And please do so.
Have a look at http://wiki.ttdpatch.net/tiki-index.php ... phicsSpecs and look through how other grfs look like, e.g. those found at http://dev.openttdcoop.org/projects
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Some Requests (Need Help)
I can Edit the Size of the Signals so long it stays in the Corner.ad 1)You can freely align and place it. But you have to tell the dimensions and offsets
I mean like this (Look at Attachment). I don't wanna have an Misalignment in my GRF!
When i do that (I don't wanna Try it out) will OpenTTD Crash then?ad 2)Sure. Somehow they have to be gotten into place... but you cannot edit them ingame. It always involves editing, compiling the grf and then re-loading the game, better re-starting

I only want to Change the Look of the Signals. I can't Reprogram Signals anyway.ad 3)Of course. But as opposed to many other features (vehicles, industries...) you cannot alter how signals work. Only how they look
Can i do that with GRFCodec?ad 4)Sure. And please do so.
Don't look at the Signals itself (It is an Mock-Up) but to the Corners of it!
- Attachments
-
- Mock-up
- Reedited Signals.png (1.43 KiB) Viewed 1328 times
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests (Need Help)
RL Conroy wrote:Can i do that with GRFCodec?ad 4)Sure. And please do so.
lawton27 wrote:Yes when you decompile it you should be able to see the name in clear text, of course you can't release someone else's grf just edited so the only use of that might be to add that its your version and not for release so you don't forget.
No you still need to specify the dimensions but in uncomented NFO generated from GRFcodec and to a novice with NFO it would prove tricky, best bet is to keep your dimensions the same.RL Conroy wrote:I can Edit the Size of the Signals so long it stays in the Corner.ad 1)You can freely align and place it. But you have to tell the dimensions and offsets
I mean like this (Look at Attachment). I don't wanna have an Misalignment in my GRF!
Re: Some Requests (Need Help)
Oh that's too bad. Thanks for that.best bet is to keep your dimensions the same.
Let me guess... It's in the NFOlawton27 schreef:
Yes when you decompile it you should be able to see the name in clear text, of course you can't release someone else's grf just edited so the only use of that might be to add that its your version and not for release so you don't forget.
But how to open and Edit it?
Conroy: This is Rebel Leader to base. Rebel Transport 2001 has been destroyed and parts for Teleport Device have been lost. We need those Parts! Conroy out.
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Erik: What the... What was that all about?
Baleog: I don't know. But he did mention the words "Teleport Device" and "Parts". Quote from the Game "Lost Vikings 2"
4f 70 65 6e 54 54 44 20 52 6f 63 6b 73 21 Hex Code
Find out what the Hex Code means! | Dec/Hex/Oct/Bin Table | Screenshots! | Topic TrafficLight Junction | TTDPatch Wiki | My Website! |
Re: Some Requests (Need Help)
On Windows: With notepad, or with the free download of Notepad++
On Linux: gedit, or any other text editor.
.nfo files are just plain text files.
On Linux: gedit, or any other text editor.
.nfo files are just plain text files.
Who is online
Users browsing this forum: Bing [Bot] and 8 guests