I found a problem what in my opinion is a bug, bit it only appears when modding so I posted it here.
I tried to change the prices for all the wares, and I found out, that the maximum allowed Prices for XL ships is around 30 mil and for L, at least destroyers 56 mill. If a higher price is given then I get money for buying a ship. It feels like 1980, when overflows where not tested. I do not know, why are there so many decimals in a money system, without decimals. A 32 bit variable, what is small for 2019 should able to handle upt to 2 billion .
If this is mention anywhere then I did not found it.
Is there any chance of getting rid of this problem?
Edit: I tested this for an M Frigate, there I can easily reach the 100 mil per Ship. I guess I can increase the price for fighters up to 200 mil. I really do not know, why the sice is part of the price variable...
Code included, in case of I did something wrong.
Code: Select all
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_a']/price/@min">50000000</replace>
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_a']/price/@average">50000000</replace>
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_a']/price/@max">50000000</replace>
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_b']/price/@min">60000000</replace>
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_b']/price/@average">60000000</replace>
<replace sel="/wares/ware[@id='ship_arg_l_destroyer_01_b']/price/@max">60000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_a']/price/@min">100000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_a']/price/@average">100000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_a']/price/@max">100000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_b']/price/@min">90000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_b']/price/@average">90000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_builder_01_b']/price/@max">90000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_a']/price/@min">110000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_a']/price/@average">110000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_a']/price/@max">110000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_b']/price/@min">67000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_b']/price/@average">67000000</replace>
<replace sel="/wares/ware[@id='ship_arg_xl_carrier_01_b']/price/@max">67000000</replace>