The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: jomoyama on February 16, 2017, 06:04:17 AM

Title: Behavior of road cost
Post by: jomoyama on February 16, 2017, 06:04:17 AM
It seems that some expencive roads give player money when player lay roads.
(http://dl1.getuploader.com/g/j0m0yama/42/report1.png)

I use Extended and pak128.britain-ex-nightly.tar.gz of 16.2.2017 http://bridgewater-brunel.me.uk/downloads/nightly/windows/ 

Additional notes:
Sorry, I noticed that these paks work normally in new game,except only a road pak I compiled.
This is only when I loaded old demo game.
Title: Re: Behavior of road cost
Post by: jamespetts on February 16, 2017, 08:46:50 AM
Can I  clarify: you can only reproduce this when you compiled your own pakset and used this pakset to load the demo game?
Title: Re: Behavior of road cost
Post by: jomoyama on February 17, 2017, 05:26:33 AM
Thank you for your reply.

Now I only know that
・when the demo game of pak128.britain, (it is wrong that I wrote "old", the demo is included in latest pak128.britain) loaded, the road cost was wrong value.
・in the new game, 128.britain's roads works normally, but the road that I compiled (cost=5000.00¢ in game) didn't work normally(wrong cost value).

・in my environment based on pak128.Japan, the road(cost=655.35¢) seems to be working properly, but the road(5000.00¢) doesn't work.

・when I opened the paks by binary editor, each paks have their own correct cost value.

I uploaded on google drive
https://drive.google.com/open?id=0By6OmsbfL5FmTklCdVhYT1UxUlE
Title: Re: Behavior of road cost
Post by: jamespetts on February 17, 2017, 01:45:51 PM
I am not sure what you mean by "the road I compiled road" - can you elaborate? Do you mean that this is an object that you have created yourself using .dat and .png files and makeobj? If so, are you sure that you are using the correct version of makeobj?
Title: Re: Behavior of road cost
Post by: jomoyama on February 18, 2017, 12:13:39 AM
Yes, I used makeobj-extended of 16/2/2017, but this phenomenon was confirmed in other previous versions (not so old, I noticed in early or mid January at the latest) of "experimental" and "makeobj-ex".

Sorry for my poor English.
Title: Re: Behavior of road cost
Post by: jamespetts on February 18, 2017, 01:25:01 AM
Can you upload the .dat and .png files that you used to compile the road so that I can test with my version of Makeobj? I should be most grateful.
Title: Re: Behavior of road cost
Post by: jomoyama on February 18, 2017, 02:27:21 AM
I uploaded here.
http://ux.getuploader.com/j0m0yama/download/43/road_test.zip
Title: Re: Behavior of road cost
Post by: jamespetts on February 18, 2017, 02:07:38 PM
I am afraid that I cannot reproduce this using your .dat and .png files and compiling the pakset locally. Do you get the same behaviour when you compile any other .dat files (for example, those from Pak128.Britain-Ex) using that version of Makeobj?

Edit: Actually, I have now found the problem, which is with the code for the main executable, not makeobj or the .dat files. Sorry that you have had trouble; this should be fixed in the next nightly build.
Title: Re: Behavior of road cost
Post by: jomoyama on February 18, 2017, 03:44:32 PM
Thank you !!