News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

[10.18] Large numbers in the depot/replace window appear negative in Linux

Started by jamespetts, December 28, 2012, 12:27:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

Running Simutrans-Experimental 10.18 on my Linux machine at home, I notice that more expensive items in the depot show a very large negative number instead of their true cost, although, on purchasing them, the correct amount is deducted from the player's account. This looks to be a GUI issue, which I shall have to investigate when I get time.

Edit: I wonder whether this commit made a difference...? Incidentally, does anyone else run Simutrans-Experimental on Linux so that, when I get back home to my Windows computer and can fix it, people can test whether my fix has worked?
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.

wlindley

James -- I run Experimental on linux 64-bit (Fedora) and had noticed that too... Will be glad to test.

jamespetts

Thank you, that is very kind. Are you able to compile from source?
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.

dannyman

I have just compiled on Linux.  Looking forward to trying out the latest. :)

jamespetts

W. Lindley - can I check first of all to see whether this problem is just in the translation texts? I am back home now, and cannot test on a Linux machine. Can you check that you have the latest version of en.tab, and that it contains the following line:


LOCO_INFO_EXT
%s\nCost: %s\nMaint.: %1.2f$/km, %1.2f$/month\nPower: %dkW, %dkN\nTop Speed: %dkm/h\nWeight: %dt\nMax. brake force: %dkN\nRolling resistance: %fN\n


and see whether the problem still occurs? The cost should be a string value, so if the translation interprets it as a number, this will be wrong.
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.

wlindley

Aha!  Changing %d to %s corrected the problem: Costs are now reported correctly!

jamespetts

Excellent! I shall consider this issue closed. Thank you for testing.
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.