The forum

Waiting list?

Author Replies
KoRnKloWn Saturday 16 June 2012 at 22:35
KoRnKloWn

Is there a long waiting list for getting scripts signed? I've been waiting for a pretty long time now now for my Command And Conquer script to be signed, I've even already made an update that I released on the forum. I'm not trying to rush anyone, I'm just currious how long it ussually takes for this to go through, because I plan on making more scripts. I want to get as many games running on Linux as possible.
Quentin PÂRIS Sunday 17 June 2012 at 12:30
Quentin PÂRISAnonymous

Hi,

Can you write here the latest version of the script ? Thank you

We are currently re-thinking our validation system
KoRnKloWn Monday 18 June 2012 at 20:46
KoRnKloWn

The latest version is here: http://www.playonmac.com/en/topic-9000-Script_Command_And_Conquer__Tiberian_Dawn.html

I figure I should just post a link to the existing forum post rather than reposting the code. This is the latest version, and I've been playing it a while now, all bugs seem to be worked out, it's working 100% :D
Quentin PÂRIS Monday 18 June 2012 at 22:15
Quentin PÂRISAnonymous

Well, the problem is that your script does not respect our latest scripting standards.

You should read the latest documentation for more details.

I'll explain you more clearly if you want when I have more free time
KoRnKloWn Thursday 21 June 2012 at 10:23
KoRnKloWn

OK, I'll have to look through the standards again then. If you have time could you point out what specifically my script is violating?
KoRnKloWn Thursday 21 June 2012 at 10:27
KoRnKloWn

The only thing I noticed I missed was POL_Debug_Init, so I just added it, was that what the issue was?
petch Thursday 21 June 2012 at 10:50
petch

Hi,
Few things I spotted:
- All messages localization should use eval_gettext (http://www.playonmac.com/en/dev-documentation-10.html)
- To ask yes/no questions, use POL_SetupWindow_question
- To test strings equality, the operator is = not == (== is pattern matching, in this case it will work because right operand contains no wildcard, but still it does not do exactly what you meant)
- start /unix is useless 98% of the time, and breaks script abort cleanup because programs launched with it are like "detached" from the main script
- "Install complete" message at the end of script is a bit unusual, I don't know if there's a policy about that.

Maybe Quentin has more to add...

Edited by petch

Quentin PÂRIS Thursday 21 June 2012 at 11:33
Quentin PÂRISAnonymous

Another thing : The way you manage the download is not reeally user friendly.

You'd better use something like:

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
	POL_Download "http://www.gamefront.com/files/21533724/cc95v106c_r3_full_.exe" "MD5 SUM of the file"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
	POL_SetupWindow_browse .......
fi

But first, please ensure that the game is free, and that it is legal to download it

Thank you for your effort anyway :)

Edited by Tinou

KoRnKloWn Friday 22 June 2012 at 4:33
KoRnKloWn

OK, thanks guys, as soon as I have a chance I'll work on those fixes, and yes the game is free :D EA Games released Command And Conquer and Command And Conquer Red Alert as freeware quite a while ago. I'm going to try to write scripts for the other games as well, however the ones that aren't free won't have download links, you'll have to own the game to install it.
kcinman11358 Friday 22 June 2012 at 5:15
kcinman11358Anonymous

is there any way you could provide walk through on how to use this script? I am new to POL and i've searched high and low on how to use your script, but haven't found anything. Thanks
KoRnKloWn Friday 22 June 2012 at 19:46
KoRnKloWn

If you want to use the existing script to install the game, you can find it in the forums here: http://www.playonmac.com/en/topic-9000-Script_Command_And_Conquer__Tiberian_Dawn.html

Just copy and paste the script into a text document and save as Command And Conquer (or whatever you want, doesn't matter what the name is really). Then in playonlinux under 'Tools' click on 'Run a local script', and select the script, then just go through the wizard.
KoRnKloWn Friday 22 June 2012 at 19:47
KoRnKloWn

I'm going to try to get the script fixed as soon as possible, then put up the new code, and hopefully it can then get validated. Once I have this stuff down I should be able to make more scripts ^_^
KoRnKloWn Friday 22 June 2012 at 20:12
KoRnKloWn

Another thing : The way you manage the download is not reeally user friendly.

You'd better use something like:

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
	POL_Download "http://www.gamefront.com/files/21533724/cc95v106c_r3_full_.exe" "MD5 SUM of the file"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
	POL_SetupWindow_browse .......
fi

But first, please ensure that the game is free, and that it is legal to download it

Thank you for your effort anyway :)

Quote from Tinou


And just so you know, I couldn't use this method, without opening the pages in a browser they fail to download, the way the websites handle the downloads you have to do it from a browser. I tried everything I could to get automated downloading to work, including uploading them to my own dropbox, but for obvious reasons I decided against it.
Quentin PÂRIS Friday 22 June 2012 at 20:27
Quentin PÂRISAnonymous

You can use POL_System_Wget, which will allow you to set the referer and cookies.
KoRnKloWn Friday 22 June 2012 at 21:55
KoRnKloWn

Well I updated the script, I believe I'm totally following the guidelines now, I have good reasons for why I don't handle the downloads the way they ussually should be handled, and I added comments explaining. Please let me know if I have anything else I need to fix though, because I may have still done something wrong. I noticed though, the main thing I did wrong was not using the localization, that was a big no no, and I don't really know how I missed it to begin with...

Also, as I've stated many times, the game was released as freeware, so this is totally legal, I just don't want anyone to worry ;)

EA released Tiberian Dawn and Red Alert as freeware to promote the newer games.
Quentin PÂRIS Friday 22 June 2012 at 22:02
Quentin PÂRISAnonymous

I don't understand why you can't download directly the game from POL
KoRnKloWn Friday 22 June 2012 at 23:23
KoRnKloWn

It fails to download, it's not a direct link to the game, it's the type of thing where when you download you have to wait like 5 seconds, and then it brings up another download link, if you try to have it auto-download it will simply fail. Trust me, I've tried it already, now with the videos pack you can autodownload, however I chose against it, because it is packed in a .rar file, and the only way to make it totally user friendly would be to have the script extract it, but that requires third party tools that are not installed by default, and if you do install them I'm not sure the commands would be the same on mac and linux, so I figure it makes more sense to have the browser download the videos pack, so the user can extract it themselves. If you have a better suggestion I'd be more than happy to listen, I really do want this as user friendly as possible, I even tried uploading the files to my dropbox account and sharing, and then linking the POL download to that, however I realized this would use my available bandwidth on dropbox far too fast. And I'm not going to pay for filehosting just to make this script user friendly, so I would need a totally free filehosting website, that is not like gamefront, mediafire, or any of those other sites like that, because it's impossible to have those downloads work with the POL download.
KoRnKloWn Friday 22 June 2012 at 23:26
KoRnKloWn

Thanks for all the help though, I really appreciate it.

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