Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Mar 25, 2017 3:41 pm

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
 Post subject: OpenGFX+ Airport objects
PostPosted: Mon Jan 14, 2013 2:34 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Jun 29, 2006 8:36 am
Posts: 255
This weekend, I started teaching myself nml :)

I wrote some (probably crappy) code to use the opengfx+ airports tiles as objects. In combination with disabling airport fences in the original grf, some nice looking airports could be created.

As of now, they are available on the banana :)

Attachment:
Watkins & Co., 2010-03-13.png
Watkins & Co., 2010-03-13.png [ 87.68 KiB | Viewed 6783 times ]


Attachments:
File comment: source (GPL)
airportobjects.tar.bz2 [223.69 KiB]
Downloaded 501 times

_________________
My screenshots
A fractal heightmap generator for openttd


Last edited by zooks on Mon Jan 14, 2013 8:07 pm, edited 5 times in total.
Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 2:49 pm 
Offline
Engineer
Engineer

Joined: Mon Jan 14, 2013 2:40 pm
Posts: 4
Do the extra airport tiles actually function as a real airport?? Can planes use them like regular airports?


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 3:13 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Tue Dec 21, 2010 5:24 pm
Posts: 276
No, as they are objects, not Airports...

It's just EyeCandy!


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 3:16 pm 
Offline
Director
Director
User avatar

Joined: Tue Aug 17, 2010 10:36 am
Posts: 590
Location: Netherlands
Cool, just need more Object slots now.

_________________
View my (train)pictures on Flickr


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 4:39 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
zooks wrote:
Is there interest in this? I guess I can share using the same license as opengfx+airports (gpl?)

Yes there is.

Did you include the sprites in your grf, or did you reference base set sprites?
If you don't want to add any new sprites, then I recommend the latter method. This way your grf will work with any base set (not just OpenGFX) and the license is free to choose (although GPL is generally recommended).

Either way it's a really nice idea to create this. Well done!

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 5:37 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
zooks wrote:
This weekend, I started teaching myself nml :)
(...)
Is there interest in this? I guess I can share using the same license as opengfx+airports (gpl?)


Very nice, you already got quite far for just having started :-) And yes, there definitely is interest in this set.

Foobar is absolutely right with the licenses. Like he says, it's feasible to simply reference the base set's sprites (then you can choose any license), but if you actually include OpenGFX' or OpenGFX+Airports' sprites, you're free to do with them what you want as long as you release your work also under the GPL. From a graphical POV, using the sprites from OGFX+Airports might be nicer as you then can offer them aware of the terrain (and you might just "steal" the corresponding code in that case).

Cheers,
pm (co-author of ogfx-airports)

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 6:33 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Jun 29, 2006 8:36 am
Posts: 255
planetmaker wrote:
Very nice, you already got quite far for just having started :-) And yes, there definitely is interest in this set.

Foobar is absolutely right with the licenses. Like he says, it's feasible to simply reference the base set's sprites (then you can choose any license), but if you actually include OpenGFX' or OpenGFX+Airports' sprites, you're free to do with them what you want as long as you release your work also under the GPL. From a graphical POV, using the sprites from OGFX+Airports might be nicer as you then can offer them aware of the terrain (and you might just "steal" the corresponding code in that case).

Cheers,
pm (co-author of ogfx-airports)


Thanks! I indeed copied the sprites from OpenGFX+ Airports (I don't guess all rotations are in the base set?). I tried to 'steal' the code but this is that the same as nml? Or does it have some scripting layer on top? So I rewrote most of the code (except for the spritesets). All objects should be snow-aware, but I think some things still need to be made desert-aware as well.

I attached the sources in the first post and the grf can be found on the banana.

_________________
My screenshots
A fractal heightmap generator for openttd


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 6:57 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
zooks wrote:
Thanks! I indeed copied the sprites from OpenGFX+ Airports (I don't guess all rotations are in the base set?). I tried to 'steal' the code but this is that the same as nml? Or does it have some scripting layer on top? So I rewrote most of the code (except for the spritesets). All objects should be snow-aware, but I think some things still need to be made desert-aware as well.

Indeed the base sets hardly have all the rotations but only one. The code I linked above indeed needs an additional pre-processing by gcc as that's template code included for many tiles. You find the pre-processed code (thus pure NML) in the log of the automated nightly compile of OpenGFX+Airport on the DevZone's bundle server.


Quote:
I attached the sources in the first post and the grf can be found on the banana.

Cool, thanks

Feel also free to apply for a project at the DevZone (where also find the home of OpenGFX+Airports)

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 8:04 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5510
Location: Eastern KY
Awesome! This is one more of the "things I'll eventually get around to doing" that I can take off my list! Good job!

As a suggestion, I'd consider naming it OpenGFX+ Airport Objects, so people clearly know which ones these are.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 8:11 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Jun 29, 2006 8:36 am
Posts: 255
planetmaker wrote:
(..)
You find the pre-processed code (thus pure NML) in the log of the automated nightly compile of OpenGFX+Airport on the DevZone's bundle server.

Didn't know about that, I guess that would have saved some time :)

planetmaker wrote:
Feel also free to apply for a project at the DevZone (where also find the home of OpenGFX+Airports)

Does that mean others can take this forward as well? I would like that as I don't always have the time.

kamnet wrote:
Awesome! This is one more of the "things I'll eventually get around to doing" that I can take off my list! Good job!
As a suggestion, I'd consider naming it OpenGFX+ Airport Objects, so people clearly know which ones these are.

Thanks :) I renamed the topic

_________________
My screenshots
A fractal heightmap generator for openttd


Top
   
PostPosted: Mon Jan 14, 2013 8:55 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sun Oct 09, 2011 1:51 pm
Posts: 1296
Location: The Netherlands
Nice work!
Little suggestion, maybe include some tiles that have OpenGFX planes on them (on the taxi-tiles, the loading pads and maybe also on the landingstrips). That way it looks like the fake airport is operational ;-)

_________________
Projects: viewtopic.php?f=26&t=57266
Screenshots: viewtopic.php?f=47&t=56959

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.


Top
   
 Post subject: Re: Airport objects
PostPosted: Mon Jan 14, 2013 11:10 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
zooks wrote:
planetmaker wrote:
Feel also free to apply for a project at the DevZone (where also find the home of OpenGFX+Airports)

Does that mean others can take this forward as well? I would like that as I don't always have the time.

In short: yes.

Of course that is already principially allowed by you choosing to use GPL ;-)
On the DevZone we generally only allow people to commit access to a project, if they got the project creator's / manager's / maintainer's permission (thus here yours) to do so. (though we would of course also host a fork of a project, if someone would want to do that with a project where the license allows modification but the author would like to work on his version only).

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.