Author Topic: --list-keywords-json in order to get VERSION, README etc values  (Read 711 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
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%?
« Last Edit: January 09, 2019, 01:05:08 PM 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

 

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)?: