Getting The YSFlight Perl Scripts To Work.

Topics about .dat, .srf, .dnm, .ist, Blender, Gepoly, etc.
Post Reply
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Getting The YSFlight Perl Scripts To Work.

Post by Flake »

This tutorial has been moved to the YS Wiki, found here:

One of the quickest and easiest tools I ever saw was the Perl Scripts for YSFlight by Asameshi.

Now installing them and getting it to work is not a walk in the park anymore like it was with perl 5.8. I just had to do it all again from scratch so this is how I did it:

1) Download & Install Strawberry Perl (32bit only is compatible *thanks mh3w*)
2) Open Command Prompt (Windows + R, then type "cmd" and press enter)
3) Type "cpan -i Tk" (CASE SENSITIVE) and press enter.
4) Perl Package Manager will now download and install Tk for you, a compnent needed by the AsaMeshi perl scripts which doesn't come bundles with Perl anymore. Please wait for it.
5) Once TK is extracted, Tk will be tested on your system. Enjoy the fireworks as many Tk windows open and close rapidly.
5) Go to your Perl file and right click -> open with...
6) Navigate to your strawberry perl folder, and select the perl.exe file. normally this is "c:/strawberryperl/perl/bin/perl.exe"
7) You're done! Make sure that you have SurfData.pm from Asameshis site, and run any .pl file as you need.

I'm happy to help if you need it!

EDIT: IF THIS WORKS/DOESN'T WORK FOR YOU PLEASE LET ME KNOW!
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
Shutter

Re: Getting The YSFlight Perl Scripts To Work.

Post by Shutter »

oh props. I had tried to install perl on my new comp but couldn't figure out how to install tk w/ strawberry (as recommended by asameshi). It was supposed to have it pre-installed on the version I had (it didn't) and the old perl packet manager command didn't seem to work.
User avatar
mh3w
Rookie
Rookie
Posts: 50
Joined: Thu Mar 03, 2011 12:59 am
Favorite Aircraft: Lockheed Constellation
Location: KCGX
Has thanked: 12 times
Been thanked: 28 times
Contact:

Re: Getting The YSFlight Perl Scripts To Work.

Post by mh3w »

I have run into a problem. I have tried this several times with the same error, something about a bad cursor spec. I tried opening the Perl scripts anyway and it didn't work.

I am running Win 7 Ultimate 64-bit with the 64-bit version of strawberry.

Image

EDIT: also this error

Image

Please let me know what you think.
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Re: Getting The YSFlight Perl Scripts To Work.

Post by Flake »

Perhaps google will be of more help? I have no idea...

Trying to install with admin privlages? Without desktop composition etc?
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
User avatar
mh3w
Rookie
Rookie
Posts: 50
Joined: Thu Mar 03, 2011 12:59 am
Favorite Aircraft: Lockheed Constellation
Location: KCGX
Has thanked: 12 times
Been thanked: 28 times
Contact:

Re: Getting The YSFlight Perl Scripts To Work.

Post by mh3w »

I got the Perl scrips working. I uninstalled the 64-bit version of Strawberry Perl and used the 32-bit version instead. It was a lot easier than I thought.
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Re: Getting The YSFlight Perl Scripts To Work.

Post by Flake »

To get DNMBUILD to work, you need to download and install WIN32:CLIPBOARD.

1)In CPAN, type: "get Win32:Clipboard"
2)Let it download.
3)in PPM, type "install Win32-Clipboard".
4)Done.

Real pain in the McArse this perl...
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
User avatar
Killer
Contributor
Contributor
Posts: 384
Joined: Fri Feb 04, 2011 6:17 am
Favorite Aircraft: F-15E Strike Eagle/F-35C Lightning
Location: High up, 18,000 feet.
OS: Vista.
Has thanked: 22 times
Been thanked: 66 times

Re: Getting The YSFlight Perl Scripts To Work.

Post by Killer »

I got an error at the end saying "Couldn't install TK, don't know what TK is"

Any ideas? I'll post a screenie in an hour or so.

EDIT: Never mind, I got it to work. I typed 'tk' instead of 'Tk'.
CVW-171st - VFA-165, The Highest Pilot in YSFlight.
Formerly known as Killerdeck/KD
.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests