MPH New fences [Test Version] (my first grf attempt)
Moderator: Graphics Moderators
MPH New fences [Test Version] (my first grf attempt)
Hello. i have changed my name- i thought now im going to release something-ill have a proper name. and with initials MPH for a transport game-i dont know why i never chose that in the first place! anyway- daylight is now mph.
after some interest in my fences in another thread- i had a go at drawing them for all the angles needed to replace the standard ttd fences. since i had the day off-i decided to have a go at coding them too!
please bear in mind that this is my first attempt at coding a grf.
i have no idea if this will work- and i have only tested them a little bit myself, but they appear to work.
i followed the tutorials, and used the code for the fences that purno/Szappy did for help -http://www.tt-forums.net/viewtopic.php?p=433758#433758-
so thankyou to all
Edit- updated version 30/08/07- v0.0.3 changed graphics a little- changed heights of posts. fixed description.
after some interest in my fences in another thread- i had a go at drawing them for all the angles needed to replace the standard ttd fences. since i had the day off-i decided to have a go at coding them too!
please bear in mind that this is my first attempt at coding a grf.
i have no idea if this will work- and i have only tested them a little bit myself, but they appear to work.
i followed the tutorials, and used the code for the fences that purno/Szappy did for help -http://www.tt-forums.net/viewtopic.php?p=433758#433758-
so thankyou to all
Edit- updated version 30/08/07- v0.0.3 changed graphics a little- changed heights of posts. fixed description.
- Attachments
-
- mphfencew.grf
- Windows Version
- (2.49 KiB) Downloaded 208 times
-
- mphfence.grf
- Dos Version
- (2.49 KiB) Downloaded 128 times
-
- fences.png (52.47 KiB) Viewed 4966 times
Last edited by mph on 30 Aug 2007 18:12, edited 4 times in total.
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
did you ask owen just to change your username?
now you have two accounts.
/OT
the fences look broken, i would suggest you put the fence posts at the end of each sprite
now you have two accounts.
/OT
the fences look broken, i would suggest you put the fence posts at the end of each sprite
The occasional look back at your past can teach you a great many things...
Re: MPH New fences [Test Version] (my first grf attempt)
im sorry owen!
i didnt realise he could change my account.
i agree about the fences. will have a play around. did the grf work ok?

i agree about the fences. will have a play around. did the grf work ok?
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
I like the look. The CC is subtle and would look cool, although Id probably choose no CC. Maybe you can add it as a parameter. Maybe make non-CC, 1CC and 2CC versions and have a parameter option to choose which one?
Great work fella.
Great work fella.

Re: MPH New fences [Test Version] (my first grf attempt)
yeah- thats something i would like to do. especially as i did it sort of as a way to learn to code. i will try to work out how to do that when im 100% happy with the graphics themselves.
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
Pretty sweet!
They remind me a bit of the RollerCoaster Tycoon plot boundary fences.
Is it possible to get better connections in corners? There are some gaps in certain places.
They remind me a bit of the RollerCoaster Tycoon plot boundary fences.
Is it possible to get better connections in corners? There are some gaps in certain places.
Re: MPH New fences [Test Version] (my first grf attempt)
Probably impossible, same issue was with the original fences and my fence GRF.FooBar wrote:Is it possible to get better connections in corners? There are some gaps in certain places.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Re: MPH New fences [Test Version] (my first grf attempt)
i have another version with fence posts at the end- but-to me it looks even more obvious that they dont meet up. i have been trying to but i dont think its possible- as purno thought. which do you all prefer?
- Attachments
-
- Fluntfingway Transport, 27th Nov 1953.png (22.7 KiB) Viewed 5650 times
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
Im with the original to be honest. 

Re: MPH New fences [Test Version] (my first grf attempt)
It looks like the fence on the SE side is too far away from the tile edge, compared to the other directions. See
picture: If the fences were placed exactly on the edge I think they would line up in the corners, but maybe there's something else hindering this?
picture: If the fences were placed exactly on the edge I think they would line up in the corners, but maybe there's something else hindering this?
Re: MPH New fences [Test Version] (my first grf attempt)
Ever seen two tracks from two different companies next to each other? There are two fences then, the fences aren't exactly on the border between one tile and another.AndersI wrote:If the fences were placed exactly on the edge I think they would line up in the corners, but maybe there's something else hindering this?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Re: MPH New fences [Test Version] (my first grf attempt)
anders- you are right a little- by moving it over it does look better but i dont think its possible to join them up perfectly- as there is only one sprite for each side of the tracks. so if i adjust one side -the other side moves. also-if i make it match up on one join- it no longer joins up on the other. i dont think its possible to align them perfectly.
i think it might be best to leave it as it is in my first post. as there are no posts at the ends- it is less obvious that they dont meet up. it also looks a little like theyre broken- which fences like this often are.
i think it might be best to leave it as it is in my first post. as there are no posts at the ends- it is less obvious that they dont meet up. it also looks a little like theyre broken- which fences like this often are.
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
It should be possible to line things up pretty neatly. Have a look at my tram tracks (see sig), for instance. There's only one sprite with poles per tile, and still everything lines up, caused by overlap.
Something similar can be done with those fences. In case of two companies next to each other, there will be only one fence inbetween.
However, gaps or no gaps, I still like those fences.
Something similar can be done with those fences. In case of two companies next to each other, there will be only one fence inbetween.
However, gaps or no gaps, I still like those fences.
Re: MPH New fences [Test Version] (my first grf attempt)
I like the new ones a lot!
my suggestion; make the \_ view 1 pixel longer (as well as the hill \ )
my suggestion; make the \_ view 1 pixel longer (as well as the hill \ )
The occasional look back at your past can teach you a great many things...
Re: MPH New fences [Test Version] (my first grf attempt)
updated version. see first post- changed graphics a little- fences a little taller, better alignment at the ends. went with posts at the ends- they look neater than before, although not perfect. dos version added too(but not tested- i think i did it right though)
i think i am fairly happy with this, so i will probably leave it. i dont want to get too bogged down with the graphics- i was really only looking at how to go about coding! of course, if there is anything in particular wrong- do let me know. cheers
i think i am fairly happy with this, so i will probably leave it. i dont want to get too bogged down with the graphics- i was really only looking at how to go about coding! of course, if there is anything in particular wrong- do let me know. cheers
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
boring and bad are words that don't spring to mind
but I do prefer the old height though.

but I do prefer the old height though.
The occasional look back at your past can teach you a great many things...
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Re: MPH New fences [Test Version] (my first grf attempt)
Higher for safety reasons. 

http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Re: MPH New fences [Test Version] (my first grf attempt)
I have included in this grf some trees I drew to replace the original roadside trees. the updated one is only in this post- as i still have a few questions.
Is it a good idea to combine them in one grf? i thought maybe i could have some parameters- say - first parameter- 1=disable fences, second parameter 1=disable trees?
I have got a little confused by this. would i do this using action 6?-- and to have this before the action A for each set of sprites- saying to skip that set of sprites?
I may be completely on the wrong track-
Of course-it may be fine to just have no options- but i am interested in learning.
Thankyou for any help-
This does perhaps seem like a faily unimportant grf- but they are fences and trees i am using in an upcoming british stations set- and they will all look nice together! (fortunately- i am not coding this, maedhros is!)
Is it a good idea to combine them in one grf? i thought maybe i could have some parameters- say - first parameter- 1=disable fences, second parameter 1=disable trees?
I have got a little confused by this. would i do this using action 6?-- and to have this before the action A for each set of sprites- saying to skip that set of sprites?
I may be completely on the wrong track-
Of course-it may be fine to just have no options- but i am interested in learning.
Thankyou for any help-
This does perhaps seem like a faily unimportant grf- but they are fences and trees i am using in an upcoming british stations set- and they will all look nice together! (fortunately- i am not coding this, maedhros is!)
- Attachments
-
- trees.png (35.79 KiB) Viewed 4590 times
-
- mphfencew.grf
- (2.66 KiB) Downloaded 149 times
previously known as daylight
Re: MPH New fences [Test Version] (my first grf attempt)
I would keep them seperate. No need for unnecessary stuff if someone only wants the trees for instance. This also solves your action 6(?) problem.
Parameters are fun anyways, so if you want to know...
First you need an ActionD to set any unset parameter to 0. After that, use an Action7 before each part of the grf to skip it if required. That's about it.
Those trees are pretty sweet. Should look way better in combination with SAC's stolen trees than those default ones.
Parameters are fun anyways, so if you want to know...
First you need an ActionD to set any unset parameter to 0. After that, use an Action7 before each part of the grf to skip it if required. That's about it.
Those trees are pretty sweet. Should look way better in combination with SAC's stolen trees than those default ones.
Re: MPH New fences [Test Version] (my first grf attempt)
Or you just arrange the action 7s so that "unset" and "default" have the same result.
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 19 guests