Planeset patch (now supports Planeset 1.5)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Aircraft consist of two or three vehicles (body, shadow, rotor)
At the time I wrote that, I was not aware that the shadow always used the body's variables, so I used type 82 to ensure that nothing broke in interesting ways.

Since then, I have learned that 81 and 82 are identical (as are their W/D cousins), even for the shadow, so I've gotten sloppy about the 81/82 distinction.
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
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Thanks DaleStan.

Now a large part of the Planeset patch has been added to the trunk, I thought I’d would give an update on what’s now in the trunk and what’s in the patch. The DBxx codes refer to DaleStan’s original bug list on the first page of this topic.

In the trunk. :D

1. Support for custom helicopter rotors (but not in vehicle gui windows - yet)
2. Mapping of OTTD aircraft movement states to TTDPatch aircraft movement states and actions (NewGRF action 2 vars E2 and E6). (DB3/4/8/9)
3. Aircraft Info property for correct display of Chinook cargo slings and when they appear/disappear on takeoff and landing (NewGRF action 2 var 44)
4. For GRF files, pretend to be the last alpha version of TTDPatch, this allows Planeset to load.
5. Correct operation of cargo doors when loading/unloading (DB2)
6. GUI window sprites update when refitting (DB6)


In the Planeset patch (for r4653 - see first post).

7. Correct display of helicopter rotors in gui windows (DB8).
8. Cargo Info property for correct selection of Chinook cargo sprites. Also used in cargo capacity calculations (NewGRF action 2 var. 47).
9. Planespeed switch setting - suppresses debug warning message


Fixed with my Aircraft Cargo Capacities patch.

10. Correct aircraft cargo capacities (NewGRF callback 15). (DB1a)
11. Ruslan is built carrying coal (not passengers). (DB5)


Outstanding unsupported features.

12. Cargo subtypes and livery refitting (NewGRF callback 19 and action 0 var. F2) (DB1b), but I'm working on it.:) See the screenshot for a preview.
13. Sound effects - the airships sound like helicopters. (NewGRF callback 33) (DB1c). I might get around to looking at this, at least as far as making airships silent.
Attachments
Mart3p Transport, 3rd Feb 1998.png
Mart3p Transport, 3rd Feb 1998.png (40.59 KiB) Viewed 7986 times
Last edited by mart3p on 04 May 2006 22:14, edited 1 time in total.
Image
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Sound effects I have already sorted. It just needs to be committed (it was waiting on the new sprite group code...) As for livery refitting, great stuff!

I hope to get around to putting more of your stuff in tonight :D
He's like, some kind of OpenTTD developer.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

mart3p wrote:Outstanding unsupported features.
12. Cargo subtypes and livery refitting (NewGRF callback 19 and action 0 var. F2) (DB1b), but I'm working on it.:) See the screenshot for a preview.
Totally off-topic but what are those refit thingies there? Aren't they all passangers? Or what am I supposed to think when I see this?
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

They are all passengers, yes. They give you a choice of liveries to use. It is purely cosmetic. (Well, it could affect other things, but generally it doesn't)
He's like, some kind of OpenTTD developer.
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

peter1138 wrote: I hope to get around to putting more of your stuff in tonight :D
That's great, thanks. :D
Darkvater wrote: Totally off-topic but what are those refit thingies there? Aren't they all passangers? Or what am I supposed to think when I see this?
For the trains they are all passengers but the GRF file adds a suffix to show the available liveries. Also note that in the aircraft refit window Planeset adds suffixes (liquid and solid) for just goods, again alternative graphics are used depending on the selection.

The trains are Born Acorn's IC125 v0.5 available here.
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Today, peter1138 added support for NewGRF action 2 var42. This isn't used by Planeset but I can now use the cargo class constants that peter1138 has defined, for var. 47, which is implemented by my patch.

A new version of the Planeset patch against r4867 has been added to the first post.

If you are using the Planeset patch I would recommend also using the aircraft callback 15 patch and the cargo subtypes patch. To make it easier to apply all 3 patches I have combined them in a “Planeset Combo” patch, available in the first post.
Image
User avatar
Mets
Engineer
Engineer
Posts: 10
Joined: 12 Jun 2006 04:05

Post by Mets »

Newbie question here. Is their a tutorial anywhere on using the planeset feature? I know it's included in the Mini-IN but I haven't noticed anything different - same old normal aircraft.
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

you need the grf
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
damazul
Engineer
Engineer
Posts: 19
Joined: 18 May 2006 10:39

Post by damazul »

cn some 1 give me the zip file of this i dont no houw to use this :oops: :oops: :oops:
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

You download it (1.2, not the OTTD version) and read the README.
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
User avatar
Mets
Engineer
Engineer
Posts: 10
Joined: 12 Jun 2006 04:05

Post by Mets »

DaleStan wrote:You download it (1.2, not the OTTD version) and read the README.
Honestly, for somebody who just started playing this game, it's not that easy. If you download the TTD version, you get a readme that tells you Planeset doesn't work with OpenTTD. If you download the OpenTTD version, you get installation instructions that explain how to install the patch in TTD. Both install guides mention one file - planesetw.grf. Not only is there no planesetw.grf file in the OTTD install, there's 7 other files sitting in here that it doesn't mention. Copy to newgrf folder? Edit newgrf.cfg? Edit ttdpatch.cfg? And these are the install instructions for OTTD :?: :(
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

1. Copy a file PlaneSet.grf in a folder data
2. In a file openttd.cfg it is added (a file to open a notebook):

[newgrf]
PlaneSetw.grf
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Mets wrote:Honestly, for somebody who just started playing this game, it's not that easy. If you download the TTD version, you get a readme that tells you Planeset doesn't work with OpenTTD.
Which it doesn't. The MiniIN is not OpenTTD.
Mets wrote:If you download the OpenTTD version,
... which I believe I told you not to do.

But you're right. Once the OpenTTD trunk supports the PlaneSet, I'll make sure the README reflects that, and contains the relevant information.
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
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

DaleStan wrote:But you're right. Once the OpenTTD trunk supports the PlaneSet, I'll make sure the README reflects that, and contains the relevant information.
It pretty much does now, apart from custom heli rotors in vehicle detail windows...
He's like, some kind of OpenTTD developer.
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Planeset 1.5 was released today . :) You can get it from the TTDPatch Graphics forum in the Planeset topic.

I have updated the Planeset patch (in the first post) to support the new features of Planeset 1.5.

Updates to the patch include:
1. Support for NewGRF action 2 variable 0x48 - Vehicle type info.
2. Support for NewGRF action 2 variable 0x7F in the purchase list - Read GRF parameter.
3. Support for "Include" strings in NewGRF texts (using formatting code 0x81).

My NewGRF Livery Selection/Cargo Subtypes patch is also required for Planeset 1.5 if you want to use the alternative liveries. A Planeset 1.5 Combo patch is also in the first post, this contains both patches.

I will post a win32 exe later.
Attachments
Planeset Test, 10th Dec 2011.png
Planeset Test, 10th Dec 2011.png (78.76 KiB) Viewed 6939 times
Image
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

/me whistles innocently...
He's like, some kind of OpenTTD developer.
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

peter1138 wrote:/me whistles innocently...

:lol:

Here is a win 32 exe for Planeset 1.5

Known bug: Planeset 1.5 has support for new cargoes. There is a small problem with this, the cargo translation table re-maps cargo id 1 (which is normally coal) to tourists. This means that some aircraft get passenger liveries (rather that cargo liveries) when refitted to coal.
Attachments
OTTD-Planeset1_5_r5334PS.zip
(1.27 MiB) Downloaded 283 times
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

I've had to update the patches in the first post! peter1138 has already added some of my Planeset 1.5 patch to the trunk. :shock:

As usual, he has made a few improvements (and fixed my spelling mistakes). Thanks yet again peter1138. :D
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Here is an update on the status of the Planeset patch now that all of the original Planeset 1.2 patch is in the trunk.

In the trunk for Planeset 1.5.
1. Support for vehicle type info. (NewGRF action 2 variable 0x48)
2. Support for reading GRF parameters for unbuilt vehicles. (NewGRF action 2 variable 0x7F )

In my Planeset 1.5 patch (against r5350 - see first post).
3. Support for "Include" strings in NewGRF texts (using formatting code 0x81).
4. New: Now that richk67's new airports are in the trunk I have added a fix that allows the Bell Osprey to be build in Helidepots and Helistations.

Fixed with my Livery Selection\Cargo Subtypes patch.
5. Selection of alternative company liveries for aircraft. Cargo subtypes are also used by Planeset to display different cargo slings for the Chinook helicopter when carrying goods.

Outstanding unsupported features.
6. Sound effects - the airships sound like helicopters. (NewGRF callback 33).
peter1138 wrote:Sound effects I have already sorted. It just needs to be committed
We'll just have to wait. :)

7. New cargoes - incorrect liveries for some aircraft when carrying coal.
Belugas has started work on new cargoes in the SVN newgrf_lab branch. Again, we'll just have to wait.

8. UTF-8 texts- Planeset 1.5 can display the company livery names of Russian planes in Russian using Cyrillic text. I have got this working (see screenshot) using peter1138's utf8 branch. Another one to look forward to (especially for Grigory1 ;) )
Attachments
Sanbridge Transport, 4th Feb 2001.png
Sanbridge Transport, 4th Feb 2001.png (57.64 KiB) Viewed 7961 times
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests