PaulC's Bits & Bobs

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
User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

PaulC's Bits & Bobs

Post by PaulC » 08 Jan 2018 18:39

Rather than having lots of separate topics on the go, I wanted to have a place where I can post all of my half-arsed ideas and random stuff. So that's what this is. I can't promise great things, I'd say my talents as a coder and artist are "limited" at best, but I like tinkering with stuff and maybe some of you will be into it. Comments, crits and whatever else welcome!

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 08 Jan 2018 18:54

So, over in another topic I posted about this old airport GRF. It's pretty old, unlicenced, I have no idea who made it and it's basically cobbled together from bits of the original base set. But I also think it's pretty nifty, and it would be a simple task to recreate it from scratch using OpenGFX graphics. So that's what I did.

This is just a basic graphic replacement for the small airport. I like the idea of the fake road, but how best to make it compatible with different road sets, particuarly those that have an incompatible licence? The path of least resistance might be to have separate add-on GRFs that replace those two tiles. Maybe the whole thing wants recoding as a new airport? (Which I'd love to do BTW, if I can manage to wrap my head around the specs without going insane.)

Remains to be seen whether or not I do any more work on this, but here it is. Graphical credits go to the original OpenGFX artists (skidd13, Zephyris and others).
Attachments
OpenGFX Small Modern Airport.png
OpenGFX Small Modern Airport.png (126.92 KiB) Viewed 4006 times
small_airport.grf
(22.02 KiB) Downloaded 290 times

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5565
Joined: 27 Nov 2004 15:05
Location: Canada

Re: PaulC's Bits & Bobs

Post by wallyweb » 08 Jan 2018 21:45

Nice. :bow:
PaulC wrote:I like the idea of the fake road, but how best to make it compatible with different road sets,
I shouldn't worry about it. If anybody complains about it, just tell them that the Airport Authority ran out of paint and budget with which to buy some more. 8)

User avatar
acs121
Tycoon
Tycoon
Posts: 1944
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: PaulC's Bits & Bobs

Post by acs121 » 08 Jan 2018 22:34

You could at least input the UK roads, as they are the most used (only type of fake diagonal roads in GarryG's objects, only roadtype for the fake tunnel in Dutch Stations Addition...)

buttercup
Traffic Manager
Traffic Manager
Posts: 131
Joined: 22 Jan 2007 20:19

Re: PaulC's Bits & Bobs

Post by buttercup » 09 Jan 2018 00:32

I was bored so I did this (excuse the not-especially-helpful commenting and poor coding style):

Code: Select all

    3 * 11	 00 11 02 02 21 // 2 properties to change, 2 buildings to change, starting at building 21
			08 21 22 // substitute tile
			09 21 22 // override tile

    4 * 17	 02 11 01 00 //
			29 05 00 00 // ground sprite
			00 00 00 00 // building sprite
			00 00 // x, y offsets
			00 00 00 // bounding box sizes
			
    5 * 17	 02 11 02 00 //
			28 05 00 00 // ground sprite
			00 00 00 00 // building sprite
			00 00 // x, y offsets
			00 00 00 // bounding box sizes

    6 * 7	 03 11 01 // action 3, airports, 1 sprite to change
			21 // replaces id 
			00 // no new cargo ids
			01 00 // use id 

    7 * 7	 03 11 01 // action 3, airports, 1 sprite to change
			22 // replaces id 
			00 // no new cargo ids
			02 00 // use id 
Screenshot just to show it works with whatever roadset is loaded, even if it doesn't match:
airport_test.png
airport_test.png (52.52 KiB) Viewed 3929 times
I was lazy and only replaced those two tiles but it seems to work OK. I'm not entirely sure I understand everything though so that might not be the "proper" way of doing it.

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 09 Jan 2018 07:36

Thanks for that buttercup, my NFO is a bit rusty but at first glance it looks reasonably straightforward. I was hoping it was possible to do something like that so I'm pleased to see it works. When I get time I'll have a proper look at the specs.

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 12 Jan 2018 19:10

Donald Trump, in glorious 32bpp extra zoom! :mrgreen:

So basically this was just a fun little coding exercise I did over the holidays, but who knows, maybe some of you would like to have The Donald running your transport empires? I don't know if there's a more practical use for this sort of thing, but it would be pretty easy for people to create their own avatar grfs using the same method.
Attachments
COVFEFE Transport, 2018-01-28.png
COVFEFE Transport, 2018-01-28.png (206.1 KiB) Viewed 3772 times
trump.grf
(738.6 KiB) Downloaded 84 times

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5565
Joined: 27 Nov 2004 15:05
Location: Canada

Re: PaulC's Bits & Bobs

Post by wallyweb » 12 Jan 2018 21:34

Brilliant! :twisted:

As a companion piece for your other topic, didn't somebody once upon a time code a White House HQ? :mrgreen:

Auge
Route Supervisor
Route Supervisor
Posts: 386
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: PaulC's Bits & Bobs

Post by Auge » 12 Jan 2018 21:45

Hello
wallyweb wrote:As a companion piece for your other topic, didn't somebody once upon a time code a White House HQ? :mrgreen:
If I'm right, the White House HQ was part of the North American City Set (OzTrans's set?).

Tschö, Auge

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 12 Jan 2018 21:47

wallyweb wrote:As a companion piece for your other topic, didn't somebody once upon a time code a White House HQ? :mrgreen:
Wasn't it North American Roads? I'm sure I have it somewhere. Weren't those grfs at the centre of one of this forum's occasional s*** though?

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5565
Joined: 27 Nov 2004 15:05
Location: Canada

Re: PaulC's Bits & Bobs

Post by wallyweb » 12 Jan 2018 22:22

Auge wrote:If I'm right, the White House HQ was part of the North American City Set (OzTrans's set?).
PaulC wrote:Wasn't it North American Roads? I'm sure I have it somewhere. Weren't those grfs at the centre of one of this forum's occasional s*** though?
The Canadian stuff was, but North American Roads remains available here, and yes, I checked the pdf readme and the White House is indeed available as a parameter. Thanks for giving my memory a jog. :wink:
Last edited by wallyweb on 12 Jan 2018 22:35, edited 1 time in total.

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 12 Jan 2018 22:29

wallyweb wrote:...but North American Roads remains available here
Good to know! :D

User avatar
acs121
Tycoon
Tycoon
Posts: 1944
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: PaulC's Bits & Bobs

Post by acs121 » 13 Jan 2018 19:33

PaulC wrote:
wallyweb wrote:...but North American Roads remains available here
Good to know! :D
Even better to know : if you place a roadset under NA Roads, be it UK Roads, TTRS Roads, or whatever you want, you can get the NA Roads stops.

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 03 Feb 2018 18:42

Three small UFOs take off in formation from this desert helistation. Just something I'm playing about with at the moment...
Attachments
Brundhattan Ridge Transport, 2018-01-28.png
Brundhattan Ridge Transport, 2018-01-28.png (51.95 KiB) Viewed 3435 times

User avatar
acs121
Tycoon
Tycoon
Posts: 1944
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: PaulC's Bits & Bobs

Post by acs121 » 03 Feb 2018 19:23

I was planning on making a futuristic vehicle set (2018 onwards to around 3000), may i please borrow your sprites ? :D

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 03 Feb 2018 19:36

Well they aren't mine, I'm just working with the OpenGFX base set here. It's all in the repository on the DevZone: http://dev.openttdcoop.org/projects/opengfx/repository

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5565
Joined: 27 Nov 2004 15:05
Location: Canada

Re: PaulC's Bits & Bobs

Post by wallyweb » 03 Feb 2018 20:30

Wow! All that's missing is an "Area 51 that way --->> " sign. :lol:

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: PaulC's Bits & Bobs

Post by Leanden » 04 Feb 2018 12:46

PaulC wrote:Donald Trump, in glorious 32bpp extra zoom! :mrgreen:

So basically this was just a fun little coding exercise I did over the holidays, but who knows, maybe some of you would like to have The Donald running your transport empires? I don't know if there's a more practical use for this sort of thing, but it would be pretty easy for people to create their own avatar grfs using the same method.
Was this in NFO or NML?

Could you share the code?
Image

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 04 Feb 2018 20:19

Sure, attached tar includes the basic nml and some blank pngs.
Attachments
templates.tar
(12 KiB) Downloaded 66 times

User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: PaulC's Bits & Bobs

Post by PaulC » 11 Feb 2018 01:37

If you've seen some of my recent posts in the technical forum you might know that I'm working on a grf for new currencies. I've been tinkering about with this a bit more today so here's a screenshot of where I'm up to. I now have 16 currencies coded, most of them from Asia, Africa and the Americas, so the overall selection will be far less Eurocentric than the default.
Attachments
Unnamed, 2000-01-01.png
Unnamed, 2000-01-01.png (171.22 KiB) Viewed 3195 times

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 8 guests