News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

PR#624: More specific messages for industry

Started by Matthew, August 23, 2023, 09:22:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Matthew

When a Factory opens, closes or changes its contracts, Simutrans-Extended posts a message. But only the chain extension messages mention the location of the industry. In other cases, you don't know whether or not that Factory is near your network, so you have to check every such message. On a large map, there can be dozens of messages just for one month and checking every one isn't particularly fun  :::) :


PR#624 is a small patch that adds locations to more of the industrial messages. If an industry is inside a city, it will state that:


And if not, then it will use the nearest city:


If it can't find any cities then it will fall back to the existing messages.

Following the practice of other recent patches, I have added the new strings (but not the fallback ones) to text/en.tab.

I have tested it in English by running single player for several months in different decades and using it as a client in an online game.

I now have a SimuTranslator login, but I couldn't find a tutorial explaining how to add strings so that they are available for translation ("base texts"?). I guess from an old thread that I should just add a new .dat file to the root of the repo in the same format as the others. Is that correct?

(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。


Matthew

#2
Quote from: makie on August 31, 2023, 08:28:19 AM@Matthew
Please retry

Thank you Makie! You have given me the permission that I needed.

James, the new strings have now been uploaded into SimuTranslator. The base texts file has now been removed from the PR.
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

jamespetts

Excellent, thank you: now incorporated.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.