Page 1 of 1

Change string via Action4 Feature 48

Posted: 11 Mar 2021 14:55
by sky81
I'm trying to change the string : First bus arriaved to .... into: First trolley bus arraive to.... with Action 4 feature 48
I'm doying something like this but is not working:
* 76 04 48 FF 81 09 2F 90 98 0F "Citizens celebrate . . ." 0D
0D "First passenger trolleybus arrives "
"at " 80 21 00

This is action 4 help:
<Sprite-number> * <Length> 04 <feature> <language-id> <num-ent> <offset> <text>

My grf has id 7, so I need to set 81 not 01 right? Anyway, is not working either with 01 nor 81

Thanks

Re: Change string via Action4 Feature 48

Posted: 11 Mar 2021 17:24
by michael blunck
OTTD does not support changing original strings using feature '48'.

regards
Michael

Re: Change string via Action4 Feature 48

Posted: 11 Mar 2021 18:35
by sky81
I understand. Then, is there a way to achieve what I want, that is: when a trolleybus is coming first time into a station to change the message?

Thanks

Re: Change string via Action4 Feature 48

Posted: 11 Mar 2021 19:07
by michael blunck
Not that I know of.

The wiki says:
Note: OpenTTD's string system is very different to the system of TTD and TTDPatch. It supports/requires plural forms, genders, cases and different number formattings, so complex strings which are combined from multiple parts are not interchangeable. Various strings also have changed their parameter order over time or got additional arguments.

As such action 4 is not allowed to change any original strings in OpenTTD; translations are not done via NewGRF, but only via the WebTranslator
regards
Michael

Re: Change string via Action4 Feature 48

Posted: 12 Mar 2021 12:00
by Eddi
there's a handful of original TTD strings that are mapped to openttd strings in a way that allows action4 to modify them. but these are hand-picked.

this mapping can be found here