El Foro

[Script] Stronghold

Autor Respuestas
ManuelV Thursday 9 May 2013 at 21:52

Stronghold is a real time strategy game. Its basically about building a castle, defending it against enemys and invading other castles. It also contains some non-combat missions.

This script works without any additional modifications

[code language=playonlinux]
# Date : (2013-05-09 18-45)
# Last revision : (2013-05-09 20-45)
# Distribution used to test : Ubuntu 12.10 using Unity and Gnome
# Author : Manuel Vögele
# Script licence : GPLv3
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


POL_SetupWindow_presentation "Stronghold" "Firefly Studios" "http://www.fireflyworlds.com/" "Manuel Vögele" "$WINEPREFIX"

POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"

POL_Wine_SelectPrefix "$WINEPREFIX"

# Check the disc again since the user could have removed it at this point
POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"
POL_Wine start /unix "$CDROM/$CD_INSTALL_FILE"

POL_Shortcut "Stronghold.exe" "Stronghold"


22x22 icon

Editado por: ManuelV

petch Thursday 9 May 2013 at 21:56

See remarks on the other thread about POL_Debug_Init and start /unix.
ManuelV Thursday 9 May 2013 at 22:07

Hi, thanks for your review.

I've applied changes to the Script.
petch Thursday 9 May 2013 at 22:17

No problem :)
Thinking of it, there's another remaining issue, debugging support requires that the $TITLE variable must be defined, and its content match the name of the script (when it will be added to the scripts repository). It's used to push the automated bug reports to the bug tracker.
So you need to have both $WINEPREFIX and $TITLE, even if in this particular case they contain the same value.

ManuelV Thursday 9 May 2013 at 22:48

Added the $TITLE variable to the script.

Can I commit the script to the repository now or do I have to do something else before / wait for somethig to happen?
petch Thursday 9 May 2013 at 22:52

I can't think of anything else...

If it still works feel free to submit it for signing :)
petch Thursday 9 May 2013 at 23:23

Script validated.
I renamed $WINEPREFIX to $PREFIX because $WINEPREFIX is a variable reserved by Wine (contains the full path of the prefix, not just its name), so I'm not sure what the consequences could be.

Also, the "Tests" field is used to write functional tests (in Bash), like checking that download URL are working, etc, so just keep it blank.
I moved the testing remarks to comments in the script, just in case.

Editado por: petch

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