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

PERL scripts on Winodws
Post new topic   Reply to topic     Forum Index -> Customization & Modding
View previous topic :: View next topic  
Author Message
parksbanyon
Gunner
Posts: 564



13127 Gold -

PostPosted: Fri Sep 20, 2013 7:55 am    Post subject: PERL scripts on Winodws Reply with quote

Most of the PERL scripts don't find the default windows location, I finally got this to work by adding the following:

use Win32; (Place near the top just after comment lines #)

ADD (the "my $f_pc = 0;" gets replaced.):

my $OS = Win32::GetOSDisplayName();my $PF = " ";
if ($OS =~ /64/) {$PF = 'Program Files (x86)'; } else {$PF = 'Program Files';}
my $f_pc = "/$PF/Firaxis Games/Sid Meier's Pirates!/Pirates!.exe";

This only works for default path installs and differeniates between x86 x64 proram file naming conventions.
Back to top
View user's profile Send private message
alice
Powder Monkey
Posts: 1


26 Gold -

PostPosted: Thu Nov 07, 2013 4:27 am    Post subject: Reply with quote

You need the file "location_names_enu" which contains the names of random spanisch, english, french, dutch and pirate harbours, indian villages and monastries that appear during the game. You may not add any additional names because the number of settlements is fixed but feel free to rename any settlement you like. The included file contains some altered settlement names of my gusto.


-----------------------------------
A plus CompTIA 220-902 test JK0-019 LX0-104 SY0-401 labs pass4sure
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
Page 1 of 1

 
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