Het forum

ModelConverterX

converter for 3d Models files

Auteur Antwoorden
rogue-spectre Donderdag 19 Maart 2015 om 20:51
rogue-spectreAnonymous

OS : Xubuntu 14.04 64bits kernel 3.13.0-46

POM/POL version : 4.2.2

ModelConverterX is a file converter and viewer for some 3D model file types. It can be use for instance to  convert Flight Simulator "bgl" type to Flightgear "ac3" type.

 

#!/bin/bash
# Date : (2015-03-19 00-00)
# Distribution used to test : Xubuntu 14.04
# Author: rogue-spectre
# Wine version used: 1.7.38

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

TITLE="ModelConverterX"
TITLE_REQUIRED="ModelConverterX"
PREFIX="MODEL_CONVERTER_X"
WORKING_WINE_VERSION="1.7.38"
POL_SetupWindow_Init
POL_Debug_Init

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "Scenery Design" "http://www.scenerydesign.org/modelconverterx/" "rogue-spectre" "$PREFIX"

#########################
# Prepare prefix        #
#########################
POL_System_TmpCreate "$PREFIX"
# Force Clean of "old" tmp files
POL_System_TmpDelete
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
Set_OS="win7"

FULL_INSTALLER="$POL_System_TmpDir/ModelConvertX.zip"

#########################
# Select file           #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the archive file to extract.')" "$TITLE" "" "Windows Archive (*.zip)|*.zip;*.ZIP"
    cp "$APP_ANSWER" "$FULL_INSTALLER"
else # DOWNLOAD
    cd "$POL_System_TmpDir"
    DOWNLOAD_URL="http://www.scenerydesign.org/old-releases/stable/ModelConverterX_130.zip"
    DOWNLOAD_MD5="4649386a4089dd3b4c483dcfc2d0b032"
    DOWNLOAD_FILE="$POL_System_TmpDir/ModelConvertX.zip"
    POL_Call POL_Download_retry "$DOWNLOAD_URL" "$DOWNLOAD_FILE" "$DOWNLOAD_MD5" "$TITLE archive"
fi

###################
# Install         #
###################
SETUP_OPTIONS=""
# not sure POL_LoadVar_PROGRAMFILES usefull
POL_LoadVar_PROGRAMFILES
cd "$POL_System_TmpDir"
POL_System_unzip "$FULL_INSTALLER"
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/ModelConverterX_130"
cp -r "$POL_System_TmpDir/"{*.dll,*.exe} "$WINEPREFIX/drive_c/$PROGRAMFILES/ModelConverterX_130/"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "ModelConverterX.exe" "$TITLE" "" "" "Graphics;3DGraphics;"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

 

Andrew829 Zondag 20 Februari 2022 om 8:56
Andrew829Anonymous

The discussion is created on the model converter and this part is mainly about the coding process. The custom dissertation service is an amazing platform for content creation. You can check if you have interested in playmac related stuff.

Aangepast door Andrew829