Some Requests (Help Needed)

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

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Some Requests

Post by planetmaker »

RL Conroy wrote:
Open the command window (dos prompt) and use it there.
I Opened it with Dos Prompt but how do i Use it? ?(
Have a look at the supplied readme. Works wonders.
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

Assuming your using vista/7
I'm using Windows Vista
4) Type in 'cd C:\Program Files\OpenTTD\' (or wherever grfcodec is on your computer).
I Putted them in a Folder in a Folder on my Desktop so what must i type in?
If they do, check for viruses.
Thanks. I'm Scanning it right now for Viruses
Have a look at the supplied readme. Works wonders.
Strange enough; I don't have a ReadMe!
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! |
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Some Requests

Post by FooBar »

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 :wink:


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.
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

Thanks. I'm Scanning it right now for Viruses
No Viruses Found

I Exactly did what you say but what now? ?(
Attachments
What to Type in?
What to Type in?
DOS Prompt.png (37.22 KiB) Viewed 1684 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! |
User avatar
Chris
Tycoon
Tycoon
Posts: 1985
Joined: 05 Oct 2009 16:36
Location: Leeds, UK

Re: Some Requests

Post by Chris »

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.
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.
Screenshots

Formerly Class 165
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Some Requests

Post by FooBar »

RL Conroy wrote:I Exactly did what you say but what now?
You didn't do exactly what the grfcodec instructions say ;)

To decode a grf:

Code: Select all

grfcodec -d -p 2 filename.grf
If you decode a grf with the DOS palette you can leave the -p 2 part out. That part makes a grf with the Windows palette decode correctly.
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

So if i Understand it Correctly...
I must Rename the GRF?
You didn't do exactly what the grfcodec instructions say
Sorry about that. It is New for me
grfcodec -d trg1.grf
Convert trg1.grf into a PCX file which you will find in the SPRITES folder
From http://www.ttdpatch.net/grfcodec/
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! |
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: Some Requests

Post by lawton27 »

RL Conroy wrote:So if i Understand it Correctly...
I must Rename the GRF?
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.
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

Oh Sorry... I have the Tutorial here now
I overlooked it... :roll:
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! |
User avatar
Ammler
President
President
Posts: 953
Joined: 18 Jun 2006 18:18
Location: Switzerland
Contact:

Re: Some Requests

Post by Ammler »

lawton27 wrote: Yes, use GRF codec, here: http://www.ttdpatch.net/grfcodec/
looks outdated, try http://dev.openttdcoop.org/projects/grfcodec
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

Can someone help me?

At First when i Typed in the Code

Code: Select all

grfcodec -d filename.grf
it appears Strange at GIMP! What supposed to be Black is now PINK! (I hate PINK! :lol:)

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
Foobar gaves me it says at DOS Prompt "Permission Denied" again!
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! |
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Some Requests

Post by FooBar »

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".
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests

Post by RL Conroy »

Close the opened file in GIMP before you run grfcodec.
*Facepalm* Thanks for that.
The pink colours are indeed fixed by adding "-p 2".
Yes it works! Thanks i can go to Work now with it but first i'm going to Eat.
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! |
User avatar
Froix
Engineer
Engineer
Posts: 65
Joined: 16 Jul 2010 13:09

Re: Some Requests (Need Help)

Post by Froix »

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.
Question 2: Can i also Edit a GRF that is being Used in OpenTTD?
Because i Spotted in some GRF's some Mistakes...
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.
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: Some Requests

Post by lawton27 »

RL Conroy wrote: Question 4: Can i Recreate a GRF so that the GRF In-Game is called Different than the Original GRF Name?
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.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Some Requests

Post by planetmaker »

RL 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 1)You can freely align and place it. But you have to tell the dimensions and offsets
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
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests (Need Help)

Post by RL Conroy »

ad 1)You can freely align and place it. But you have to tell the dimensions and offsets
I can Edit the Size of the Signals so long it stays in the Corner.
I mean like this (Look at Attachment). I don't wanna have an Misalignment in my GRF!
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
When i do that (I don't wanna Try it out) will OpenTTD Crash then? :?:
ad 3)Of course. But as opposed to many other features (vehicles, industries...) you cannot alter how signals work. Only how they look
I only want to Change the Look of the Signals. I can't Reprogram Signals anyway.
ad 4)Sure. And please do so.
Can i do that with GRFCodec?

Don't look at the Signals itself (It is an Mock-Up) but to the Corners of it!
Attachments
Mock-up
Mock-up
Reedited Signals.png (1.43 KiB) Viewed 1327 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! |
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: Some Requests (Need Help)

Post by lawton27 »

RL Conroy wrote:
ad 4)Sure. And please do so.
Can i do that with GRFCodec?
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.
RL Conroy wrote:
ad 1)You can freely align and place it. But you have to tell the dimensions and offsets
I can Edit the Size of the Signals so long it stays in the Corner.
I mean like this (Look at Attachment). I don't wanna have an Misalignment in my GRF!
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.
User avatar
RL Conroy
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 04 Sep 2010 12:28
Location: Nijmegen, Holland

Re: Some Requests (Need Help)

Post by RL Conroy »

best bet is to keep your dimensions the same.
Oh that's too bad. Thanks for that.
lawton27 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.
Let me guess... It's in the NFO
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! |
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Some Requests (Need Help)

Post by Gremnon »

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.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 10 guests