Pocket Plane Group
Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on March 31, 2019, 05:20:55 AM
-
Hi,
%MOD_FOLDER% for 'Example-MyMod-XXX' is 'XXX' instead of 'Example-MyMod-XXX'
Bug or '-' inside mod folder names aren't supported?
-
I'm unable to reproduce with the information you have provided. Can you provide more?
If I set the actual folder name and the BACKUP directory to example-mymod-xxx, that's the MOD_FOLDER. If I set the folder name and TP2 name to example-mymod and the BACKUP directory to example-mymod-xxx, MOD_FOLDER is example-mymod.
-
Yes, sorry, it was "%TP2_BASE_NAME%" which produces error:
BACKUP "Example-MyMod-XXX\Backup"
SUPPORT "Example-MyMod-XXX"
VERSION "0.0.1"
BEGIN "Example-MyMod-XXX" DESIGNATED 1000 NO_LOG_RECORD
PRINT "%MOD_FOLDER%"
PRINT "%TP2_BASE_NAME%"
Output:
2 [ALIEN-PC]ALIEN G:\Mods-Temp0 > .\Setup-Example-MyMod-XXX.exe --nogame --debug-assign
[G:\Mods-Temp0\Setup-Example-MyMod-XXX.exe] WeiDU version 24600
{Setup-astScriptPatcher.exe} Queried (pid = 256) version = 24600
SET %TP2_AUTHOR% = ~Example-MyMod-XXX~
SET %TP2_FILE_NAME% = ~EXAMPLE-MYMOD-XXX/EXAMPLE-MYMOD-XXX.TP2~
SET %TP2_BASE_NAME% = ~XXX~
SET %MOD_FOLDER% = ~Example-MyMod-XXX~
GET ~%MOD_FOLDER%~ = ~Example-MyMod-XXX~
GET ~%MOD_FOLDER%~ = ~Example-MyMod-XXX~
Install Component [Example-MyMod-XXX]?
[I]nstall, or [N]ot Install or [Q]uit? i
GET ~%MOD_FOLDER%~ = ~Example-MyMod-XXX~
SET %WEIDU_EXECUTABLE% = ~G:\Mods-Temp0\Setup-Example-MyMod-XXX.exe~
GET ~%argv[0]%~ = ~%argv[0]%~
GET ~%argv[0]%~ = ~%argv[0]%~
Installing [Example-MyMod-XXX] [1.0.0]
SET %COMPONENT_NUMBER% = 1000
SET %INTERACTIVE% = 1
GET ~%MOD_FOLDER%~ = ~Example-MyMod-XXX~
Example-MyMod-XXX
GET ~%TP2_BASE_NAME%~ = ~XXX~
XXX
SUCCESSFULLY INSTALLED Example-MyMod-XXX
Press ENTER to exit.
-
Fixed.
-
Thanks!