The International Simutrans Forum

 

Author Topic: More graphical symbols!  (Read 3317 times)

0 Members and 1 Guest are viewing this topic.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9569
  • Languages: De,EN,JP
Re: More graphical symbols!
« Reply #35 on: March 26, 2019, 01:51:18 PM »
zlib shoudl be used for experiment as well, and bz2. So in principle same libraries (the only change is the threading model). But Standard is usually compiler for 32bit, so there may be a missing 32bit develop version. So you have to set the target to 64 bit in the project file, if you use MSVC.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #36 on: May 01, 2019, 02:14:20 AM »
Thank you for your advice. However, I can not solve the problem.  :-[
I regret to inform you, I declare the goods category symbol patch virtually abandoned.
Anyone who wants to complete this patch can take over. Sorry for my lack of skills.

Thank you. (´・ω・`)

EDIT:
Correspondence to extended other than the category 0 individual icon may have been completed.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: More graphical symbols!
« Reply #37 on: May 13, 2019, 11:20:41 PM »
I am sorry that you have not been able to fix the problems with this. Do I understand correctly that the problem was that you were unable to compile Simutrans-Standard and therefore test your new code with this?

These changes would still be useful for Extended even if they cannot be incorporated into Standard.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #38 on: June 05, 2019, 12:14:37 PM »
Quote
Do I understand correctly that the problem was that you were unable to compile Simutrans-Standard and therefore test your new code with this?
Yes. I thought that the cause was a difference such as the library version, but I could not identify the cause. (I added some missing libraries.) (´・ω・`)

I think that the problem may be solved when the difference with the standard gets smaller, so I may try again in a few years.
If you are interested in implementing this, it will help if you implement it.

(´・ω・`)少なくとも数年先までらんらんがstandard用のパッチを作ることはないので、もしこの機能に興味がある人はstandard用のパッチを作ってみて?



Since I thought that the goods category symbol could be useful in the formation picture, I went ahead with this work.
(The above image will be included in the formation picture patch.)

I completed the implementation this to the depot window and goods list. You can test this.
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/goods-category-symbols

Special goods can use a shared symbol.
The symbol for special goods can be prepared by the pakset author, but the sample for testing uses a brown pile that you are familiar with.

Put symbol.GoodsCategories.pak in the pakset folder to display the symbols.  :idea: You can download it from this post.

The sample symbol images and dat are here:
https://github.com/Ranran-the-JuicyPork/simutrans-pak128.britain/tree/master/gui/gui64
« Last Edit: June 05, 2019, 04:02:42 PM by Ranran »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: More graphical symbols!
« Reply #39 on: June 06, 2019, 08:07:10 AM »
Can I ask: is this intended to be applied over the couple constraint branch or on its own?

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #40 on: June 06, 2019, 09:30:22 AM »
It is intended to be implemented alone before the couple constraint branch.
Even alone brings improvement to the depot window and goods list.
Use this feature to place a new goods category symbol in the formation picture.
« Last Edit: June 06, 2019, 09:41:09 AM by Ranran »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: More graphical symbols!
« Reply #41 on: June 08, 2019, 02:19:38 PM »
Thank you very much for your work on this. I have now had a chance to test this.

One anomaly that I notice is that, in the depot window, for special goods, in the lower part of the depot window, the type of special goods will be displayed with the capacity (e.g. "7 head livestock"), whereas in the new upper display, we get "7 head Special Freight", which is not correct (and does not make sense). Really, in this upper display, each type of special freight should be separated.

However, apart from that, this is a happy advance and does make things clearer. Thank you for your work on this.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #42 on: June 10, 2019, 03:59:02 AM »
One anomaly that I notice is that, in the depot window, for special goods, in the lower part of the depot window, the type of special goods will be displayed with the capacity (e.g. "7 head livestock"), whereas in the new upper display, we get "7 head Special Freight", which is not correct (and does not make sense). Really, in this upper display, each type of special freight should be separated.
This is not due to my change, but is a conventional specification.


However, the point is true.
Is it necessary to display the indication of "Special Freight"?
The point is that Autos and livestock appear to be in the same category in the Goods list.




My suggestion is to change goods_desc_t::get_catg_name() to return "Autos" or "livestock" instead of "Special Freight", for example.


« Last Edit: June 10, 2019, 04:42:15 AM by Ranran »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: More graphical symbols!
« Reply #43 on: June 16, 2019, 12:25:41 PM »
Thank you very much for this: I have now incorporated the graphical symbols patch: my apologies for the delay so far. This is a good addition.

As to the "special freight" designation in the goods list, I suspect that the original reasoning behind this is that it is possible to sort things by category in the goods list, and "special freight" is a sort of miscellaneous category, so it is helpful to explain this to the player when sorting by category.

I should be grateful for people's views on the question of whether they would find things easier with the modification as Ranran suggests, or whether it is preferable to retain the current display in the goods list.

Offline Matthew gb

  • *
  • Posts: 227
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: More graphical symbols!
« Reply #44 on: June 17, 2019, 04:43:33 AM »
Thank you very much for this: I have now incorporated the graphical symbols patch: my apologies for the delay so far. This is a good addition.

As to the "special freight" designation in the goods list, I suspect that the original reasoning behind this is that it is possible to sort things by category in the goods list, and "special freight" is a sort of miscellaneous category, so it is helpful to explain this to the player when sorting by category.

I should be grateful for people's views on the question of whether they would find things easier with the modification as Ranran suggests, or whether it is preferable to retain the current display in the goods list.

Thank you for adding the patch, James, and Ranran for making it.

As far as I can see, "Special Freight" is only an internal category that is irrelevant to players. So Ranran's modification seems to be a good idea.

Offline ACarlotti

  • *
  • Posts: 483
Re: More graphical symbols!
« Reply #45 on: June 18, 2019, 11:35:35 PM »
I think the only place where this might not make sense in the code is in gui/factory_edit.cc lines 240 and 254.
Code: [Select]
buf.append( translator::translate("Produktion") );
buf.append("\n");
for (uint i = 0; i < fac_desc->get_product_count(); i++) {
buf.append(" - ");
buf.append( translator::translate(fac_desc->get_product(i)->get_output_type()->get_name()) );
buf.append( " (" );
buf.append( translator::translate(fac_desc->get_product(i)->get_output_type()->get_catg_name()) );
buf.append( ")\n" );
}
buf.append("\n");
This should probably be edited to remove the duplicate name for Special Freight.

There are also a few places where there are some checks for catg 0 which are now redundant. (Search for get_catg_name and you can find them all.)

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #46 on: June 19, 2019, 10:56:19 AM »
Thank you for pointing it out.
I corrected the redundancy.
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/goods-category-symbols (new URL is in the post below)

I will fix convoi_detail_t.cc with another patch. (Because I am already working in convoy formation picture patch.)
« Last Edit: June 19, 2019, 02:15:35 PM by Ranran »

Offline ACarlotti

  • *
  • Posts: 483
Re: More graphical symbols!
« Reply #47 on: June 19, 2019, 01:45:44 PM »
Just a small Git comment: since the previous work has been merged into James' master, I think it would produce cleaner Git history (and potentially easier merges) if you had based this commit on top of the latest master.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #48 on: June 19, 2019, 02:13:59 PM »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: More graphical symbols!
« Reply #49 on: June 22, 2019, 12:31:55 PM »
Thank you - incorporated.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Upgradable symbol
« Reply #50 on: July 09, 2019, 11:18:21 AM »
Hi, forum.

Yeah, as you imagined, I want to add a new symbol. (´・ω・`)
This is a new 3 minutes instant patch based on this patch.


As you know, you can upgrade your vehicle in Simutrans-Extended. ;)
Railroad geeks know in advance from historical facts that the vehicle has a particular upgrade, but normal people own the vehicle and know it only after the upgrade targets appear.  :::)
Hints will be given when displaying "All" vehicles, but it can be difficult to get an answer as to which vehicle it will be upgraded from.

Normally, it should display what the car to be upgrade is upgraded from. Currently it is not possible to know in advance which vehicles in convoy will be upgraded.  ::-\
But I didn't know how to do it. (´・ω・`)
I can not show the relationship between them, but I thought that I could add more hints.  :lightbulb:

Check this out  :arrow:


This patch indicates to players the presence of an upgrade prior to purchase.
Please note that the purple bar currently displayed is the upgrade target. The new icon shows the underlying vehicle.
Pink indicates that it is currently available, and Gray indicates that it can be upgrade in the future.
(The possibilities for the future may be wrong if pakset does not have the correct vehicle - a name is described in upgrade [n] but pakset does not have that vehicle.)


code is here
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/upgradable-symbol



I have not worked on it yet, but this symbol could still be added elsewhere.

Please let me know what you guys think about this.  :lightbulb:

Thank you. :)

(´・ω・`)らんらん♪


EDIT:  You need the attached pak file to display symbols.
EDIT2:  Help text on symbols has been added.
EDIT3: This patch has forked to a new patch.
       Please check here and here.
EDIT4:
The expression "Upgrade is not available yet" is not correct.  It will also be gray if the time of appearance is over. It will help if you can tell the correct expression.  :-[
We also have the option of preparing a dark blue one.
« Last Edit: July 13, 2019, 04:43:19 PM by Ranran »

Offline Phystam jp

  • *
  • Posts: 248
  • Pak256.Ex developer
  • Languages: JP, EN, EO
Re: More graphical symbols!
« Reply #51 on: July 09, 2019, 12:04:33 PM »
Ja, showing simbol for upgradable vehicles looks really good. Acutually our Pak256-Ex does not support livery scheme but upgrade for changing colors.
The feature will help you to decide change colors and functions of vehicles.

Offline Ranran jp

  • *
  • Posts: 483
  • Languages: ja
Re: More graphical symbols!
« Reply #52 on: July 10, 2019, 11:13:05 AM »
Thank you for your thoughts.

Quote
256-Ex does not support livery scheme but upgrade for changing colors
If this is done just to simply change the color variation, it should be noted that upgrade could easily break the game balance as I described here.
The current specification is designed on the assumption that "upgrade" is completely irreversible.
The vehicle's history is reset when you perform the upgrade. In other words, upgraded vehicle is completely :star: new vehicle. You can change a used vehicle to a new one at any time.  ;)
Upgrade costs (e.g. color change costs) may restore the value of the vehicle far from that cost.
If you sell a new car, the entire amount will be returned.

Offline Vladki cz

  • Devotee
  • *
  • Posts: 2716
    • My addons, mostly roadsigns
  • Languages: EN, CS
Re: More graphical symbols!
« Reply #53 on: July 10, 2019, 05:45:22 PM »
This might be interesting to Ves and his pak128.sweden. He made a couchette car upgradeable to seats and vice versa. What should then be the right way to do this? Some sort of cargo holds like on ships?