Page 1 of 1
My first .GRF
Posted: 26 Jul 2007 11:58
by White Rabbit
It's not much, and it doesn't even have its own graphics, but it's a start (to what? Don't ask...I'm sure NFO coding has some sort of link with trichotillomania). In fact, I only put in the necessary code to make it a real GRF. The action0 line was written by Pikkabird (but he gave me the incorrect number of bytes, so I had to figure out what went wrong all by myself
Code: Select all
1 * 1 00 0A 03 01 18 08 18 09 18 1A 41 00 00 00
The * 1 should clearly be * 14).
You're probably wondering what this GRF does. Well, it makes Sub-Tropical fields copy the behaviour of their Temperate and Sub-Arctic friends, namely, regenerate. Before this GRF, when Sub-Tropical fields were dynamited, they would disappear forever. No more! I hope this can contribute to your TTDP experience, so go download it!
I've tested it in OTTD. It doesn't work in 0.5.2 where it's needed, and it's redundant in the nightlies, where fields already regenerate.
Re: My first .GRF
Posted: 29 Jul 2007 22:11
by Carlo Ghega
Very nice!
Thx
Re: My first .GRF
Posted: 31 Jul 2007 09:12
by m3henry
here is something else I think that should be fixed.
when you buy land you get brown dirt underneath:
a small grf would make this look better by changing flat land to sprite 3981 or 4000 and the others repectively
and mabey use the left sprite below rather than the right one.
Re: My first .GRF
Posted: 31 Jul 2007 10:10
by ISA
Signs are so ugly, I would be happy if there is some better replacement for them!
Re: My first .GRF
Posted: 31 Jul 2007 10:15
by PikkaBird
m3henry wrote:here is something else I think that should be fixed.
when you buy land you get brown dirt underneath:
Haven't you suggested this before?
You can't replace the brown dirt for purchased land without replacing the brown dirt everywhere else too.
Re: My first .GRF
Posted: 31 Jul 2007 16:14
by m3henry
surely that can be changed so a different sprite is called?
Re: My first .GRF
Posted: 31 Jul 2007 17:29
by PikkaBird
m3henry wrote:surely that can be changed so a different sprite is called?
Yes, but not in a grf. You'd have to write a patch.
Re: My first .GRF
Posted: 31 Jul 2007 17:45
by DaleStan
I'm sure it can, m3henry. Go for it.
Re: My first .GRF
Posted: 31 Jul 2007 19:35
by m3henry
time to learn nfo

will GRFmaker help me achive this?
Re: My first .GRF
Posted: 31 Jul 2007 20:37
by DaleStan
I seriously doubt GRFMaker will help. And, although NFO will necessary for actually loading the new sprite, the required code will probably be pretty simple, and that's probably one of the last things you need to do. You'll have to learn i386 assembly (and the TTDPatch dialect thereof) first.
Re: My first .GRF
Posted: 31 Jul 2007 20:54
by Dave
DaleStan wrote:I seriously doubt GRFMaker will help. And, although NFO will necessary for actually loading the new sprite, the required code will probably be pretty simple, and that's probably one of the last things you need to do. You'll have to learn i386 assembly (and the TTDPatch dialect thereof) first.
Which basically means... No, you can't.
Re: My first .GRF
Posted: 31 Jul 2007 21:02
by m3henry
this is me right now.

i386 is mentioned once in the ttdpatch wiki, and it's to do with wine

so i haven't a clue where to start.
p.s. dave, I got the message without the dummy guide
Re: My first .GRF
Posted: 31 Jul 2007 22:56
by DaleStan
i386, IA-32 and x86-32 are all names for the processor architecture and/or instruction set first introduced with the Intel 80386, and extended, repeatedly, with the 80486, Pentiums, and various later Intel, AMD, and Cyrix processors. I say specifically "i386 assembly language", and not "x86 assembly language" (which would probably provide better results) because TTDPatch uses only those instructions supported by the Intel 80386.
Re: My first .GRF
Posted: 01 Aug 2007 10:09
by m3henry
I'm assuming this has something to do with action A, or would that replace all dirt-sprites with grass?
EDIT: now I know that you were talking about patching, I'm even more confused
Re: My first .GRF
Posted: 03 Nov 2007 17:58
by PaulC
(back on topic...)
A nice little grf!

However, there are a couple of things I've noticed:
1. When the grf is active in temperate or arctic, you get a second farm type which produces only grain.
2. In tropic, this grf allows farms to be built in the desert (usually they can't) where any fields they generate are immediately destroyed. Is this intentional?