News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[add-on] Assign dedicated symbols to special goods

Started by RESTRICTED ACCOUNT, June 21, 2019, 04:41:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RESTRICTED ACCOUNT

I was thinking of a way to make special freight have individual symbols, but I realized that the simplest solution is to categorize special freight into a new category.
This change does not affect the game as it only switches categories.






The problem is that since the category name and the goods name are the same, duplicate displays can be seen in the factory dialog.  ::(

cars!

However, if you don't mind this, you can change the special goods symbol by downloading the add-on from this post and putting it in the addons folder.  ;)


The source is here.
https://github.com/Ranran-the-JuicyPork/simutrans-pak128.britain/tree/special-goods-symbol


CATEGORY_08
live fish
CATEGORY_09
livestock
CATEGORY_10
cars

If you want to play in languages other than English you need to translate these.

jamespetts

Thank you for this suggestion. In this instance, I think that it is preferable not to cease to use the special freight category: it is a useful residual category, and it is preferable not to treat unique types as if they were a member of a more general type as is inherent in treating them as part of a category, not least because of the reason given here, viz. the repetition of the name, which is inevitable in this context.
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.

RESTRICTED ACCOUNT

The introduction of this was provided as an add-on to leave it to the player's own discretion.
You can switch the display at any time by switching between loading and unloading the addons folder. It would be very easy if you could use a toggle button like standard in Windows.

Vladki

Wouldn't it be better to have the symbol for special (or any) goods as an attribute in goods.pak? With some defaults for each category that can be overriden by obj=good?

RESTRICTED ACCOUNT

#4
I tried to register the image in goods.pak before, but I did not know how to load the registered image.  ::'(
https://github.com/Ranran-the-JuicyPork/simutrans-extended/commits/goods-category-write-catg0-image
So the size of the file has grown but I don't know if I could register it correctly. (´・ω・`)
And Ranran gave it up.  :-[