Shop  •   Avatar  •   FAQ  •   Search  •   Memberlist  •   Usergroups  •   Profile  •   Log in to check private messages  •   Log in  •  Register 

Reposting some mods
Post new topic   Reply to topic     Forum Index -> Customization & Modding Goto page Previous  1, 2, 3  Next
View previous topic :: View next topic  
Author Message
parksbanyon
Gunner
Posts: 564



13127 Gold -

PostPosted: Tue May 01, 2018 6:09 pm    Post subject: exact Reply with quote

whats the EXACT name of the file. I couldn't find it and I should have all of them.
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4598



26019 Gold -

PostPosted: Tue May 01, 2018 8:52 pm    Post subject: Re: exact Reply with quote

parksbanyon wrote:
whats the EXACT name of the file. I couldn't find it and I should have all of them.


I think it's named bermuda.zip
Back to top
View user's profile Send private message Send e-mail
parksbanyon
Gunner
Posts: 564



13127 Gold -

PostPosted: Tue May 29, 2018 2:44 pm    Post subject: no way Reply with quote

thought I had them all but I can't find it
Back to top
View user's profile Send private message
foozballguy
Powder Monkey
Posts: 2


8 Gold -

PostPosted: Tue Oct 02, 2018 3:34 am    Post subject: Reply with quote

Has anyone been able to track down the Bermuda mod?
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4598



26019 Gold -

PostPosted: Tue Oct 02, 2018 5:01 pm    Post subject: Reply with quote

foozballguy wrote:
Has anyone been able to track down the Bermuda mod?


Hi. Please don't make the same request more than once.
Very respectfully,
fleetp (site admin)
Back to top
View user's profile Send private message Send e-mail
jlangsdo
Cutthroat
Posts: 398



11012 Gold -

PostPosted: Mon Apr 22, 2019 5:48 pm    Post subject: Reply with quote

I checked on my old computer. The hard drive makes painful whirring sounds. No sign of the old Bermuda mod.
Back to top
View user's profile Send private message
orca
Powder Monkey
Posts: 31


1086 Gold -

PostPosted: Sat May 10, 2025 6:34 pm    Post subject: Searching mods and tool's Jlangsdo for Pirate Reply with quote

Hi all pirates,
I just bought this awesome game, and I am under charm... It's really an excellent pirate game, old but with a ultra high level quality.

Reading the modding forum, I have seen here this post :
https://www.hookedonpirates.com/forums//viewtopic.php?t=6872

where a member (Jlangsdo) gave a list of his mods, saying they needed a new link.

But this link seems itself missing or broken.

If some member would have download in the past the mods and tool that are listed in the above message of Jlangsdo, I would be very interested to get them.

Thanks in advance for reply.


EDIT : If you have only some of them, I am also interested, of course.
In particular, i search spec. this one :

pirates_savegame_editor.pl : Converts a savegame file to a readable and editable text file and back
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sat May 10, 2025 7:09 pm    Post subject: Reply with quote

jlangsdo's mods can be downloaded here

https://www.dropbox.com/sh/4rjpm6zt4ru517t/AADafjCo4h0a4W-APOzXY8Qta?n=385028626&oref=e

For Scripts see the included
More Pirates Scripts Folder


Updated Mods Links See

Reserved for Game MODS Folder
https://hookedonpirates.com/forums/viewforum.php?f=24
Back to top
View user's profile Send private message
orca
Powder Monkey
Posts: 31


1086 Gold -

PostPosted: Sat May 10, 2025 8:40 pm    Post subject: Reply with quote

Ok, I get them, thanks a lot

Just is missing this tool : pirates_savegame_editor.pl : Converts a savegame file to a readable and editable text file and back

Do you have it please ? (or a link)
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sat May 10, 2025 8:42 pm    Post subject: Reply with quote

Back to top
View user's profile Send private message
orca
Powder Monkey
Posts: 31


1086 Gold -

PostPosted: Sat May 10, 2025 10:10 pm    Post subject: Reply with quote

Ok, thanks again : I though it was an executable (I searched for a .exe extension) and I did not see it with the .pl extension.

I waited for a "ordinary little executable" (with simple process), but it seems a little more complicated to use this kind of tool...

I suppose it need some knolewdges in "informatic language" : 1/ To use the "convert" tool to obtain a txt file with a save file 2/ And then to use another tool to "reconvert" the txt in save file

I though thet the tool was just that : you open the save file in the tool and the tool make the job automatically.

But seems it is not...

Am I wrong ?

EDIT : Sorry if my questions are elementary, but at this time, I discover a lot in few time and there is an enormous quantity of docs to read.
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun May 11, 2025 2:54 am    Post subject: Reply with quote

pirates_savegame_editor.pl
is a perl script (renamed text file)

Script converts the contents of a savegame into a Text file you can edit
with a Text file Editor and then using the script can convert back into a savegame.

(suggest read the script for the script syntax reference,
open a copy with say notepad as a text file)

install the freeware

Strawberry Perl for Windows
https://strawberryperl.com/

32-bit Perl version

For an overview of the Perl install process with screenshots

Setting Up Perl Development Environment
https://www.perltutorial.org/setting-up-perl-development-environment/

Strawberry Perl installer will properly configure the Windows System Environment variables, something other Perl distributions may not


For the PH Trainer
recommend create a Desktop shortcut to the trainer executable
Run the Trainer as as an administrator

Desktop shortcut - right click properties
Shortcut tab - Advanced - check run as administrator

in the Trainer
set PHTrainer - Bigpond/Trymedia SMP for Steam (or GOG) Release


Instructions:
(run the game in windowed mode)
Run Trainer 1st, then run the game, start a new game or load your current game, pause the game
alt-tab to the Trainer
and select the Pirates! game version on the trainer,
(Bigpond/Trymedia SMP for Steam or GOG)
click the personal tab and see if your games information is loaded, Crew,Gold, Food etc.
If the trainer has found those values then your good to go.


Last edited by corsair91 on Sun May 11, 2025 4:54 am; edited 8 times in total
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun May 11, 2025 3:53 am    Post subject: Reply with quote

to run the script

open a command prompt
Start menu run cmd.exe

For convenience you may want to create a command prompt Desktop shortcut

Desktop Shortcut Target
C:\Windows\System32\cmd.exe

start in
C:\WINDOWS\system32


for convenience, I typically rename a copy of the script to shorten the name
from pirates_savegame_editor.pl to say sg.pl

to run the script, for example in the command prompt
to convert to a Text file

C:\script\sg.pl -unpack c:\script\slot3.pirates_savegame

where slot3.pirates_savegame is the savegame file
creates a slot3.pst Text file


To convert back from the Text .pst to a savegame again
c:\script\sg.pl -pack -in c:\script\slot3.pst -out c:\script\slot5.pirates_savegame

Using quotes " " may help with any spaces in the pathname

For example
"c:\script\sg.pl -pack -in c:\script\slot3.pst -out c:\script\slot5.pirates_savegame"


ensuring the output filename say slot5.pirates_savegame
is different to the original source savegame filename to
avoid overwriting


where C:\script
Working Folder with both the script & save game


In the command prompt may find it easier to first before running the script
type
cd\
cd c:\script

to change directory to C:\script location


To graphically do this in Windows 10 Windows File Explorer

Open Windows File Explorer
by Windows Key + E or My Computer Desktop shortcut if you have one

Browse to the working folder location
Single left click to select it

(assuming double click to open folder is set in
Windows File explorer - View Tab - Options - Change Folder & Search Options, Double Click to Open Set)

Press Shift Key and right click on Folder to bring up advanced Properties
Now see Open Power shell Window here
Select Open Power shell Window

Need to make a Taskbar settings change first

Right Click on Taskbar - Taskbar settings

scroll down to
replace Command prompt with Windows Powershell in the Menu
when right click on Start Button or Press Windows Logo Key +X

set to off
so run Command prompt rather than the Windows Powershell

(using powershell will give syntax errors.
Will still see Powershell in the advanced Folder properties
but actually now using the Command prompt)


Last edited by corsair91 on Sun May 11, 2025 6:10 am; edited 18 times in total
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun May 11, 2025 4:08 am    Post subject: Reply with quote

In the script, prefer to make a slight change
as the script uses the default savegame folder

C:\Users\[User Profile name]\Documents\My Games\Sid Meier's Pirates!
and would rather use a working folder

change script from

$ENV{USER} ||= "USER_NOT_DEFINED";
my $save_dir = "/Users/$ENV{USER}/Library/Preferences/Firaxis Games/Sid Meier's Pirates!/My Games/Game";
my $script = $0;
$script =~ s|.*/||;

to say

$ENV{USER} ||= "USER_NOT_DEFINED";
my $save_dir = "C:/script/";
my $script = $0;
$script =~ s|.*/||;

where C:\script\
is a scratch working folder with the script & savegame

Open script copy with say notepad to make the change
ensure you save it as a .pl file

EDIT:
Have just noticed this script option
-dir <> Alternate base dir to search for files


Last edited by corsair91 on Sun May 11, 2025 6:12 am; edited 1 time in total
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun May 11, 2025 5:19 am    Post subject: Reply with quote

Script

Basic switches:
-unpack <> pirates_savegame -> pst
-pack <> pst -> pirates_savegame

-advanced_help More information, including splicing switches

The pst file is a text file which contains all of the information required to rewrite the original pirates savegame.
You can edit the text file, then run -pack to rebuild the pirates_savegame file. The advanced switches give ways to splice
information from one pst file directly into another.


Script Syntax Help from
C:\script\pirates_savegame_editor.pl -advanced_help


File formats:

The pirates_savegame file has a bunch of data dumped in. It's not encrypted, but there are no labels, either.
The kinds of data:
Numbers: 1,2, or 4 bytes long. For more than 1 byte, the least significant byte is always first
Bitstrings: packed into bytes
Text Strings: Strings are always preceded by a 4 byte number that lists how many bytes in the string. They are sometimes followed by null bytes

The data comes in groups, to which I have given names like CityName and Personal.

Only the text strings are variable length. The file is set up with text strings on either end, probably to make it harder
to describe how to change the file in a hex editor - you can never describe a byte using a simple hex location measured from the
head or tail of the file, because of the variable length strings on either end.

There are 128 slots for cities/settlements, and 128 slots ships. Data about cities and ships appear as groups of 128 paragraphs of the same type of data.

Coordinates are on a grid that is 462 x 293, with 0,0 in the SW. Landmarks, totem poles, and pirate treasures are placed on that grid.
Ships or marching pirates are on a 1,000,000 times finer grid. There is also an intermediate granularity grid used for the world map.
In the pst file, everything is translated into the 462 x 293 scheme.

The pst file lines are simple text files, of this format:
# comment
linecode : type : value : comment (calculated comment)

The calculated comments are derived from the values; only the type and value are used to reconstruct a savename file from a pst file.

In general, lines in the pst file represent sequential bytes in the pirates_savegame file. The lines are sorted (respecting the linecode structure) before
translation. The type values mainly come straight from pack, detailing how to pack the value given back into binary.
For maps, the pst file has the features extracted the background, listing all of the background first, then all of the features.
For the FeatureMap, the background shows which areas of the worldmap have been visible in the player's travels, so putting those lines
together and compressed is much more readable. Features can be tricky to splice.

There are important redundancies in the savegame file. If you are making a change, you may have to make it in all of the affected places to make
the game look right. A treasure map X is coded 3 times - as a feature in the FeatureMap, as a feature in the TreasureMap,
and at the top of the TreasureMap for setting the TreasureMap coordinates.
The location of a city is in the City, CityLoc, FeatureMap, and SailingMap sections.
A villain appears in the Villain section, the Log, and as a Quest - and mobile villains also have an associated Ship.

Advanced switches for Splicing:
-in <> pst baseline
-donor <> pst for replacement lines (defaults to -in)
-out <> output pst & pirates_savegame
-splice <> regexp of linecode to replace
-clone <> replace with these comparable lines rather than same lines from donor
-set <> replace with these comparable values
-auto Finds differences between in and donor, sets up a binary search for which line causes a feature.
Auto splices 1/2 of differences per out file.
-not <> Works with -auto; tells it not to not splice lines where the not files mismatch the in file.

To copy the player flagship from slot1 into slot2, you would run:
C:\script\sg.pl -in slot2 -out slot2 -donor slot1 -splice Ship_0

To clone the flagship to the second ship:
C:\script\sg.pl -in slot2 -out slot2 -splice Ship_1 -clone Ship_0


All of the splicing switches (other than -in) take comma separated multiple values.

If you provide multiple -splice values, it splices all of them at once, if there is only one -out file.
If there are multiple -set values, they are sent to the different splices in turn.
If you also provide multiple -out files, then it sends each splice expression to one out file.

The method for puzzling out the pirates_savegame file syntax is to find two savegames that differ in one feature - for example, whether the
Governor's daughter in Antigua is beautiful - and then splice back and forth between the two files. By opening the spliced versions up in
Pirates!, it is possible to narrow down which byte is respoinsible with the particular feature.

The -auto switch makes this process very efficient when there are hundreds, or thousands, of lines different between the two files.
Initially, run with -in, -donor, -auto, and -out with many out files. It will autosplice different combinations of lines to each of the out files.
After testing in Pirates!, run again, this time adding to the -donor list any of the previous round of output files that had the feature, and
adding a -not list of files that don't have that feature.

Other switches:
-test <> Does an -unpack <>, then -pack <> to <>.pirates_savegame.test
Compares <>.test to <>; removes <>.test if they match.
-sweep Performs -test on all available savegames
-dir <> Alternate base dir to search for files
Default is /Users/$USER/Library/Preferences/Firaxis Games/Sid Meier's Pirates!/My Games/Game
-bmp <> Write out one of the maps as a bmp file when unpacking. Choices are TopoMap, SailingMap, FeatureMap, CoastMap
All maps are rotated and flipped (matching the way they are stored in the savegame file).

The -test and -sweep switches are a regression; they prove that the pst file has all of the information necessary to
rebuild the pirates_savegame file, and that the pack and unpack operations are complementary. After any large change to this editor,
run -sweep to update all of the pst files in the directory.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Customization & Modding All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group