- Make ctrl-click reversing of train vehicles set var C8
- Toggle bit 1 of var FF when train reverses

Moderator: OpenTTD Developers
Code: Select all
static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available)
I don't know the difference, and I don't know that any grf author does, so just pick one (we check both easily enough).stevenh wrote:Var C8 goes to 0xFE 'or' 0xFF?
http://wiki.ttdpatch.net/tiki-index.php ... _FE_and_FF_And then where is bit 1.. .of Var 0xFF... *goes back to the searching*
I´m using it (still) in DBXL 0.82 (VT08, VT11.5, ICE-TD, E95, E94, ICE-1: don´t know if it works correct in OTTD, though).PikkaBird wrote:I don't know the difference, and I don't know that any grf author does [...]
Code: Select all
02 00 03 81 C8 00 FF 01
00 00 00 FD // forward
01 00 // backward
Yes, I use it extensively (and it doesn't work in OTTD at the moment). What I meant by not knowing the difference is that I always return the same value for FE and FF, as you do.michael blunck wrote:I´m using it
I'm checking it, although it would have been peter_1138's expertise field.stevenh wrote:To get the proper value returning to you, but I'm not so sure... Anyone of NewGRF knowledge in OTTD willing to lend a hand?
House overrides are working perfectly with ttrs3 in r11290 for me - please could you post a sample of the NFO that isn't working?PikkaBird wrote:Also, I has another one, a bit more up Belugas' street: Using a custom house grf, I'm noticing that supposedly-overridden default houses are still appearing. Is house property 15 not functional?
PikkaBird wrote:Bit 0 rather than bit 1, sorry.
belugas, once Pikka had said FF and bit zero I'd realised how I was affecting the lower 8 bits of FE and not FF... my update this morning would've changed the '1' to an '8'... so... Thanksbelugas wrote:i think it really should be bit 8, since it affects the modflags uint16.
Well they're just action 0 properties, so there's no fancy NFO.Maedhros wrote:please could you post a sample of the NFO that isn't working?
Those are actually DC generic texts, rather than feature texts, so the feature byte used doesn't really matter.belugas wrote:should not they be 04 07 instead of 04 09? From what i read, you do not define industry tiles text, plus, there is no Action 04 of feature 09
The override is in sprite 111. I should actually move it to a different building altogether - my church is a four-tile building, and that causes problems if the grf is deactivated. But that's not the problem here, because it happens with all the other buildings too. I just chose the churches as an example because the small default churches stand out.belugas wrote:[edit] : I'm not sure of what i see, but i THINK you defined the chruches in sprite 112. And i see no override in this pseudo-sprite [/edit]
Ok. If Belugas doesn't get there first, I'll take a look at it tomorrow.PikkaBird wrote:Well they're just action 0 properties, so there's no fancy NFO.
The grf in question is this one. It should override all the default temperate buildings, but I'm still seeing the originals in OTTD (the little churches, for example).
Why didn't you used 04 48 then? It actually works, when looking at the sources, tough. It just go in the "default unspecified catch all basket". But is' just... strange lookingPikkaBird wrote:Those are actually DC generic texts, rather than feature texts, so the feature byte used doesn't really matter.
That does not make sens to me, I'm sorry to say so. You have a substitute and an override of house 03 on 111. Then, on 112, you substitute 3 times the house 0C, 0D, 0E. It's like... i'm scratching my head...PikkaBird wrote:The override is in sprite 111. I should actually move it to a different building altogether - my church is a four-tile building, and that causes problems if the grf is deactivated.
Yes it does. For non-48-features, the text is only loaded if the corresponding new* switch is turned on.PikkaBird wrote:Those are actually DC generic texts, rather than feature texts, so the feature byte used doesn't really matter.belugas wrote:should not they be 04 07 instead of 04 09? From what i read, you do not define industry tiles text, plus, there is no Action 04 of feature 09
I am aware of that, and I didn't say it had no effect. Just that it doesn't bother me enough to fix it yet (the grf is not officially released).DaleStan wrote:Yes it does. For non-48-features, the text is only loaded if the corresponding new* switch is turned on.
Users browsing this forum: No registered users and 2 guests