Industry Sprite Help

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
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Industry Sprite Help

Post by tb2571989 »

As mentioned in http://www.tt-forums.net/viewtopic.php?f=31&t=36391 it was suggested to me to recreate the coal mine sprites.

Can I ask what grf file the mine sprite is in, as i'd rather not have to go into paint and remove all the grass colour from around the edges manually.

If the legality of this could be disputed, don't worry about it. I'll continue to play with the Purple Pixel Glitch.
What about you? Will you join me when the time comes to be a hero?
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Industry Sprite Help

Post by Trond »

trg1r.grf sprite 2022 -> 2025 have that glitch buildt in I think ;)

Edit: Ofcourse, if you download the new graphics from the 8bit project, the bug is already gone, and you got a new coalmine :)
http://www.tt-forums.net/viewtopic.php?f=36&t=35310
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

Thank you very much. I didn't realise there would be lots of different bits of the coal mine. *sigh*

This could get interesting. Many thanks.

EDIT: When I open the file "tgr1.grf" in WinGrf there bicky of icky purple stuff.
When I open the file "tgr1r.grf" in WinGrf nothing happens. O.o.0?
What about you? Will you join me when the time comes to be a hero?
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Industry Sprite Help

Post by Trond »

I dont use wingrf, I use grfcodec wich come with OTTD, and after that I use PSPro for sprites and notepad for the nfofile...
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

Gah! Your giving me an excuse not to bother! I really want to try and do this...start dabbling in graphics.

Also, I'm not a massive fan of GRFWizard...had some problems with it in the past.

One more my friends, into the breach.
What about you? Will you join me when the time comes to be a hero?
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Industry Sprite Help

Post by Trond »

well, you use grfcodec to extract the grf file to 2 files, one with the code and one with the sprites... grfodec is in the OTTD folder and is used from dosprompt. grfcodec -d trgr1.grf and you get two files in the spritefolder within the OTTD folder... edit the sprites and use grfcodec to build it together to a grf file again... grfcodec -e trgr1.grf (just taking all this out of my head, but I think thats how it works :lol:)

BACKUP your files first just in case!!

Theres a bit of info on this around the forum if you do some searching...
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

Just says error: file [the grf, i presume] not found.

I'll have a look and see what the search can dig up.
What about you? Will you join me when the time comes to be a hero?
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Industry Sprite Help

Post by Trond »

yeh, copy the original grf from datafolder to OTTD folder :) I forgot that :P
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Industry Sprite Help

Post by DaleStan »

tb2571989 wrote:Also, I'm not a massive fan of GRFWizard.
He never said "GRFWizard".
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
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

*facepalm*

Very true...he didn't.

Still not working :(
What about you? Will you join me when the time comes to be a hero?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Industry Sprite Help

Post by DaleStan »

It's helpful if you show us what you're typing (including the full command prompt), and not just the error message.
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
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Industry Sprite Help

Post by LordAzamath »

have the trg1r.grf in the same folder as grfcodec...
open console
URL is the folder location :)

Code: Select all

cd [paste the URL here]
grfcodec -d trg1r.grf -p 2
on linux

Code: Select all

cd [paste the URL here]
./grfcodec -d trg1r.grf -p 2
If you have trg1.grf, just leave the -p 2 option away.
You get two files in the /sprites folder, one is trg1(r).pcx, the other one is trg1(r).nfo
You can open the pcx file with ano normal drawing application (eg GIMP)

Now see what sprites are the coal mine sprites from pcx. yhere is a little number above them in pcx. Copy the first three lines from trg1r.nfo and the lines starting with sprite numbers, you need. Save it as some other nfo file and run nfo renum on it, don't worry if it gives any errors, you don't have ActionA nor Action8 yet
To get them, look into the specs
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Industry Sprite Help

Post by DaleStan »

PATH! PATH! Paste the PATH.

The URL would start with "file://", and I strongly suspect that cd would not appreciate this incantation.
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
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Industry Sprite Help

Post by LordAzamath »

Maybe I didn't mean THAT URL :P... I added a note, what do I mean by URL this time :P And well... on linux, file system is like file:/home/ or something like that...
But speaking of standards, I agree that I named it wrong.
One thing I forgot to mention -
You can get nforenum for out great friend's (or sometimes, Dalestan's) signature.

Path! Path... indeed

madis
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

EDIT: Now fully working. Thank you very much, guys.
Last edited by peter1138 on 26 Feb 2008 22:10, edited 1 time in total.
Reason: Please don't post original (even if modified) graphics files here
What about you? Will you join me when the time comes to be a hero?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Industry Sprite Help

Post by DaleStan »

No distribution of the original graphics. Even if you have modified four of the sprites.

Make a newgrf instead. Or, preferably, two of them; one each DOS and Win.
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
tb2571989
Director
Director
Posts: 544
Joined: 04 May 2006 10:54
Location: Bristol, UK
Contact:

Re: Industry Sprite Help

Post by tb2571989 »

Oops, sorry.

I'll go and have a look at coding now.
What about you? Will you join me when the time comes to be a hero?
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 20 guests