• 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!

Search results

  1. T

    Drastically reduce chance of Pirate encounter in friendly ports

    @Pieter Boelen please ignore my earlier question, I am now fairly confident the below part of the code counts the AI character in question's own ship. if(rel == RELATION_FRIEND) { chr = GetCharacter(idx); tstr2 = 0; power += sqrt(GetCurrentShipHP(&chr) * GetCannonCurQuantity(&chr)) / (1.0 +...
  2. T

    Drastically reduce chance of Pirate encounter in friendly ports

    @Pieter Boelen For reference for our earlier discussions on this and Sea AI, here are the functions that control this (the findnearships they use seems to include forts, and tests in game have coastal raiders running from forts, at least in my early tests): Really shocking this wonderful...
  3. T

    Needs Testing Intelligent AI retreats and surrenders

    Since the above is long, I'll provide a quick and simple summary here. Surrender changes: Before, if morale was above a threshold determined by AI captain leadership, no surrender was possible. Conceptually, surrender was something the crew always forced on an unwilling captain, no captain...
  4. T

    Loan shark interest rates

    Here's the most moderate version of the proposed fixes: nothing altered except player investment interest rate, which is set to the 1% per month/12% a year value. Virtue of fixing the worst problem while not changing almost anything, so very safe at least. But if @Talisman or someone else...
  5. T

    Drastically reduce chance of Pirate encounter in friendly ports

    @Levis Was working with the surrender code, and stumbled across a way to fix this bug as well. So no need to wait for B15, it seems like it is an easy fix.:D I have the AI do a powerratio check, and run if overwhelmingly outmatched and have good sails. As a consequence, they run if they spawn...
  6. T

    Needs Testing Intelligent AI retreats and surrenders

    UPDATED Oct 18, partial changelog - Very old bug with flagship surrenders causing fleets to go neutral should be (hopefully) fixed - Levis's idea of a progression of strength for effects on surrender chances implemented in a progression of powers raising to 0.625, then 0.5, then 0.4 as a given...
  7. T

    Fixed Shipyard ship replacement- cargo price given as deduction but cargo retained

    Maybe something is wrong with the skip cargo functionality. Either way, when replacing your ship with a new one, you certainly do get the cargo discount and keep the cargo. By repeatedly swapping ships at the shipyard by clicking buy buy buy between two cheap ships over and over again, you can...
  8. T

    Fixed Shipyard upgrades not factored into sale price

    Oh, thanks @Pieter Boelen that makes sense In thst case maybe I can answer @Levis question now, in that I have seen that code for minimum price get executed (a demasted 10% hull ship I sold, but I ran the tests on the upgrade price with fully repaired ships thst were not having thst code...
  9. T

    Fixed Shipyard ship replacement- cargo price given as deduction but cargo retained

    @Levis it does seem to work fine and is executed for selling a ship normally, but if you buy a replacement ship and sell your own in one action, you get the cargo value as a discount plus you keep the goods as they appear automatically in the new ship's cargo hold. You can axtually keep...
  10. T

    Fixed Shipyard upgrades not factored into sale price

    I'd be happy to check, but could you explain what "goes into" means? I'm afraid my coding ignorance is still fairly substantial, and I'm not sure what that means. Also, when you say put the trace "between the if", does than mean put it inside the {}? I can probably find some time next week to...
  11. T

    Fixed Shipyard ship replacement- cargo price given as deduction but cargo retained

    I think the cargo sale addition code is after the prize ship reduction (perhaps it was moved), so the player will still get 100% of the cargo profit even if they voluntarilly enforce that rule, rather than the proper prize ship percentage. Makes sense given the player can just bypass it anyway...
  12. T

    Fixed Shipyard ship replacement- cargo price given as deduction but cargo retained

    Yes, it checks store price from what the code looks like. I think it is indeed the convenince factor, combined with not wanting to punish a player who forgets to first sell the cargo. Can perhaps understand it as ordering the quatermaster to run to the local store to sell all goods prior to the...
  13. T

    Fix in Progress Demasted AI and retreat order

    Yesterday I had a day long break and could finally play a bit, and I figured out how easy it is to demast enemy ships with manually aimed cannonballs. Very fun. However, the problem arises in how the demasted AI behaves. The AIship file will tell a wounded AI to retreat, and there is no check...
  14. T

    Fixed Shipyard upgrades not factored into sale price

    Not sure Pieter, but I checked and it looks very similar to the code that is applied to increase the sale price of upgraded ships, which does work (they are more expensive when you purchase them, just not when you sell them). Maybe there is some subtle difference between how they are written...
  15. T

    Fixed Shipyard upgrades not factored into sale price

    The code for increasing the purchase price of a ship with upgrades seems to work fine, but if the player applies an upgrade to his ship, the sale price he gets does not seem to go up at all. At least, in multiple tests applying and removing upgrades, I did not see any difference. Tested with...
  16. T

    Unconfirmed Bug Brigantine and brig stats

    Going to have to sign off in a moment, I'm fine with whatever people decide on these issues. Want to make sure this note I left above doesn't get lost in the flurry of discussion, because it is one related area that could really use some changes: ----- A lot of ships (some frigates, barks...
  17. T

    Unconfirmed Bug Brigantine and brig stats

    Here are my thoughts by issue: 1) possible cargo capacity increase to tier 5 brigs and brigantine. The Piratbrig50 you mention is the lone exception, other than the brigs and it being set at 1000, every single tier 5 ship, including combat ships ranging from frigates to sloops of war to heavy...
  18. T

    Fixed Shipyard ship replacement- cargo price given as deduction but cargo retained

    When you sell a ship, the cargo price is included in sale price, which is of course correct. Things go wrong though if you are replacing the ship (ie, buying a new ship at the same time). You get paid for the cargo, but you still keep the cargo. Bug is easy enough to see in action, if you...
  19. T

    Unconfirmed Bug Brigantine and brig stats

    Sure, if there were any other differences between them, or there was a coherent choice to make the generic brig different than the RN and US models, but a review of the ships_init file indicates that my suspicion was correct--When the rebalancing of realistic ship stats was done, it appears that...
  20. T

    Unconfirmed Bug Brigantine and brig stats

    One final thing I noticed: A lot of ships (some frigates, barks, sloops of war, and brigs) all have this exact same entry for their sailing characteristics: // Brigs were difficult to sail upwind refShip.ClosestPoint = 0.295; refShip.BestPoint = 0.9; It looks like the brig was used as a...
Back
Top