Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on January 07, 2019, 06:03:36 AM

Title: --list-keywords-json in order to get VERSION, README etc values
Post by: AL|EN on January 07, 2019, 06:03:36 AM
Hi,

wisp, could you create --list-keywords-json in order to o get VERSION, README etc values?

What about also all automatic variables which was set before "BEGIN" statement of the first component? Like %MOD_FOLDER%?

Basically, everything which weidu could emit (variables and values) without executing installation of the mod itself.

EDIT: Before someone suggest, I already try REGEX and it is very not optimized way because I have to process every single line of tp2 in order to match those keywords.

EDIT2: I found this:

Quote
setup-modname.exe --debug-assign

but such output get's mixed with weidu prompts like for eg:
Quote
82 [ALIEN-PC]ALIEN G:\Gry\Beamdog\00783 > .\setup-mymod.exe --nogame --debug-assign --skip-at-view --list-components .\mymod\setup-mymod.tp2 0 --no-exit-pause
[G:\Gry\Beamdog\00783\setup-mymod.exe] WeiDU version 24600
SET %TP2_AUTHOR% = ~For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net.~
SET %TP2_FILE_NAME% = ~.\mymod\setup-mymod.tp2~
SET %TP2_BASE_NAME% = ~mymod~
SET %MOD_FOLDER% = ~weidu_external~
SET %WEIDU_ARCH% = ~amd64~
SET %WEIDU_OS% = ~win32~
SET %WEIDU_VER% = ~24600~
GET ~mymod/lang/english/setup.tra~ = ~mymod/lang/english/setup.tra~
GET ~weidu_external/lang/mymod/english/setup.tra~ = ~weidu_external/lang/mymod/english/setup.tra~
SET %TP2_AUTHOR% = ~For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net.~
SET %TP2_FILE_NAME% = ~.\mymod\setup-mymod.tp2~
SET %TP2_BASE_NAME% = ~mymod~
SET %MOD_FOLDER% = ~weidu_external~
SET %WEIDU_ARCH% = ~amd64~
SET %WEIDU_OS% = ~win32~
SET %WEIDU_VER% = ~24600~
GET ~mymod/lang/english/setup.tra~ = ~mymod/lang/english/setup.tra~
GET ~weidu_external/lang/mymod/english/setup.tra~ = ~weidu_external/lang/mymod/english/setup.tra~
SET %TP2_AUTHOR% = ~For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net.~
SET %TP2_FILE_NAME% = ~.\mymod\setup-mymod.tp2~
SET %TP2_BASE_NAME% = ~mymod~
SET %MOD_FOLDER% = ~weidu_external~
SET %WEIDU_ARCH% = ~amd64~
SET %WEIDU_OS% = ~win32~
SET %WEIDU_VER% = ~24600~
GET ~mymod/lang/english/setup.tra~ = ~mymod/lang/english/setup.tra~
GET ~weidu_external/lang/mymod/english/setup.tra~ = ~weidu_external/lang/mymod/english/setup.tra~
~.\MYMOD\SETUP-MYMOD.TP2~ #0 #1000 // First component: v32
~.\MYMOD\SETUP-MYMOD.TP2~ #0 #2000 // Second component -> Subcomponent A: messes with Ilyich again: v32
~.\MYMOD\SETUP-MYMOD.TP2~ #0 #2001 // Second component -> Subcomponent B: checks for the presence of the marker we placed in component 1: v32
any chances to have such output as JSON?

I assume that "README" and "VERSION" are missing as a weidu constant like %MOD_README% and %MOD_VERSION%?