Forums

Program script that needs debugging

Auteur Réponses
FuzzyToothpaste Dimanche 3 Aoüt 2014 à 20:38
FuzzyToothpasteAnonymous

I am making my first PlayOnLinux script that should be compatible with PlayOnMac (I don't have a Mac so I can't test). It lets the user install a free indie game called Octodad (http://octodadgame.com), but it has some problems. The couple that I know of so far are:

1. On the screen that mentions that an internet connection is required, yo have to click the Next button twice. This makes me wonder if it is skipping a step.

2. When the script tries to start the .exe installer, the message "There is no program configured to open this type of file" is displayed by Wine, which doesn't make sense because it is an .exe file

If you can help me see what I did wrong, I will be grateful and submit the script. I have made plenty of comments to make things easier. I also have plans to make scripts for GIMP, OpenOffice, and VLC media player if this goes well. The Octodad script (to be edited and posted here when a bug is fixed) can be downloaded at https://www.dropbox.com/s/axuc7ezoo87l38i/OctodadPOL?dl=1 . P.S. I would appreciate if any of you Mac users would test this once it has been fixed here.

Edité par FuzzyToothpaste

petch Dimanche 3 Aoüt 2014 à 20:44
petch

That game has Linux and Mac versions...

 

FuzzyToothpaste Dimanche 3 Aoüt 2014 à 20:46
FuzzyToothpasteAnonymous

You're thinking of Octodad: Dadliest Catch, the sequel.

Edité par FuzzyToothpaste

petch Dimanche 3 Aoüt 2014 à 20:58
petch

Ah ok, that other one has Windows and Mac versions, so script Mac compatibility may not be so important

petch Dimanche 3 Aoüt 2014 à 21:10
petch

Ok, back to the script review.

First, with comments at the end of every line, this is the most unreadable script I've read (really). They were easy enough to remove with a regexp though.

POL_Download "http://www.gamefront.com/files/21095256/OctodadInstallerV1_5_3_exe"

That's probably the problem;

> POL_Download "http://www.gamefront.com/files/21095256/OctodadInstallerV1_5_3_exe"
[POL_Download] Message: Downloading http://www.gamefront.com/files/21095256/OctodadInstallerV1_5_3_exe
[POL_Download] Warning: POL_Download - MD5 is missing!

> file OctodadInstallerV1_5_3_exe
OctodadInstallerV1_5_3_exe: HTML document, UTF-8 Unicode text, with very long lines

What you're retrieving with that URL is an HTML page.

POL_Wine start /unix "OctodadInstallerV1_5_3_exe"

"start /unix" is usually not necessary and has a drawback, so if the installation works without it, better remove it.

rm -f ~/Desktop/Octodad.lnk

It's a bit strange that you need that, the WINEDLLOVERRIDES=winemenubuilder.exe=d that PlayOnLinux uses is supposed to make such thing unnecessary (but maybe there's a problem lurking around).

Also not an desktop directories are called "Desktop", depending on locales and stuff, so it's a fragile workaround.

 

FuzzyToothpaste Dimanche 3 Aoüt 2014 à 22:11
FuzzyToothpasteAnonymous

It seems that there are no official Octodad mirrors that make direct links to Octodad. I will probably just have to get the installer and put it on a cloud storage service or something. I still haven't figured out why you have to click Next twice though. It seems like I have a lot of work to do.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com