3D Train Studio

Informations

Créateur Messages
StefanWerner Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 33576
Wine: 2.22

Retours d'expérience

Description

3D Train Studio is  software for planning and simulating model railroad layouts on the computer. The software is available as a free standard version and as a commercial professional version.
This script download and install the free standard version.

Captures d'écran

MiniatureMiniatureMiniature

Code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : See changelog
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner

# CHANGELOG
# [Dadu042] (2019-09-19)
#   Wine 1.9.2 -> 2.22, in order to fix script 'windows fail to appear' (on Ubuntu 18.04 x64).

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="3D_TrainStudio"
WINEVERSION="2.22"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "https://www.3d-modellbahn.de/files/client/v3/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Jeudi 19 September 2019 à 14:17
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -1,16 +1,21 @@
 #!/bin/bash
 # Date : (2015-03-05 09-05)
-# Last revision : (2015-03-05 09-05)
+# Last revision : See changelog
 # Distribution used to test : Ubuntu 14.04 LTS
 # Author : Stefan Werner
+
+# CHANGELOG
+# [Dadu042] (2019-09-19)
+#   Wine 1.9.2 -> 2.22, in order to fix script 'windows fail to appear' (on Ubuntu 18.04 x64).
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 
 # Define constants
 TITLE="3D Train Studio"
-PREFIX="TrainStudio"
-WINEVERSION="1.9.2"
+PREFIX="3D_TrainStudio"
+WINEVERSION="2.22"
 
 # Start installation
 POL_SetupWindow_Init

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : See changelog
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner

# CHANGELOG
# [Dadu042] (2019-09-19)
#   Wine 1.9.2 -> 2.22, in order to fix script 'windows fail to appear' (on Ubuntu 18.04 x64).

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="3D_TrainStudio"
WINEVERSION="2.22"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "https://www.3d-modellbahn.de/files/client/v3/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

Edité par Dadu042

StefanWerner Vendredi 19 Janvier 2018 à 20:43
StefanWerner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -41,7 +41,7 @@
 then
     POL_System_TmpCreate "$PREFIX"    
     cd "$POL_System_TmpDir"
-    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
+    POL_Download "https://www.3d-modellbahn.de/files/client/v3/SetupTrainStudio.exe"
     POL_Wine_WaitBefore "$TITLE"
     POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
     POL_System_TmpDelete

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"
WINEVERSION="1.9.2"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "https://www.3d-modellbahn.de/files/client/v3/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

StefanWerner Mercredi 27 Janvier 2016 à 13:41
StefanWerner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Updated Wine version to improve the compatibility.

Differences

@@ -10,7 +10,7 @@
 # Define constants
 TITLE="3D Train Studio"
 PREFIX="TrainStudio"
-WINEVERSION="1.7.38"
+WINEVERSION="1.9.2"
 
 # Start installation
 POL_SetupWindow_Init

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"
WINEVERSION="1.9.2"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

StefanWerner Lundi 16 Mars 2015 à 17:37
StefanWerner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Updated wine to the latest version to fix some compatibility issues.

In addition, please mark this installer as compatible to MacOS X.

Differences

@@ -10,7 +10,7 @@
 # Define constants
 TITLE="3D Train Studio"
 PREFIX="TrainStudio"
-WINEVERSION="1.6.2"
+WINEVERSION="1.7.38"
 
 # Start installation
 POL_SetupWindow_Init

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"
WINEVERSION="1.7.38"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

Lundi 16 Mars 2015 à 17:47
Cool. Approved. :)
Lundi 16 Mars 2015 à 17:48
I also updated the categories to include OSX.
Anonymous
Lundi 16 Mars 2015 à 17:48
Thank you!
Lundi 16 Mars 2015 à 17:48
np
Anonymous
Vendredi 22 Janvier 2016 à 14:27
When I try to install this, I get an error:
Anonymous
Vendredi 22 Janvier 2016 à 14:29
"we could not find any compatible graphics card for display. Make sure that your video card supports DirectX9.0c. I use a bankbook pro 2.5 Ghz Core i5. What am I doing wrong?
StefanWerner Vendredi 6 Mars 2015 à 0:25
StefanWerner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -1,7 +1,6 @@
 #!/bin/bash
 # Date : (2015-03-05 09-05)
 # Last revision : (2015-03-05 09-05)
-# Wine version used : 1.6.2
 # Distribution used to test : Ubuntu 14.04 LTS
 # Author : Stefan Werner
 [ "$PLAYONLINUX" = "" ] && exit 0
@@ -11,6 +10,7 @@
 # Define constants
 TITLE="3D Train Studio"
 PREFIX="TrainStudio"
+WINEVERSION="1.6.2"
 
 # Start installation
 POL_SetupWindow_Init
@@ -21,7 +21,7 @@
 POL_System_SetArch "x86"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate
+POL_Wine_PrefixCreate "$WINEVERSION"
 
 Set_OS "win7"
 POL_Wine_Direct3D "UseGLSL" "disabled"

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"
WINEVERSION="1.6.2"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

Vendredi 6 Mars 2015 à 0:30
Perfect. :)
Vendredi 6 Mars 2015 à 0:31
Ok. You should be good to go now. Refresh the Install window or restart POL for it to show up.
Anonymous
Vendredi 6 Mars 2015 à 0:41
Yes, it runs. Thank you. One last question: Do I have to keep the files to the screenshots and icons on my server?
Vendredi 6 Mars 2015 à 0:44
The screenshots are already uploaded, so no. For the script resources (left.jpg, etc.), wait for confirmation from an admin that they have been uploaded to our server. Then you can safely delete them.
Vendredi 6 Mars 2015 à 5:42
Mmmh the only graphical resources I've seen mentionned all along are the screenshots, no icons or left.jpg/top.jpg... (?)
Vendredi 6 Mars 2015 à 6:44
They are a few posts down:

Links to the icons:

http://www.3d-modellbahn.de/files/trainstudio-22x22.png
http://www.3d-modellbahn.de/files/trainstudio-48x48.png
http://www.3d-modellbahn.de/files/left.png
http://www.3d-modellbahn.de/files/top.png
Ronin DUSETTE Jeudi 5 Mars 2015 à 23:51
Ronin DUSETTE

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Wait. Actually, you need to declare and use a wine version. Using the system version is not recommended, and will likely be deprecated soon. Please look at other scripts (for instance https://www.playonlinux.com/en/app-2316-Adobe_Photoshop_CS6.html ) and make sure that you declare and use a WINEVERSION and use it when using POL_Wine_PrefixCreate. It is important that you are always explicit in declaring a Wine version, as it will make your script portable (if someone has a different version of Wine installed on their system that is not compatible with your software, the script won't work.).

If you have tested it fine with a specific version of Wine, then declare that version and use it as stated in other scripts, and POL will download/install the WineBuild that you declare and assign it to the virtual drive automatically.

Differences

@@ -7,6 +7,7 @@
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
+
 # Define constants
 TITLE="3D Train Studio"
 PREFIX="TrainStudio"

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Wine version used : 1.6.2
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

Vendredi 6 Mars 2015 à 0:03
I have removed the script from our repository temporarily. Just until you fix the WINEVERSION issue. Other than that, the script is fine.
Anonymous
Vendredi 6 Mars 2015 à 0:26
Thanks for the information, I've update the script.

Edité par RoninDusette

Ronin DUSETTE Jeudi 5 Mars 2015 à 23:44
Ronin DUSETTE

Messages

Moved links to resources to commit message instead of "Description" section.

 

Direct screenshot links:

  • http://www.3d-modellbahn.de/files/wine0.jpg
  • http://www.3d-modellbahn.de/files/wine1.jpg
  • http://www.3d-modellbahn.de/files/wine2.jpg

Links to the icons:

  • http://www.3d-modellbahn.de/files/trainstudio-22x22.png
  • http://www.3d-modellbahn.de/files/trainstudio-48x48.png
  • http://www.3d-modellbahn.de/files/left.png
  • http://www.3d-modellbahn.de/files/top.png

Réponses

StefanWerner Jeudi 5 Mars 2015 à 23:33
StefanWerner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,52 @@
+#!/bin/bash
+# Date : (2015-03-05 09-05)
+# Last revision : (2015-03-05 09-05)
+# Wine version used : 1.6.2
+# Distribution used to test : Ubuntu 14.04 LTS
+# Author : Stefan Werner
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+# Define constants
+TITLE="3D Train Studio"
+PREFIX="TrainStudio"
+
+# Start installation
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"
+
+# Prepare the wine config
+POL_System_SetArch "x86"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+
+Set_OS "win7"
+POL_Wine_Direct3D "UseGLSL" "disabled"
+
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
+POL_Call POL_Install_tahoma2
+
+# Install the main application, either by using a local setup file or by downloading
+# the latest setup from the web.
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+    POL_System_TmpCreate "$PREFIX"    
+    cd "$POL_System_TmpDir"
+    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
+    POL_System_TmpDelete
+fi
+ 
+# Finish installation
+POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2015-03-05 09-05)
# Last revision : (2015-03-05 09-05)
# Wine version used : 1.6.2
# Distribution used to test : Ubuntu 14.04 LTS
# Author : Stefan Werner
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Define constants
TITLE="3D Train Studio"
PREFIX="TrainStudio"

# Start installation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stefan Werner" "http://www.3d-train.com" "Stefan Werner" "$PREFIX"

# Prepare the wine config
POL_System_SetArch "x86"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

Set_OS "win7"
POL_Wine_Direct3D "UseGLSL" "disabled"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while installing prerequisites.')" "$TITLE"
POL_Call POL_Install_tahoma2

# Install the main application, either by using a local setup file or by downloading
# the latest setup from the web.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"    
    cd "$POL_System_TmpDir"
    POL_Download "http://www.3d-modellbahn.de/files/client/SetupTrainStudio.exe"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$POL_System_TmpDir/SetupTrainStudio.exe"
    POL_System_TmpDelete
fi
 
# Finish installation
POL_Shortcut "ModellbahnStudio.exe" "$TITLE"
POL_SetupWindow_Close
exit

Réponses

Jeudi 5 Mars 2015 à 23:41
Approved. For the screenshots; please remove all of them from the "Description" section and upload using the "Add a screenshot" button just above "Contributions". Screenshots should only be placed there using the "add a screenshot" function on this page.

Also, please remove everything that is not a description from the description section. There should be absolutely nothing in the description section except a description. The script will show up in the appropriate spot automatically, and the screenshots will go where they need to when uploaded using the correct function. 
Jeudi 5 Mars 2015 à 23:46
I did this for you. You just have to upload your screenshots using the button I referenced previously.
Anonymous
Jeudi 5 Mars 2015 à 23:48
Thanks for approving, but I can not edit my own description nor do I see a "Add a screenshot" button just above "Contributions". Is this a rights problem?
Jeudi 5 Mars 2015 à 23:53
When you first created the script you have access to the description section. Just keep it in mind next time you want to add a script (the only thing in the description should be a description of the program. Not the author or anything else.).

I may be a rights issue for the screenshots. I will take care of them for now and look in to that issue.

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