I want to use "Aircraft Range"

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

junho2813
Engineer
Engineer
Posts: 14
Joined: 12 Feb 2007 02:15

I want to use "Aircraft Range"

Post by junho2813 »

Where's 'Aircraft Range' function?

I can't find this function in any GRF.

I can found it Aircraft sorts only.

I'm sorry that My english skill is very low.
Attachments
range.PNG
range.PNG (376.09 KiB) Viewed 302 times
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: I want to use "Aircraft Range"

Post by Supercheese »

No aircraft sets currently feature the "Range" feature - including the default vehicle set. You'll have to wait for GRF authors to add it to their sets.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: I want to use "Aircraft Range"

Post by PikkaBird »

Soon (tm). This is ruining my plans to finish off pj1k though. :p
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: I want to use "Aircraft Range"

Post by Supercheese »

PikkaBird wrote:Soon (tm). This is ruining my plans to finish off pj1k though. :p
I know, so many snazzy new features hitting trunk within such a short time! (And even outside of OTTD, tons of cool new games flooding the market!) Truly a legendary Christmas! :D
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: I want to use "Aircraft Range"

Post by Terkhen »

You need to give NewGRF developers some time to implement new features in their sets. 30 hours is not enough time to think about how ranges should be done in a given set, and which range should each aircraft get :)
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: I want to use "Aircraft Range"

Post by Kogut »

Terkhen wrote:You need to give NewGRF developers some time to implement new features in their sets. 30 hours is not enough time to think about how ranges should be done in a given set, and which range should each aircraft get :)
I hope they will need more time, as I am puzzled how my AI should handle this evil feature :D
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: I want to use "Aircraft Range"

Post by FooBar »

Kogut wrote:I hope they will need more time, as I am puzzled how my AI should handle this evil feature :D
Assuming you have access to all necessary information:
- get distance between each hop in schedule
- take max of that
- compare to range of aircraft
- if within range, aircraft is suitable, if not you need a different one.

So the info you need
- individual entries of schedule
- function to find distance between two points
- function to find max
- access to range of all aircraft

What may work is figuring out the complete schedule before building an airport, then checking if there are suitable aircraft (use a margin of x tiles because you don't exactly know yet where the airport will be, just the town it will be in). If there are aircraft, try to build the airports. If that worked, purchase the aircraft and set up the route.

Not saying that it should be done that way, but it may give you some ideas to work with.
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: I want to use "Aircraft Range"

Post by Michi_cc »

FooBar wrote: So the info you need
- individual entries of schedule
- function to find distance between two points
- function to find max
- access to range of all aircraft
All there: http://vcs.openttd.org/git/?p=openttd/t ... 40b#patch8 (captures that ship buoy distance thingy as well). You "just" need to figure out a proper algorithm :)

-- Michael Lutz
User avatar
Kalen
Traffic Manager
Traffic Manager
Posts: 160
Joined: 07 Jun 2008 22:07
Location: Portugal

Re: I want to use "Aircraft Range"

Post by Kalen »

I guess it might be a bit obvious that the property must be set by the NewGRF authors, but when the feature was implemented, I actually thought it would magically apply a range value for all my aircraft sets. Of course, it didn't take me long to realise the absurdity of such a thing. :P

One thing though: I'm hoping NewGRF creators will apply variable range factors - if possible - to their aircraft considering many people play on maps larger than the original or even 2048x. Millionaire profits aside, it wouldn't be very realistic or appeasing gameplay-wise if aircraft were the only vehicles that couldn't cross an entire map, considering how they're, well, aircraft. :wink:
bremerjoe
Engineer
Engineer
Posts: 97
Joined: 24 May 2011 21:01

Re: I want to use "Aircraft Range"

Post by bremerjoe »

Kalen wrote:One thing though: I'm hoping NewGRF creators will apply variable range factors - if possible - to their aircraft considering many people play on maps larger than the original or even 2048x. Millionaire profits aside, it wouldn't be very realistic or appeasing gameplay-wise if aircraft were the only vehicles that couldn't cross an entire map, considering how they're, well, aircraft. :wink:
I hope for a variable range factor or even an on/off switch too. Although I fully understand that an Airbus 380 happens to have a slightly longer range than an old Boeing 737 in real life also. :lol:
Everybody can contribute to OTTD! It does not require you to be an IT specialist or designer. And it does not take days or weeks of your time either.
There are many simple yet important tasks like translations, investigating facts and details and many other that need work and if you help a bit then the experienced developers can focus more on making OTTD even more awesome!
OTTD = Awesomeness created by a whole lot of volunteers, be one of them if you like the game!
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: I want to use "Aircraft Range"

Post by PikkaBird »

Kalen wrote:One thing though: I'm hoping NewGRF creators will apply variable range factors - if possible - to their aircraft considering many people play on maps larger than the original or even 2048x. Millionaire profits aside, it wouldn't be very realistic or appeasing gameplay-wise if aircraft were the only vehicles that couldn't cross an entire map, considering how they're, well, aircraft. :wink:
I thought I would do this, but it turns out that the ranges don't scale very well without being silly.

I knocked up some numbers and put them on the wiki here, what do you think?
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: I want to use "Aircraft Range"

Post by MinchinWeb »

Having ranges on planes shouldn't be too bad; you just might have to build airports like Gander, Newfoundland. There was a time when to fly from the States to Europe involved a stop in Newfoundland and one in Ireland.
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: I want to use "Aircraft Range"

Post by Supercheese »

PikkaBird wrote:I thought I would do this, but it turns out that the ranges don't scale very well without being silly.

I knocked up some numbers and put them on the wiki here, what do you think?
Minor point: the default Lockheed Constellation has the same range as its upgraded versions. Shouldn't it start lower and increase, since the newer models had larger fuel tanks? Edit: already changed. :)

Also: In-Flight Refueling upgrade for the Hercules/other military transports? :P
Last edited by Supercheese on 15 Dec 2011 09:39, edited 1 time in total.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: I want to use "Aircraft Range"

Post by planetmaker »

PikkaBird wrote: I thought I would do this, but it turns out that the ranges don't scale very well without being silly.

I knocked up some numbers and put them on the wiki here, what do you think?
I would expect that modern airliners like Boing 777 and Airbus A380 could cover the whole map, irrespective of its size. Which means cover a distance > 2048 * sqrt(2) = 2897.
But otoh it's a matter that taking a 2048**2 map as guide will make distance scale nearly pointless already on a 1024**2 map, even more so on a 512**2 map. Thus it's tricky. You *might* consider to scale it by the maximum of the linear map size ( #13 in http://newgrf-specs.tt-wiki.net/wiki/Re ... hVariables ). Range for aircraft is quoted in the purchase menu and available via callback 36, so it should be no technical issue for players to accept that nor to implement it.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: I want to use "Aircraft Range"

Post by PikkaBird »

planetmaker wrote:I would expect that modern airliners like Boing 777 and Airbus A380 could cover the whole map, irrespective of its size.
Well you would expect wrong then. ;) In any case, I'd rather keep things more interesting for 256* and 512* map sizes than relieve 2048* players of the burden of building an extra airport.
Eddi
Tycoon
Tycoon
Posts: 8257
Joined: 17 Jan 2007 00:14

Re: I want to use "Aircraft Range"

Post by Eddi »

PikkaBird wrote:
planetmaker wrote:I would expect that modern airliners like Boing 777 and Airbus A380 could cover the whole map, irrespective of its size.
Well you would expect wrong then. ;) In any case, I'd rather keep things more interesting for 256* and 512* map sizes than relieve 2048* players of the burden of building an extra airport.
i do believe that if you use scaling by map size, then you can cover both cases easily.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: I want to use "Aircraft Range"

Post by planetmaker »

PikkaBird wrote:
planetmaker wrote:I would expect that modern airliners like Boing 777 and Airbus A380 could cover the whole map, irrespective of its size.
Well you would expect wrong then. ;) In any case, I'd rather keep things more interesting for 256* and 512* map sizes than relieve 2048* players of the burden of building an extra airport.
My suggestion was geared towards making it interesting for *every* map size (with maybe a minimum range limited to the assumption that 256 is the smallest size):
EDIT: like range = design_range256 * [ 2**(max(0, map_size - 8 )) ]
http://en.wikipedia.org/wiki/Boeing_777 wrote:On November 10, 2005, the first Boing 777−200LR set a record for the longest non-stop flight of a passenger airliner by flying 11,664 nautical miles (21,602 km)[7]
The Earth has a circumference of 40,000km, thus a 777-200LR can reach any point on Earth (neglecting flight corridors). And looking it up, I learnt the A380 indeed only has about 16,000km range.
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: I want to use "Aircraft Range"

Post by Michi_cc »

Scaling the range by map size might be a good idea or might not be, I guess only playtesting will give an answer here. To give a bit more detail about that range stuff, an aircraft can reach all airports whose northern corner is inside a circle with radius "range prop" around the northern corner of the origin airport.
planetmaker wrote:The Earth has a circumference of 40,000km, thus a 777-200LR can reach any point on Earth (neglecting flight corridors).
And, more importantly, neglecting any payload :) The longest route people would actually fly is likely London-Sydney at 9188 nautical miles, but no aircraft ever built so far could do that distance economically viable. That's unlikely to change in the near future.

-- Michael Lutz
User avatar
Kalen
Traffic Manager
Traffic Manager
Posts: 160
Joined: 07 Jun 2008 22:07
Location: Portugal

Re: I want to use "Aircraft Range"

Post by Kalen »

PikkaBird wrote:I thought I would do this, but it turns out that the ranges don't scale very well without being silly.

I knocked up some numbers and put them on the wiki here, what do you think?
I'm no expert in aircraft science, so I can't really say if the ranges are realistic enough, but from a gameplay standpoint, assuming they are described in tiles, they seem quite acceptable, even if only a few cover the whole edge distance of a 2048x map.

Thinking about it, I realise that most aircraft routes in 2048x maps and below shouldn't really be so long as to be hindered by range, unless you use an older aircraft (but that makes sense). Maps above that do worry me, since it will botch some long routes that may actually be realistic in real life (i.e. when using "maps of the world"), and if we're to implement range as a realistic factor, it'd be hypocritical not to accept that such routes would also be realistic just because they make life harder for the range implementation.

At any rate, if a variable value isn't possible or is just too clumsy to implement, then I believe it all should come down to a single value implementation and an on/off switch. That would solve most issues with bigger maps. The reasoning behind this is simple: the values you've input in the quoted link are nice and all, but for smaller maps they hardly make a difference (look at the amount of aircraft models with range equal or above 256). Conversely, if you were to lower them further, they'd be ridiculously hindering for bigger maps. Thus if a variable value is dodgy, I guess a switch is the only viable way - and it does makes it all much simpler if you just have to focus on maps up to 512x.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: I want to use "Aircraft Range"

Post by PikkaBird »

The minimum useful aircraft range is 96 tiles, imo, and that only barely. Thus scaling the ranges down so fewer aircraft can cross smaller map sizes seems silly; of course most airliners should be able to travel more than 3 times the range of the shortest-range aircraft (especially considering this set doesn't think commercial aviation started with the DC-3 :roll: ).

Actually, I don't see this feature changing most OpenTTD players' behaviour at all, since most players just spam the largest aircraft, and those are also the aircraft with the longest range.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 8 guests