| View previous topic :: View next topic |
| Author |
Message |
MongSpirit

Powder Monkey 
Posts: 44 

 
499 Gold -

|
Posted: Sat Jun 23, 2012 6:01 pm Post subject: A Possible 1560s Mod? |
|
|
Hi folks,
I've been a fan of this game for quite some time, and enjoyed it possibly more than any of the other few video games I own. However, there's always been one thing I was wondering about.
In the older games, according to my sources, the player was able to chose a time era for gameplay that was set in the mid 16th century, which has since been removed from the later release. The idea of playing in the 1500s Caribbean (which would certainly present a nice challenge due to the almost total dominance of Spain) is something I'd very much love to try out, particularly with the updated and improved graphics/features of the newest edition.
My question is, does anyone know if a modification which might make this time period available in the newer game is available? I was thinking about trying to crack into the files and possibly replace all the 1600 "Merchants and Smugglers" stuff with a 1560s era, but I admit I am no expert when it comes to modding and am pretty lost at how to do this. Do you guys think it's as simple as editing a few text files and re-writing the 1600 dates to 1500 ones? What would it require to remove/replace the few English/French/Dutch cities that exist in the 1600 setting?
It would be awesome if someone would be able to do something like this, but I understand that what I'm suggesting might be way more of a project than I could imagine. If anyone here in the community has info on this (or possibly possesses the skills to mod the new era) I'd really appreciate hearing about it.
Thanks! |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Sat Jun 23, 2012 8:55 pm Post subject: |
|
|
Download my savegame editor (see the other thread) and this should be pretty easy.
If you don't have a mac, you may have to install perl and call it with "perl" in front, and you will have to find where the savegame file lives (different directory).
Take a savegame, -unpack it to get a .pst file
Change line t_7_3 (Starting Year) from 1660 to 1540 or whatever.
Then go to the City section. Note City_5_2_3, where Coro is set to off by setting its bitstring to 10000000 (it's that first bit). To wipe out any other city, set the first bit of that city's _2_3 line.
Then -pack the file to make it back into a pirates_savegame. |
|
| Back to top |
|
 |
MongSpirit

Powder Monkey 
Posts: 44 

 
499 Gold -

|
Posted: Sat Jun 23, 2012 9:02 pm Post subject: |
|
|
| jlangsdo wrote: | Download my savegame editor (see the other thread) and this should be pretty easy.
If you don't have a mac, you may have to install perl and call it with "perl" in front, and you will have to find where the savegame file lives (different directory).
Take a savegame, -unpack it to get a .pst file
Change line t_7_3 (Starting Year) from 1660 to 1540 or whatever.
Then go to the City section. Note City_5_2_3, where Coro is set to off by setting its bitstring to 10000000 (it's that first bit). To wipe out any other city, set the first bit of that city's _2_3 line.
Then -pack the file to make it back into a pirates_savegame. |
Thanks for such a speedy reply.
I do in fact have a Mac computer, however I play the Pirates game on a Windows 7 bootcamp.
Is your editor something that I could edit the save game files with on Mac, and then bring over to the Windows for use in my game? Or would I have to download that one program you mentioned and try to work around it?
EDIT: Allright, well after a frustrating round of experimentation I'm still not very far ahead with this. I downloaded your program as suggested, and moved the savegame file over to my Mac. I even created all the directory files (Firaxis/Sid Meier's Pirates/etc.) and placed the save file there so that your editor would know where it was. However, upon opening the .pl file in terminal, I was unable to use any of the commands or functions. The -unpack, -pack, and -dir commands just gave me an error, and so I was unable to do any editing to the actual file.
I know this might sound a bit selfish of me, but I really could use some help with this... |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Sun Jun 24, 2012 11:08 am Post subject: |
|
|
I really want this to work. I wouldn't have posted the script if I didn't want to share the fun.
Suppose you save to slot1 in SMP, and then move slot1.pirates_savegame to the appropriate directory.
Then run this:
pirates_savegame_editor.pl -unpack slot1
That should print:
Translated slot1.pirates_savegame -> slot1.pst
If that's not what you get, post the error message so I can try to debug it. |
|
| Back to top |
|
 |
MongSpirit

Powder Monkey 
Posts: 44 

 
499 Gold -

|
Posted: Sun Jun 24, 2012 3:09 pm Post subject: |
|
|
It just says "command not found" whenever I try to unpack it.
I really have no idea if I'm even doing this right, as this whole Terminal/Perl thing is all a bit new to me as well. Just to see if I am, however (maybe you'll know what the issue is) this is what I did, step by step.
1. Saved a game to Slot1 on Windows, then moved it to my Mac and placed it in a directory I created: /Users/User/Library/Preferences/Firaxis Games/Sid Meier's Pirates!/My Games/Game.
2. Downloaded your editor (the .pl file) and opened up the "Terminal" application found in /Applications/Utilities/.
3. Typed in the command: perl /Users/User/Desktop/pirates_savegame_editor.pl
4. That seemed to work, as it brought up some text explaining the commands available in your program (like -unpack, -pack, -help, etc)
5. Now this is where I began experiencing issues. I first typed the command: pirates_savegame_editor.pl -unpack slot1, and it gave me that message "command not found."
I then tried: perl pirates_savegame_editor.pl -unpack slot1, and still the same result.
Now, I honestly have almost no idea how this Terminal thing works, so it is very possible I am making a simplistic mistake in typing in commands or something. As I said, though, that list above is exactly what I did (several times) and in the end all I get is a little bit of text saying "-bash (whatever text I typed) command not found." |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Sat Jun 30, 2012 11:51 am Post subject: |
|
|
Try this:
perl /Users/User/Desktop/pirates_savegame_editor.pl -unpack slot1
If you can get the help message, then the script is working, you just need to call it in the same way when you add the "-unpack slot1" switches. |
|
| Back to top |
|
 |
MongSpirit

Powder Monkey 
Posts: 44 

 
499 Gold -

|
Posted: Sat Jun 30, 2012 8:14 pm Post subject: |
|
|
Cool, it works!
I get the message telling me it translated into a .pst file, and now when I go to the directory where the savegame file is, there is also a .pst there.
What should I do now? Is there a specific program I need to edit the .pst?
EDIT: Scratch that. I got it to work with a simple text editor.
Everything seems to work great (including the removal of several non-Spanish cities) however the only problem I've encountered so far is when I try to open the 'Personal Stats' window (the one where it says "You began your career in bla bla bla. You are now 18 years old and etc. etc.)
Whenever I try, the game crashes and I'm taken back to the desktop.
Any ideas? _________________ Arr! Manchu Pirates!
 |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Sun Jul 01, 2012 4:19 pm Post subject: |
|
|
Aw, shucks, I should have tested that before giving you directions.
It looks like the value of Starting Year has to be between 1600 and 1699, otherwise the Status screen crashes.
If I set it to 1601, it affects the date in the game, but the Status screen still says "You started your career in 1600..." When set to 1699, it says "You started your career in 1680: Pirate's Sunset".
So I would guess that the problem is that it rounds down the starting year to a multiple of 20 years and then looks up the "game era" in an array somewhere; dates outside of the 17th century cause the lookup to go out of range, and that crashes the program. |
|
| Back to top |
|
 |
MongSpirit

Powder Monkey 
Posts: 44 

 
499 Gold -

|
Posted: Sun Jul 01, 2012 4:53 pm Post subject: |
|
|
Ah well, that's allright. I still seem to be able to play the game fine, so I guess I'll just have to remember not to bring up the status screen during gameplay...
Thanks so much for your help, and of course for making that wonderful editor. _________________ Arr! Manchu Pirates!
 |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Fri Dec 21, 2012 11:31 pm Post subject: |
|
|
I tried a different way - text.ini has this:
[ERAS]
Type = __VAR
Value = 1600 - Merchants and Smugglers
Value = 1620 - The New Colonists
Value = 1640 - War for Profit
Value = 1660 - The Buccaneer Heroes
Value = 1680 - Pirates' Sunset
Editing the 1600 line to make it 1540 changes the intro (you can select the 1540 era) and the Status screen reports that you started your career in 1540.
Unfortunately, the date is still 1600, and messing with t_7_3 to move that back to 1540 still crashes the program when you open the Status screen. |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Fri Dec 21, 2012 11:31 pm Post subject: |
|
|
I tried a different way - text.ini has this:
[ERAS]
Type = __VAR
Value = 1600 - Merchants and Smugglers
Value = 1620 - The New Colonists
Value = 1640 - War for Profit
Value = 1660 - The Buccaneer Heroes
Value = 1680 - Pirates' Sunset
Editing the 1600 line to make it 1540 changes the intro (you can select the 1540 era) and the Status screen reports that you started your career in 1540.
Unfortunately, the date is still 1600, and messing with t_7_3 to move that back to 1540 still crashes the program when you open the Status screen. |
|
| Back to top |
|
 |
|