Purchase Window Refit Information Patch

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

User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Purchase Window Refit Information Patch

Post by mart3p »

I have often found it annoying that the purchase window doesn't show the possible refit options for each vehicle. This patch adds this feature and also fixes a bug where text can sometimes overflow the bottom of the list (e.g. the UKRS Pendolino).

The refit options are displayed in the same format as in TTDPatch and are also displayed in the vehicle replace window.

The screenshot shows an example using Pikabird's UKRS.

Edit: win32 exe added
Edit: patch updated to r5434 30/06/06
Edit: win32 exe removed. Get a more recent one from here . This patch is now also included in the MiniIN. Find the most recent builds for all platforms here.
Edit: bugfix - only display rail vehicle refit options if the vehicle has a cargo capacity. Patch updated to r5649. 30/07/06
Edit: Patch updated to r5833. 10/08/06
Edit: Patch updated to r5933. 17/08/06
Edit: Patch updated to r6080. 23/08/06
Edit: Patch updated to r6300. 01/09/06
Edit: Patch updated to r6458. 15/09/06
Edit: Patch updated to r6693. 08/10/06
Edit: Patch updated to r6729. 10/10/06
Edit: Added to the trunk at r6912. Patch removed. 23/10/06
Attachments
Cargoes UKRS.png
Cargoes UKRS.png (53.31 KiB) Viewed 8990 times
Last edited by mart3p on 23 Oct 2006 23:05, edited 14 times in total.
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Some more example purchase lists showing the US Train Set, Grigory's Russian Planes and Michael Blunck's Newships and also, now that OTTD supports refittable road vehicles, George's Long Vehicles.
Attachments
Cargoes Long Vehicles.png
Cargoes Long Vehicles.png (52.65 KiB) Viewed 8985 times
Cargoes US Set.png
Cargoes US Set.png (6.07 KiB) Viewed 8987 times
Cargoes Planes and Ships.png
Cargoes Planes and Ships.png (15.39 KiB) Viewed 8987 times
Image
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

Good ones. Hope to see them soon in the nighlty :).
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

Yay. i sugested this a while ago, glad to see it done.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

Thanks mart3p, good work :)
User avatar
White Rabbit
Tycoon
Tycoon
Posts: 1734
Joined: 22 Jun 2005 19:15

Post by White Rabbit »

This will prove very useful. I still don't remember what carries what for the US Set. :P

(By the way, what version of the LVs did you use for that screenshot, mart3p? Obviously 4 and 3 3/4 are still a bit too advanced for OTTD).
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

White Rabbit wrote:By the way, what version of the LVs did you use for that screenshot, mart3p? Obviously 4 and 3 3/4 are still a bit too advanced for OTTD).
I'm using Long Vehicles v2.

And thanks for the comments everyone. :)
Image
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Seems like "Suitable for" and "Special features" are not in english.txt.
Are these parts of newgrf, so these will remain untranslated in other languages?
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

MeusH wrote:Seems like "Suitable for" and "Special features" are not in english.txt.
Are these parts of newgrf, so these will remain untranslated in other languages?
The strings "Suitable for" and "Special features" are part of the UKRS grf. They are currently only in English. It is possible to add translations for grf texts but this would be an update of the grf file. Perhaps you should talk to Pikabird about this. ;)
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Just to let you know this patch is still being supported. An update against r5933 is in the first post.
Image
User avatar
RSpeed tycoonfreak
Transport Coordinator
Transport Coordinator
Posts: 349
Joined: 02 Feb 2006 13:17
Location: Azewijn The netherlands
Contact:

Post by RSpeed tycoonfreak »

mart3p wrote:Some more example purchase lists showing the US Train Set, Grigory's Russian Planes and Michael Blunck's Newships and also, now that OTTD supports refittable road vehicles, George's Long Vehicles.
what roadset is that in the last screenshot it looks really cool!
Visit The Fake Airport Website
Image
Hobbys: being 18 years old, soccer, go karting, and transport tycoon.
Mateo
Engineer
Engineer
Posts: 11
Joined: 04 Aug 2006 23:21
Location: Espoo, Finland

Post by Mateo »

mart3p wrote:The strings "Suitable for" and "Special features" are part of the UKRS grf. They are currently only in English. It is possible to add translations for grf texts but this would be an update of the grf file. Perhaps you should talk to Pikabird about this. ;)
A suggestion: How about if OpenTTD would recognize commonly used strings in newgrf files and then would get translations for them from the lang-files?
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

RSpeed tycoonfreak wrote:
mart3p wrote:Some more example purchase lists showing the US Train Set, Grigory's Russian Planes and Michael Blunck's Newships and also, now that OTTD supports refittable road vehicles, George's Long Vehicles.
what roadset is that in the last screenshot it looks really cool!
its the combined roadset
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/
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

Mateo wrote:A suggestion: How about if OpenTTD would recognize commonly used strings in newgrf files and then would get translations for them from the lang-files?
this new topic have been splitted out and moved to http://www.tt-forums.net/viewtopic.php?t=26957
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Bjarni: Thanks for splitting the NewGRF translation discussion to its own thread. It was a bit off topic here. Not that I minded :) but I thought the discussion deserved its own topic.
Image
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

mart3p, how's the progress on this patch? I'm looking forward for it, it's great :)
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Thanks MeusH :)

The patch has now had 2 months testing in the MiniIN with no reported problems. As far as I’m concerned it’s finished and (unlike some of my patches) it doesn‘t have any nasty hacks. ;) I would like to see it in the trunk, I guess it just needs a dev to take an interest. Maybe I should post it on Flyspray...
Image
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7597
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Or you could poke peter1138 with it! :P
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

I'm very pleased to announce that peter1138 has added my Purchase List Refit Options patch to the trunk. :D

Once again peter1138 has made a few improvements, but happily he hasn't had to hack the code about to the extent that was required in my previous patches. ;)

This feature will be available in tomorrows nightly build. Thanks yet again peter1138.
Image
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post by Sacro »

Wooyay :lol:
We Am De Best

Host of ThroughTheTube site
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: jfs and 2 guests