The International Simutrans Forum

 

Author Topic: [add-on] Assign dedicated symbols to special goods  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran jp

  • *
  • Posts: 471
  • Languages: ja
[add-on] Assign dedicated symbols to special goods
« on: June 21, 2019, 04:41:05 PM »
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

Code: [Select]
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.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18683
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [add-on] Assign dedicated symbols to special goods
« Reply #1 on: June 22, 2019, 12:34:55 PM »
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.

Offline Ranran jp

  • *
  • Posts: 471
  • Languages: ja
Re: [add-on] Assign dedicated symbols to special goods
« Reply #2 on: June 26, 2019, 12:14:01 PM »
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.

Offline Vladki cz

  • Devotee
  • *
  • Posts: 2676
    • My addons, mostly roadsigns
  • Languages: EN, CS
Re: [add-on] Assign dedicated symbols to special goods
« Reply #3 on: June 26, 2019, 06:21:30 PM »
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?

Offline Ranran jp

  • *
  • Posts: 471
  • Languages: ja
Re: [add-on] Assign dedicated symbols to special goods
« Reply #4 on: June 29, 2019, 04:51:59 PM »
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.  :-[
« Last Edit: June 29, 2019, 05:14:43 PM by Ranran »