Post reply

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:
Subject:
Message icon:

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

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Wisp
« on: October 30, 2022, 07:13:07 AM »

So having such '--mod-info' feature would make current mod scanning two times faster.
So given the amount and breadth of data being output by this option, it'd have to return a structured result (i.e., a JSON object). I'll see what I can do.
Posted by: AL|EN
« on: July 11, 2022, 07:27:07 AM »

With the recent PI update, the mentioned '--mod-info' proposal gets a new level of usefulness:

- with the latest PI version, I've added dynamic full mod scanning
- all mods are scanned in the background and all required data is extracted
- mod language list is extracted via --list-languages
- mod component list is extracted via --list-components-json
- so I need to run weidu process twice and the whole scanning process is two times slower for each mod


So having such '--mod-info' feature would make current mod scanning two times faster.
Posted by: AL|EN
« on: October 11, 2020, 04:11:54 AM »


That's exactly what I want and I would have requested it long time ago if I knew that using --debug-assign is not recommended. To be specific, I would like to get those variables (and also new ones if there will be introduced later):


Code: [Select]
TP2_AUTHOR
TP2_FILE_NAME
TP2_BASE_NAME
MOD_FOLDER
MOD_VERSION
WEIDU_ARCH
WEIDU_OS
WEIDU_VER


I have requested including mods README line before, can you take look at it and see if it can be included?


Now, when see how you call the commandline switch (--mod-info), I could image that it serves much general purpose.


- all above variables
- all available languages
- all components associated to language (foreach lang -> list-components-json)


but this would require some more work, not sure if you currently have time for it now.
Posted by: Wisp
« on: October 10, 2020, 12:17:40 PM »

So you want one or more CL options that return the values of MOD_FOLDER, MOD_VERSION and TP2_AUTHOR? Anything else? I can swing some sort of --mod-info option that does that.
Posted by: AL|EN
« on: October 05, 2020, 12:42:58 PM »

Well, I'm using --debug-assign to read MOD_FOLDER, MOD_VERSION, TP2_AUTHOR. Launching weidu has the advantage of not relaying on RegEx. I don't know another way to get those values so if this is not the recommended way, I request to have one which is blessed.
Posted by: Wisp
« on: October 05, 2020, 11:16:00 AM »

--debug-assign only emits stuff when variables are assigned. I'd suggest you either wait for proper implementations of what you need or request them. I can't recommend you use something since I don't recommend you use --debug-assign.
Posted by: AL|EN
« on: October 03, 2020, 01:01:14 PM »

Hi,


What's the best way to get output from --debug-assign without installing mod?


I'm currently use --list-componnents but maybe there is a better way?