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

Need Help Runtime error visual C++ POTC New Horizons

WilsonRoch

Landlubber
First i must say that i followed all the steps according to the tutorial, i installed the game out of the program files, put the mod parts 1 and 2 in the same folder and ran the .exe and installed the mod in the same folder as the game. But maybe I did something wrong during the installation. (I downloaded part 1 and 2 from ModDB, and then after that I copied and pasted the GreyRoger zip update files).

When I try to open the game (both from engine.exe and config) it just doesn't open (engine storm loads, but when it's about to conclude the laoding and the game start, the error appears)

" Microsoft Visual C ++ Runtime Library

Runtime error!

Program: D:\Games\Pirate\Engine.exe

abnormal program termination"


The game alone works perfectly, but with mod this error occurs.

In the game folder there is a text file called "error" and it says:

"COMPILE ERROR - file: sea_ai \ sea.c; line: 145
function LanguageCloseFile (args: 0) doesnt accept 1 arguments "


I've tried reinstalling the game, downloading the latest (even older) visual c ++, updating directx and framework.net, and nothing worked.
I really want to play the game, but I don't know what to do.
I would be very grateful if someone could help me!
 
Last edited:
Maybe try running as administrator and setting compatibility mode to Windows XP?

That's how I have the game set up and it works on both Windows 7 and Windows 10.

Also, welcome aboard @WilsonRoch!!! :cheers
 
It is good that you mention your stock game works just fine without the mod. Can you provide us with your computer specs tho? What options did you choose during installation? Do you have intel Graphics Card?

Anyway, here's how I'm doing mine and it works every time. If you have about the same specs as I do, just follow this.
1. Here is how my stock game's main directory looks like: Stock Game.png (I have the European Version of the game, the US version is crap -no offense:p-) As you can see, I installed it in Drive D and not C. Try doing this.
2. Now create a separate folder for the MOD files and you can put it beside your stock game like this: Stock and Installer.png Installer.png
3. Now, just run the installer and choose the right destination which is where your ENGINE.exe is located at or the picture from step 1 and NOT the PROGRAM folder.
*please only choose necessary options during installation, if you have widescreen then by all means click on that, if you don't have INTEL Graphics make sure the box is not checked, etc.
4. Now, the fix by @Grey Roger is not automatically included during the installation so you have to extract it manually to the same destination where you have chosen during Step 3.
*you might want to run the game first, to check if it's installed correctly, before extracting the fix.
5. Check if you have the latest version of the game. If it is, the main menu should reflect this date: seadogs2_0002.jpg And your game's main directory folder should look somewhat like this: Game Directory.png

EDIT:
Maybe try running as administrator and setting compatibility mode to Windows XP?

That's how I have the game set up and it works on both Windows 7 and Windows 10...
Yes, do this as well. It might just be this really. Lol
 
Thanks everyone for the answers!

Well i installed the game again with part 1 of the mod that @Grey Roger quoted, and followed all the steps according to the @DavyJack and the error persists. Again, the game itself works perfectly, but when i intall the mod the runtime error appear.

First i thought that the problem could be the the part 1, so i installed the one from this link:
Mod Release - Build 14 Beta [Last Update:2nd September 2019]

But the same thing happens, i already tried to run the engine as administrator and in windows xp compability mode, but nothing changes. I haven't installed the fix from @Grey Roger yet.

The error says the problem is the engine.exe

My specs are:

Windows 8

AMD Radeon C-60 HD Graphics 2.0 GHz

4GB RAM

AMD Graphics Card onboard
 
For the record my game runs in win8 compatibility mode.

That rig is an AMD C60 notebook. The cpu runs in the 1.3-1.6 ghz range and it has 4 gb of slow ram. The 6290 graphics card is truly minimal. Overall it falls below the minimum needed to run the mod.

That said it should still at least TRY to run the mod. In my win10 install I can click on the flag in the lower left -> settings (or control panel) -> apps (install/uninstall) and there I find a bunch of Microsoft Visual C++ files from 2008, 2010, 2012, 2013, and 2017. @WilsonRoch does your system have these files?
 
Apparently the error was very simple ... I was having problems with the XINTERFACE.dll file, I just copied and pasted the mod .dll. After replacing the file, the game ran perfectly.

Thanks everyone for your help! I hope this thread can help others with the same problem. :D
 
Apparently the error was very simple ... I was having problems with the XINTERFACE.dll file, I just copied and pasted the mod .dll. After replacing the file, the game ran perfectly.

Thanks everyone for your help! I hope this thread can help others with the same problem. :D
Whew, that is so weird and a good catch! :onya Now we know a little bit more regarding installation issues with this MOD. I wonder how that happened though. :shrug
 
"COMPILE ERROR - file: sea_ai \ sea.c; line: 145
function LanguageCloseFile (args: 0) doesnt accept 1 arguments "
I haven't seen that error in a LONG time!
Can't remember the cause anymore, but it was definitely caused by something going wrong in the installation process.
 
Whew, that is so weird and a good catch! :onya Now we know a little bit more regarding installation issues with this MOD. I wonder how that happened though. :shrug
I don't know exactly what happened, but I think maybe Windows prevented the installation of the ".dll" file. A strange but simple mistake to solve it.
 
I haven't seen that error in a LONG time!
Can't remember the cause anymore, but it was definitely caused by something going wrong in the installation process.
I looked for some cases like this, and apparently almost all are unique. But apparently, it's either a file that has been corrupted or not installed.
 
I have one more question (however, I don't know if this is the right place to do it). Anyway, I would like to know if there are any beginner guides in the forum? Or maybe some tips for those who want to play in free game mode. I'm currently playing a character with a castaway background, and the beginning is pretty hard (I know it's not recommended for beginners, but I like the idea of starting from scratch and creating my own fortune from scratch). However, I would like to have a better ship than the dinghy, considering that I have no cannons or crew to board, not even money to buy another (I can buy just one tartan), I think perhaps the best solution is to smuggle goods...
 
There are dozens of people who wrote tips & tricks, but with such an overwhelming amount, I'd be surprised if you can find something directly useful.

My own recommendation would be to just play the Standard storyline on default settings to get a feel for what exists in the mod.
Then as soon as you are comfortable, go for that Castaway approach.

But maybe @Grey Roger, @DavyJack and/or @The Nameless Pirate can give you some suggestions specifically for your situation?
 
My own recommendation would be to just play the Standard storyline on default settings to get a feel for what exists in the mod.
Then as soon as you are comfortable, go for that Castaway approach.
That's what I would have also suggested.

However, I would like to have a better ship than the dinghy, considering that I have no cannons or crew to board, not even money to buy another (I can buy just one tartan), I think perhaps the best solution is to smuggle goods...
If you don't mind cheating:
You can have a look in PROGRAM\Ships\Ships_init.c and with the console give your self a different ship with this command:
GiveShip2Character("refShip.Name","name you want your ship to have",-1,nation,true,true);

Replace "refShip.Name" and "name you want your ship to have" depending on what ship you want, KEEP THE QUOTES.
I don't cheat unless I am testing something, but to each his own. :shrug

In your case I would have done what @Pieter Boelen suggested.
 
I have one more question (however, I don't know if this is the right place to do it). Anyway, I would like to know if there are any beginner guides in the forum? Or maybe some tips for those who want to play in free game mode. I'm currently playing a character with a castaway background, and the beginning is pretty hard (I know it's not recommended for beginners, but I like the idea of starting from scratch and creating my own fortune from scratch). However, I would like to have a better ship than the dinghy, considering that I have no cannons or crew to board, not even money to buy another (I can buy just one tartan), I think perhaps the best solution is to smuggle goods...
That is exactly what I did after starting a "Castaway" game. Sidequests can also provide some free money as well as some amusement presumably not intended by the original authors - imagine Vigila Mendes' face when he sees what's going to escort him to Martinique. xD

"Castaway" is a particularly challenging start not recommended for a beginner, though. As @Pieter Boelen says, "Tales of a Sea Hawk" is a good storyline to start with - for that matter, it's a good storyline at any time and I've replayed it often. The other storylines all have their attractions as well.
 
I have one more question (however, I don't know if this is the right place to do it). Anyway, I would like to know if there are any beginner guides in the forum? Or maybe some tips for those who want to play in free game mode. I'm currently playing a character with a castaway background, and the beginning is pretty hard (I know it's not recommended for beginners, but I like the idea of starting from scratch and creating my own fortune from scratch). However, I would like to have a better ship than the dinghy, considering that I have no cannons or crew to board, not even money to buy another (I can buy just one tartan), I think perhaps the best solution is to smuggle goods...
I myself have never tried "Castaway" but if you really like the challenge then here's a couple things I can recommend you doing at first during a free play when you successfully get to a town:
  • You are broke, and are desperate for money for we know that a heavy coin purse is what every unknown and broke sailors need in that age in order to start climbing the ladders of progress. So, start by robbing all the houses smartly. There will be buildings that are unattended. Be streetwise on who you're going to sell things. Sometimes, street vendors offer more on specific items and sometimes the local town shop does.
  • Do simple sidequests as @Grey Roger suggested by talking to random people on the streets, in the tavern especially the owner and local shop owners. Most quests by shop owners require you a better ship which you don't have in the beginning that's why keep asking around and take note on the requirements.
  • Go talk to the governor.
  • Gamble.
  • Go to the jungles and exercise your fencing skills with random scums and loot them.
  • And one quickest way to get money in the beginning is to find the local Banker/Usurer and ask for a loan. All these should now contribute for you to get a better boat.
  • When you eventually get a better boat, hire officers in the tavern, just one or two and have them with you and start exploring the sea. Always try to capture ships when you engage in battle unless otherwise.
  • When things start to get better, go talk to the priests in the local town churches.
  • Know your prices for your goods in local stores and start buying and selling. This is another great way to fill out your purses.
  • And when you have money more than what you need start investing them through local Bankers/Usurers for safe keeping purposes as well but be mindful and you get your money back before your reputation with that nation drops or if you're confident that you're gonna get it back to normal, leave it. The longer it stays, the more profit anyway. I once forgot one of my investments for the longest and when I finally remembered and collected my money, the wait was very much worth it. Interest rates will vary with your current standing in the Caribbean and the nation.
These are just a couple things to keep mind in the beginning and you will discover more along the way. One last tip, SAVE OFTEN -before, during and after you do things and quests. I hope this helps. :beer:
 
  • Do simple sidequests as @Grey Roger suggested by talking to random people on the streets, in the tavern especially the owner and local shop owners. Most quests by shop owners require you a better ship which you don't have in the beginning that's why keep asking around and take note on the requirements.
  • Go talk to the governor.
  • Gamble.
  • Go to the jungles and exercise your fencing skills with random scums and loot them.
Shop owners: don't bother yet, your dinghy won't have the cargo space to carry anything they want delivered. Blacksmiths, tailors and shipyards might offer fetch quests, which can be completed in pieces, but with the tiny hold of the dinghy, you may run out of time before you can make enough trips to deliver the full amount.

Random street people: might offer a treasure map, which will probably cost you all your savings so far. It may lead to a battle with an enemy ship. You have no guns, so you're not going to win. Even if you survive long enough to close and board, you have 3 crew and not much skill with whatever toothpick you call a sword, so you won't live long. If you don't meet an enemy ship, you may meet a gang of pirates near where the treasure is supposedly hidden. If you survive or don't meet the ship and the gang, you'll probably find that the chest is empty because you only have Luck 1.

Other random people may pick your pocket. On the other hand, they may offer free advice (which earns a few percent of a Leadership skill point), may then drop their purse, which you can either try to steal or you can tell them to be more careful. The former is risky; the latter gets you a point of reputation. Do it enough times without losing all your money to pickpockets and you may become eligible for a couple of sidequests which require good reputation.

Taverns: the main quest here is escort, which runs the risk of an enemy ship waiting for you at the other end. See "Random street people".

Governor: you can get ship-hunting quests (see "Random street people"). Or you can buy a Letter of Marque, which is useless until you have a bigger ship that can survive combat.

Gambling: you start with Luck 1. You are not going to win!

Random scum in jungles are risky but possible. Dungeons are even better, the denizens aren't as tough as jungle thugs, and there's a nice sword lying around somewhere in each dungeon. The one in Port Royale is particularly recommended.

Another good way to earn some reputation is to go into a random house, offer to stand guard, possibly fight some burglars (repeatedly), and then be offered a reward. If you're short of money, take the reward. If you're trying to boost reputation, refuse it.

St. Pierre, Martinique is probably the sidequest capital of the Caribbean. There are a lot of sidequests there and most of them can be completed without having to leave the island.
 
Back
Top