Getting The YSFlight Perl Scripts To Work.

Learn to make aircraft, maps and more with all of the tools. All the tutorials you will ever need are located here!
NOTE THAT HACKING THE MAIN YSFLIGHT .EXE IS FORBIDDEN
Post Reply
User avatar
Flake
Staff
Staff
Posts: 4076
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 733 times
Been thanked: 980 times

Getting The YSFlight Perl Scripts To Work.

Post by Flake » Tue Feb 05, 2013 12:16 pm

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

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

Shutter

Re: Getting The YSFlight Perl Scripts To Work.

Post by Shutter » Tue Feb 05, 2013 6:03 pm

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 » Sat Jun 15, 2013 1:47 am

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
Staff
Staff
Posts: 4076
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 733 times
Been thanked: 980 times

Re: Getting The YSFlight Perl Scripts To Work.

Post by Flake » Sat Jun 15, 2013 8:08 am

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

Trying to install with admin privlages? Without desktop composition etc?

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 » Mon Jun 17, 2013 8:40 pm

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
Staff
Staff
Posts: 4076
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 733 times
Been thanked: 980 times

Re: Getting The YSFlight Perl Scripts To Work.

Post by Flake » Tue Jun 18, 2013 3:21 am

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...

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 » Sat Jul 20, 2013 12:20 pm

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 1 guest