NewGRF Livery Selection/Cargo Subtypes (GRF Callback 19)

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
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

also, this doesn't let players have different sets of engines or carages, just paint them differently...

and instead of real liveries, i'd like to see more alternate combinations of the 2 colours, unfortunatly, OTTD players won't see the effect yet.

and, 1 more thing, is it possable to add a preview window in the refit screen? so we can see what our train looks like BEFORE we refit it?
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

bobingabout wrote:also, this doesn't let players have different sets of engines or carages, just paint them differently...

and instead of real liveries, i'd like to see more alternate combinations of the 2 colours, unfortunatly, OTTD players won't see the effect yet.
planned feature, that might not be that far into the future. Note: might. I didn't promis anything about time here.
bobingabout wrote:and, 1 more thing, is it possable to add a preview window in the refit screen? so we can see what our train looks like BEFORE we refit it?
that should be possible
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

Bjarni wrote:
bobingabout wrote:also, this doesn't let players have different sets of engines or carages, just paint them differently...

and instead of real liveries, i'd like to see more alternate combinations of the 2 colours, unfortunatly, OTTD players won't see the effect yet.
planned feature, that might not be that far into the future. Note: might. I didn't promis anything about time here.
which one? multiple GRFs with different engines for different players, or 2 colours instead of liveries?

because i already know peter(i think its peter) is working on the 2 colours thing. thats why i used the word "Yet".
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

bobingabout wrote:
Bjarni wrote:
bobingabout wrote:also, this doesn't let players have different sets of engines or carages, just paint them differently...

and instead of real liveries, i'd like to see more alternate combinations of the 2 colours, unfortunatly, OTTD players won't see the effect yet.
planned feature, that might not be that far into the future. Note: might. I didn't promis anything about time here.
which one? multiple GRFs with different engines for different players, or 2 colours instead of liveries?

because i already know peter(i think its peter) is working on the 2 colours thing. thats why i used the word "Yet".
2 company colours
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

bobingabout wrote:1 more thing, is it possable to add a preview window in the refit screen? so we can see what our train looks like BEFORE we refit it?
That would be useful but of course would need a complete redesign of the refit window. My intention with this patch was to give OTTD the same functionality as TTDPatch, enhancements can be added later.
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Another update, new patch against r4916 is in the first post.

Fixed: I found that the cargo subtype wasn't being set for cloned vehicles. This has now been corrected.

Added: Cargo subtype suffixes are now displayed in the vehicle details window (see screenshot).
Attachments
Mart3p Transport, 21st Sep 1990.png
Mart3p Transport, 21st Sep 1990.png (53.68 KiB) Viewed 4604 times
Image
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

is possible to automatically refit wagons like TTDPatch?
when you buy wagons and the engine is already present on the same line (do you know that if there are two engines the wagons are placed on an empty line) the wagons are refitted with the engine's correct liverie automatically
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

That's a function of type 82 varactions and/or livery overrides, not CB19.

If the engine supports CB19, the wagons can be caused to change according to the engine's refit, but this is a result of the wagons' use of type 82 varactions, not the engine's use of CB19.
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 »

Wolf01 wrote:is possible to automatically refit wagons like TTDPatch?
As DaleStan points out, what you are asking for is controlled by type 82 varactions, this should already work in OTTD.

As an example, with Born Acorn's IC125 (see first post), when a livery refit is selected for the engine, any passenger carriages change to the same livery. Any further carriages that are then added will also change to the engine's livery.
Image
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

At me in the list of purchases OpenTTD (above) and TTDP are (below) visible different sprites.
In what a problem?
Attachments
refit.PNG
refit.PNG (36.1 KiB) Viewed 4287 times
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Hi Grigory, this is a bug in the trunk code, not in my patch. I have already mentioned the problem to peter1138 and he has some code that fixes it. We just need to wait until his code is added to the trunk. :)

Please let me know if you find any other problems with your planes in OTTD.
Last edited by mart3p on 22 May 2006 21:10, edited 1 time in total.
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 »

Lets poke peter1138 to merge this patch with trunk! :P
Image
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

mart3p wrote:Hi Grigory, this is a bug in the trunk code, not in my patch. I have already mentioned the problem to peter1138 and he has some code that fixes it. We just need to wait until his code is added to the trunk. :)

Please let me know if you find any other problems with your planes in OTTD.
OK! We shall wait

Gratitude for patches that enables to use my planes written for TTDP, and also at me (partially there is no button refit :( ) have earned some versions George's Long vehicles!!! :D
Attachments
refit.PNG
refit.PNG (22.51 KiB) Viewed 4182 times
Last edited by Grigory1 on 23 May 2006 14:32, edited 1 time in total.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Yeah, I've been toying with two ideas on this:

1) Make yet another copy of the refit command and gui, to implement road vehicle refitting.

2) Merge all refit commands and gui parts into one super-mega-refit-command & gui.

I'm edging for the latter, as it reduces code duplication, although there will then be special cases for aircraft.
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 »

Grigory1 wrote:Gratitude for patches that enables to use my planes written for TTDP
Thanks... :D Your aircraft were one of my reasons for making the patch.
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Grigory1 wrote:
mart3p wrote:Hi Grigory, this is a bug in the trunk code, not in my patch. I have already mentioned the problem to peter1138 and he has some code that fixes it. We just need to wait until his code is added to the trunk. :)
OK! We shall wait
Grigory, the bug in the vehicle purchase list was fixed at r4960. Thanks peter1138. :)
Attachments
Nunningstone Transport, 6th Dec 2009.png
Nunningstone Transport, 6th Dec 2009.png (93.01 KiB) Viewed 4062 times
Image
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

Is it me ..or those planes are not placed correctly (a little shifted)? I mean on the airport.
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
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

gkirilov wrote:Is it me ..or those planes are not placed correctly (a little shifted)? I mean on the airport.
Yes your right but they're also shifted in TTDPatch (see screenshot) although (strangely), not by quite the same amount.

I've found another problem though: Grigory, do you know that your 777_gr_107.grf and Tu-154_gr.grf are both using the same GRF ID - 47540610. In OTTD this causes both planes to use the same strings in the livery refit list.
Attachments
TTDPatch sceenshot
TTDPatch sceenshot
Plane_posn_TTDP2.png (22.18 KiB) Viewed 3999 times
Image
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

Thanks mart3p! Thanks peter1138!
Good work :D
gkirilov
Is it me ..or those planes are not placed correctly (a little shifted)? I mean on the airport.
I coded it for airports TTD, in Open TTD planes are placed a little on another, and at the different airports on a miscellaneous
mart3p
I've found another problem though: Grigory, do you know that your 777_gr_107.grf and Tu-154_gr.grf are both using the same GRF ID - 47540610. In OTTD this causes both planes to use the same strings in the livery refit list.
I shall correct in file Tu-154_gr.grf
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

that reminds me... the build new vehicle windows need the text part extending a few lines, in OTTD with UKRS there are a few vehicles where the text uses 1 too many lines, and overlaps with the buttons so you can't read what it says, also adding that "refitable to:" line would be usefull, because unless you've played before, its hard to tell what cargo types each vehicle can carry.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests