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: DavidW
« on: January 12, 2019, 11:07:19 AM »

Great - thanks!
Posted by: AL|EN
« on: January 12, 2019, 10:32:24 AM »

How about %MOD_README% for README line ?
Posted by: Wisp
« on: January 12, 2019, 08:26:31 AM »

Done. %MOD_VERSION% evaluates to the string set by the TP2 flag VERSION.
Posted by: DavidW
« on: January 09, 2019, 07:24:18 PM »

That's cute. Thanks, will try.
Posted by: CamDawg
« on: January 09, 2019, 07:21:08 PM »

Version and sprint accept strings, so you could do some combo of

Code: [Select]
VERSION @0
...
OUTER_SPRINT version @0

That would keep it to updating one source of info, the @ string contents.
Posted by: DavidW
« on: January 09, 2019, 07:06:04 PM »

I don't want it as metadata, I want to use it in the TP2 code itself. VERSION is already, and necessarily, information in the mod, I just want access to it.
Posted by: AL|EN
« on: January 09, 2019, 04:52:18 PM »

And a README also,  such requests are connected to this:
Quote
I don't think the TP2 file is the right place for metainformation. You shouldn't need to run WeiDU to get at it. The manifest file of the proposed new packaging format would seem like a more appropriate place to put it. The manifest can itself be in JSON and be directly parseable, without first invoking WeiDU.
and this: http://forums.pocketplane.net/index.php/topic,29663.msg338630.html#msg338630
Quote
Package format it is. I'll revisit when the day comes.
Posted by: DavidW
« on: January 09, 2019, 10:54:27 AM »

I don't understand any of that.
Posted by: The Imp
« on: January 09, 2019, 10:29:34 AM »

Would it be possible to store the mod's VERSION in a string (say, MOD_VERSION) that the tp2 could access? (I can set it manually, of course, but then the two could get out of sync)
It is... but you mean a formally installed mods VERSION tag, well that's a bit harder... especially as you don't want to mix and match, but sure. But use the .tp2 name as another variable too, so that won't happen.
If the weidu.log was a .2da, this would be easy,-er lets say.
Posted by: DavidW
« on: January 09, 2019, 09:58:23 AM »

Would it be possible to store the mod's VERSION in a string (say, MOD_VERSION) that the tp2 could access? (I can set it manually, of course, but then the two could get out of sync)