1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Confirmed Bug shipyard cannon can make infinte money

Discussion in 'Build Mod Bug Tracker' started by Johanno, Jan 15, 2017.

  1. Johanno

    Johanno Sailor Apprentice Storm Modder

    Joined:
    Jun 11, 2016
    Messages:
    71
    Gender:
    Male
    i've found a bug, when you upgrade you cannons of the ship to 9lbs and change selection and select back you can sell one gun, and if you select something else and go back you can sell another gun and so on

    steps to reproduce from savegame:
    • talk to shipyard owner
    • go to cannons
    • select the 9lbs
    • select caravela redona(the ship)
    • now you can install all and sell one gun
    • select another gun or the other ship
    • select back and now you can sell another gun
     

    Attached Files:

  2. Johanno

    Johanno Sailor Apprentice Storm Modder

    Joined:
    Jun 11, 2016
    Messages:
    71
    Gender:
    Male
    i don't know if this bug is related, could be if the bug is related to the ship model.
    but if you select caravela redona and go to repair, you can click repair even if its fully repaired and then you get a weird screen, where you can also see negative costs, but you cant click anything
     
  3. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    637
    Gender:
    Male
    Yep it is the ship model stats that are screwed up. That model should only have 10 cannons 4 each side and two at the stern. Yours has 11 with a bonus one at the front.

    What the cannon interface is doing on "install all" is making sure you have the 4, 4 and 2 and charging for any added but in your case giving you the -1770 it works out (because it sees the extra one because each arc is counted anyway I guess and gives you the "minus" money for the one you don't need) but doesn't touch the front -- because it thinks there can be nothing there - it just fills the arcs as should have happened at the initiation of the ship in the game and the init file says there are 0 at the front. So the extra one remains so you can do the trick ad nauseum.

    I guess I could put a check in the install all to wipe any in arcs that shouldn't be there but that doesn't answer the question of how your model got screwed. A dump of the ship attributes shows no max fireddistance nor charge ratio for that front cannon so I don't think it is at all functional.

    The screwed repair interface is just showing its interpretation of the same thing ie to get your vessel to perfect repair it needs to give you -1770 - and that sends it a bit crazy too - when hull and sails are 100%.

    To solve your situation just click the cannon interface and the right hand option of install/remove and remove the front one (reduce the arc to 0 and then buy) - you will get a smaller sum and once that front cannon is gone that clears your ship for normal behaviour - you can't put it back. The wider issue of how it got in that state remains.
     
    Last edited: Jan 15, 2017
    Johanno likes this.
  4. Johanno

    Johanno Sailor Apprentice Storm Modder

    Joined:
    Jun 11, 2016
    Messages:
    71
    Gender:
    Male
    Maybe it's in the boarding interface (that one, that appears after successfully boarding a ship).
    Because i think i can remember to be able to select the front guns there.
    I'll test that next time.
     
  5. N3X4R

    N3X4R Landlubber

    Joined:
    Feb 12, 2017
    Messages:
    5
    Gender:
    Male
    hope they can fix it im also having same issue
     
  6. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    637
    Gender:
    Male
    @N3X4R If you can zip up a savegame I'll take a look at the detail of your variant of the issue. If it is similar to the earlier report the question will be why, when and how did extra cannons appear. So do you have any idea what you had just done when you first saw the issue? I'm not a fan of just tweaking the interface to remove a problem I don't know how and where it is occurring (but I would consider it if that is the best option for a resolution).
     
  7. N3X4R

    N3X4R Landlubber

    Joined:
    Feb 12, 2017
    Messages:
    5
    Gender:
    Male
    thanks for the respond,

    its just happened after losing guns during sea battles. I'm using 1st rate Dauntless in free play,when i try to repair the ship, hull and sail is at 100% the guns still at 51 left arc and 49 right arc, then when I try to add guns at "Cannon" option i cant add but i can only remove. And when i try to change calibers it is still the same clicking "buy" and "cancel" and then click "Install all" sometimes my money go up or reduced. I uploaded some picture, there you can see how the money goes up.
     

    Attached Files:

  8. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    637
    Gender:
    Male
    @N3X4R As I suspected there is a mismatch in the cannon stats for the ship. For some reason the game currently thinks your version of the Endeavour should only have 49 guns in left and right arcs. If you choose install/remove and take two from the left arc it should settle down but at the slightly reduced broadside capacity.

    RestCannons (pchar); executed in console also reverts the ship to 49 so it is definitely the underlying ship stats that are the culprit in this case.

    At this point I have no idea how or where this occurred - the Endeavour as given to Cutler Beckett clearly starts with the full 52 per arc. I will take a look for anything obvious in the code but doubt if it will become clear anytime soon.
     
    Pieter Boelen likes this.
  9. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,562
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    @N3X4R: Could you let us know how you acquired that ship?
    And if you ever did any upgrades on her and where/how?
     
  10. N3X4R

    N3X4R Landlubber

    Joined:
    Feb 12, 2017
    Messages:
    5
    Gender:
    Male
    I start new game using the "Free Play" mode then I select "Cutler Beckett" as my character, then "HMS Dauntless" for the ship. Same as I choose "Blackbeard" and his ship "Queen Anne's Revenge", i think those money increase cause by "we lost cannon at arc" "i think we can fix it" during ship battle. I cant add guns on the ship yard. Does my Vanilla Retail Version of POTC mess the game??.
     
  11. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    637
    Gender:
    Male
    OK you swapped ship version at game start - the Dauntless does have less guns (the 102 giving 49 in each arc plus 2 each bow and stern) - so that's a relief. Looks like I need to look at that cannon fix routine.
     
  12. N3X4R

    N3X4R Landlubber

    Joined:
    Feb 12, 2017
    Messages:
    5
    Gender:
    Male
    Nice, keep up the good work. ^^
     
  13. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,562
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    That does sound plausible; maybe something is going wrong in that code.

    Not likely. :no
     
  14. N3X4R

    N3X4R Landlubber

    Joined:
    Feb 12, 2017
    Messages:
    5
    Gender:
    Male
    I thought it was. lol
     

Share This Page