Problem using var F2 in CB 2D
Moderator: Graphics Moderators
- George
- Tycoon
- Posts: 4362
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Problem using var F2 in CB 2D
How can I use vehicle_cargo_subtype (var F2) at offset in colour_mapping CB?
I try to code the steamer in CC and I can't make the tender to be recoloured correctly
The steamer gets colour correctly (according var F2), while the tender stays in CC and does not want to change
https://dev.openttdcoop.org/projects/xu ... eam/s.pnml
lines 23-25
I try to code the steamer in CC and I can't make the tender to be recoloured correctly
The steamer gets colour correctly (according var F2), while the tender stays in CC and does not want to change
https://dev.openttdcoop.org/projects/xu ... eam/s.pnml
lines 23-25
Re: Problem using var F2 in CB 2D
You are using livery overrides, so you are likely running into #5246.
Try addingto
Try adding
Code: Select all
colour_mapping: return CB_FAILED;
Code: Select all
item (FEAT_TRAINS, unitb)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- George
- Tycoon
- Posts: 4362
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Problem using var F2 in CB 2D
Did not helpfrosch wrote:You are using livery overrides, so you are likely running into #5246.
Try adding
https://dev.openttdcoop.org/projects/xu ... 1a43ba138c
Re: Problem using var F2 in CB 2D
I don't know NML very well, but why is the offset -2 rather than -1?
- George
- Tycoon
- Posts: 4362
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Problem using var F2 in CB 2D
Because the steamer (and tender) consists of 2 parts each. That happens because many of them are more than 32px long and I use the same template (4 part ARV) for every steamer with tender. For this one 6+1+4+1PikkaBird wrote:I don't know NML very well, but why is the offset -2 rather than -1?
Re: Problem using var F2 in CB 2D
Your GRF works for me.
The tender matches the colour of the engine for all 4 refits.
The tender matches the colour of the engine for all 4 refits.
- Attachments
-
- xussr73655.png (17.64 KiB) Viewed 1843 times
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- George
- Tycoon
- Posts: 4362
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Problem using var F2 in CB 2D
I had not the latest version of NMLC. I've updated it and now it works. Thank you!frosch wrote:Your GRF works for me.
The tender matches the colour of the engine for all 4 refits.
Who is online
Users browsing this forum: No registered users and 6 guests