Posted by: DavidW
« on: January 12, 2019, 11:07:19 AM »Great - thanks!
VERSION @0
...
OUTER_SPRINT version @0
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
Package format it is. I'll revisit when the day comes.
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.