Page 1 of 1

Industry Sprite Help

Posted: 26 Feb 2008 10:11
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.

Re: Industry Sprite Help

Posted: 26 Feb 2008 10:36
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

Re: Industry Sprite Help

Posted: 26 Feb 2008 10:46
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?

Re: Industry Sprite Help

Posted: 26 Feb 2008 11:12
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...

Re: Industry Sprite Help

Posted: 26 Feb 2008 11:17
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.

Re: Industry Sprite Help

Posted: 26 Feb 2008 11:23
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...

Re: Industry Sprite Help

Posted: 26 Feb 2008 11:37
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.

Re: Industry Sprite Help

Posted: 26 Feb 2008 12:08
by Trond
yeh, copy the original grf from datafolder to OTTD folder :) I forgot that :P

Re: Industry Sprite Help

Posted: 26 Feb 2008 13:56
by DaleStan
tb2571989 wrote:Also, I'm not a massive fan of GRFWizard.
He never said "GRFWizard".

Re: Industry Sprite Help

Posted: 26 Feb 2008 13:58
by tb2571989
*facepalm*

Very true...he didn't.

Still not working :(

Re: Industry Sprite Help

Posted: 26 Feb 2008 14:15
by DaleStan
It's helpful if you show us what you're typing (including the full command prompt), and not just the error message.

Re: Industry Sprite Help

Posted: 26 Feb 2008 14:15
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

Re: Industry Sprite Help

Posted: 26 Feb 2008 14:24
by DaleStan
PATH! PATH! Paste the PATH.

The URL would start with "file://", and I strongly suspect that cd would not appreciate this incantation.

Re: Industry Sprite Help

Posted: 26 Feb 2008 14:29
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

Re: Industry Sprite Help

Posted: 26 Feb 2008 14:43
by tb2571989
EDIT: Now fully working. Thank you very much, guys.

Re: Industry Sprite Help

Posted: 26 Feb 2008 22:01
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.

Re: Industry Sprite Help

Posted: 27 Feb 2008 09:10
by tb2571989
Oops, sorry.

I'll go and have a look at coding now.