Change string via Action4 Feature 48

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

Post Reply
sky81
Engineer
Engineer
Posts: 38
Joined: 29 Oct 2019 05:49

Change string via Action4 Feature 48

Post 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
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Change string via Action4 Feature 48

Post by michael blunck »

OTTD does not support changing original strings using feature '48'.

regards
Michael
Image
sky81
Engineer
Engineer
Posts: 38
Joined: 29 Oct 2019 05:49

Re: Change string via Action4 Feature 48

Post 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
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Change string via Action4 Feature 48

Post 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
Image
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Change string via Action4 Feature 48

Post 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
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests