• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Fixed Selling cannons first gives more money

Can someone test this for some ships and let me know?
 
Wha? The actual sale prices goes up after selling the cannons???
That really makes zero sense.
 
Tested it with the latest version.
Ship price WITH cannons: seadogs2_0000.jpg :unsure
After selling them cannons, seadogs2_0001.jpg :oops:
Ship price with NO cannons: seadogs2_0002.jpg :confused:

@ContraProductive is right. :facepalm
*No error.log generated. :shrug
 

Attachments

  • compile.log
    2.6 KB · Views: 84
  • system.log
    2.2 KB · Views: 95
Looking at the code but some weird things happen and I need to sleep now too.
Could someone maybe test the following for me:

Try selling a ship with cargo
and selling the cargo first at the shop and then sell the ship
and see what difference this makes
My guess is it has the same problem as the canons
 
Ship price with cargo: 1.jpg 2.jpg
After selling or discarding cargo: 3.jpg 4.jpg
Ship price with no cargo: 0.jpg(selling) 5.jpg(discarding)

*Not the same problem with the cannons. :facepalm
 

Attachments

  • compile.log
    2.7 KB · Views: 84
  • system.log
    2.4 KB · Views: 86
https://www.dropbox.com/s/hy6zz8hn28m409d/shipyard.c?dl=0

please try this file (had to upload it like this cause the network I'm on blocks uploading to this site). place it in PROGRAM/INTERFACE
let me know if this fixes the problem or even works at all cause I couldn't test it here.

@DavyJack you probally have a savegame there which you can use to test this really quick ;).
 
Could it be in this file the problem hides.The more expensive cannons I install , the cheaper the
sale price will be. Also I can only confirm the sale transaction with the buy button?
I have chanced the attached file to: Program/Interface/cannons
 

Attachments

  • cannons.c
    57.1 KB · Views: 101
Last edited:
I have chanced the attached file to PROGRAM/INTERFACE/cannons.
 
What did you change in the file?
I cant really imagine the problem being in that file....
 
I haven`t chanced anything, I just want you to have a look into it. There is a lot of stuff about selling
and buying cannons in that file.
 
"
Selling cannons first gives more money
_______________________________________________"

Because Cannons with experience , a degree from university and years of hands on work experience are worth ALOT more money.

xD

Exchanging the cannons for new work experience scrub cannons is like selling to a pawn shop , you're gonna get screwed.
 
Fixes:
- When selling cannons ship price changes accordingly
- Buy price of a ship is now shown correcly in the interface, so the sellprice is already substracted.
- Bug in cannons.c which could cause some errors at some ports
 

Attachments

  • SHIPYARD_FIX.zip
    31.6 KB · Views: 101
Back
Top