Jump to content

Recommended Posts

Posted (edited)

Customizing Pup Screens—Made Easier.
 

It sounds simple at first. The PupPlayer.ini file is located in the root directory of the PinupSystem folder. In theory, you create your own file using PinUpPlayerConfigDisplays.bat during installation, and that single *.ini file then controls all the tables, ensuring everything always works.
Then comes the reality.
Some PupPack have a window at a wrong place. Some window are too small or too big. This is where things often get tricky. You can (theoretically) easily open a configuration menu by right-clicking on a PupScreen. To do this, first copy the PinUpPlayer.ini file into the PupPack directory you want to modify. This ensures that, after editing using the right-click method, ONLY the *.ini file of that specific PupPack is changed. The PupPlayer.ini file in the main directory remains unchanged.

For me, however, the editing menu often doesn’t appear that way. Or it’s hidden behind other windows. Or the mouse cursor disappears when the table and the PupPack are running.
My workaround so far has been:

I make a mental note of which screen I want to change.
I back up the ini file in the PinupSystem main directory.
I run PinUpPlayerConfigDisplays.bat, modify the PupPack window, and edit the *.ini file in the main directory.
I copy this *.ini file to the PupPack directory and restore the original one in the main directory.
This is because PinUpPlayerConfigDisplays.bat only modifies the *.ini file in the main directory.

That’s annoying.


I have a *bat file here that makes this easier. It is run from the PupPack directory and first checks whether an ini file already exists there; if not, it copies the ini file from the PinUpSystem main directory into the respective PupPack directory. and starts the Configuration of only this PupPack. This makes it easier to customize a single PupPack without affecting any of the others. Put the bat here\PinUPSystem\PUPVideos\PupPacktoEdit This Filestructure is needed. If you have PupPacks elsewhere - it will not work.

Please backup your PinUpPlayer.ini before testing.  It works here. Thats all I can say. I do not run Popper PupPlayer only.

 

@echo off
setlocal EnableExtensions

rem ============================================================================
rem  PuP Screen Configuration Tool
rem ============================================================================
rem
rem  PURPOSE
rem  -------
rem  This batch file lets you configure the PuP screens for THIS PuP-Pack.
rem
rem  FOLDER STRUCTURE
rem  ----------------
rem
rem    PinUPSystem\
rem    |
rem    +-- PinUpDisplay.exe
rem    +-- PinUpPlayer.ini
rem    |
rem    +-- PUPVideos\
rem        |
rem        +-- YourPuPPack\
rem            |
rem            +-- PinUpPlayer.ini
rem            +-- Configure PuP Screens.bat   <-- THIS FILE
rem
rem  IMPORTANT
rem  ---------
rem  If the PuP-Pack does NOT contain a PinUpPlayer.ini, this batch file will
rem  automatically copy the global PinUpPlayer.ini from the PinUPSystem folder
rem  into the PuP-Pack before starting the configuration.
rem
rem  An existing PuP-Pack PinUpPlayer.ini will NOT be overwritten.
rem
rem  HOW IT WORKS
rem  ------------
rem  The batch file temporarily replaces the global PinUpPlayer.ini with the
rem  PuP-Pack's INI and starts the PinUP Display Configuration.
rem
rem  When you finish configuring the screens:
rem
rem    - The updated settings are copied back to the PuP-Pack INI.
rem    - The original global PinUpPlayer.ini is restored.
rem
rem  The global configuration therefore remains unchanged.
rem
rem  Simply place this BAT file inside the PuP-Pack you want to configure
rem  and run it.
rem
rem ============================================================================

title PuP Screen Configuration

set "PACK=%~dp0"
set "ROOT=%~dp0..\.."
set "GLOBAL=%ROOT%\PinUpPlayer.ini"
set "PACKINI=%PACK%PinUpPlayer.ini"
set "BACKUP=%TEMP%\PinUpPlayer_Global_Backup_%RANDOM%.ini"

echo.
echo ============================================
echo        PuP Screen Configuration
echo ============================================
echo.

rem ---------------------------------------------------------------------------
rem Check for the global PinUpPlayer.ini
rem ---------------------------------------------------------------------------

if not exist "%GLOBAL%" (
    echo ERROR: The global PinUpPlayer.ini was not found.
    echo.
    echo Expected location:
    echo %GLOBAL%
    echo.
    pause
    exit /b 1
)

rem ---------------------------------------------------------------------------
rem Check for PinUpDisplay.exe
rem ---------------------------------------------------------------------------

if not exist "%ROOT%\PinUpDisplay.exe" (
    echo ERROR: PinUpDisplay.exe was not found.
    echo.
    echo Expected location:
    echo %ROOT%\PinUpDisplay.exe
    echo.
    pause
    exit /b 1
)

rem ---------------------------------------------------------------------------
rem Create a PuP-Pack INI if it does not exist
rem ---------------------------------------------------------------------------

if not exist "%PACKINI%" (
    echo No PinUpPlayer.ini was found in this PuP-Pack.
    echo.
    echo Creating one from the global PinUpPlayer.ini...
    echo.

    copy /Y "%GLOBAL%" "%PACKINI%" >nul

    if errorlevel 1 (
        echo ERROR: Could not create the PuP-Pack PinUpPlayer.ini.
        echo.
        pause
        exit /b 1
    )

    echo PuP-Pack PinUpPlayer.ini created successfully.
    echo.
)

rem ---------------------------------------------------------------------------
rem Back up the global INI
rem ---------------------------------------------------------------------------

echo Backing up the global PinUpPlayer.ini...

copy /Y "%GLOBAL%" "%BACKUP%" >nul

if errorlevel 1 (
    echo ERROR: Could not create a backup of the global PinUpPlayer.ini.
    echo.
    pause
    exit /b 1
)

rem ---------------------------------------------------------------------------
rem Make the global INI writable
rem ---------------------------------------------------------------------------

attrib -R "%GLOBAL%" >nul 2>&1

rem ---------------------------------------------------------------------------
rem Temporarily load the PuP-Pack INI as the global INI
rem ---------------------------------------------------------------------------

echo Loading the PuP-Pack configuration...

copy /Y "%PACKINI%" "%GLOBAL%" >nul

if errorlevel 1 (
    echo ERROR: Could not load the PuP-Pack configuration.
    goto :RESTORE
)

rem ---------------------------------------------------------------------------
rem Start PinUP Display Configuration
rem ---------------------------------------------------------------------------

echo.
echo Starting PuP Display Configuration...
echo.
echo Move and resize your PuP screens as required.
echo Click SAVE when you are finished.
echo Then close the configuration window.
echo.

"%ROOT%\PinUpDisplay.exe" /config

rem ---------------------------------------------------------------------------
rem Copy the modified configuration back to the PuP-Pack
rem ---------------------------------------------------------------------------

echo.
echo Saving the updated configuration to this PuP-Pack...

copy /Y "%GLOBAL%" "%PACKINI%" >nul

if errorlevel 1 (
    echo WARNING: Could not update the PuP-Pack PinUpPlayer.ini.
)

rem ---------------------------------------------------------------------------
rem Restore the original global INI
rem ---------------------------------------------------------------------------

:RESTORE

echo.
echo Restoring the original global PinUpPlayer.ini...

copy /Y "%BACKUP%" "%GLOBAL%" >nul

if errorlevel 1 (
    echo.
    echo ********************************************
    echo WARNING!
    echo The original global PinUpPlayer.ini
    echo could NOT be restored.
    echo.
    echo Backup location:
    echo %BACKUP%
    echo ********************************************
    echo.
    pause
    exit /b 1
)

del "%BACKUP%" >nul 2>&1

echo.
echo ============================================
echo Configuration complete!
echo.
echo The PuP-Pack PinUpPlayer.ini was updated.
echo The global PinUpPlayer.ini was restored.
echo ============================================
echo.
pause

 

Edited by Tikimaster

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...