Author Topic: %MOD_FOLDER% for 'Example-MyMod-XXX' is 'XXX' instead of 'Example-MyMod-XXX'  (Read 1891 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Hi,

%MOD_FOLDER% for 'Example-MyMod-XXX' is 'XXX' instead of 'Example-MyMod-XXX'

Bug or '-' inside mod folder names aren't supported?
« Last Edit: March 31, 2019, 05:45:44 AM by AL|EN »
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
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.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Yes, sorry, it was "%TP2_BASE_NAME%" which produces error:

Code: [Select]
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:


Code: [Select]
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.
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Thanks!
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: