So why %MOD_FOLDER% variable isn't set to this directory but instead it's taken from "BACKUP" keyword?
It's because people usually do things the way they want...
As in, a mod maker doesn't need to "setup" a folder name for their mod to be under, it's whatever the .tp2 notes it to be, it doesn't need to do with the backup folder either. Nor the .tp2 & .exe need to reflect the backups name.
Go figure, this can be done:
BACKUP ~impposibblegame/backup~
AUTHOR ~Jarno Mikkola aka The Imp~
VERSION ~v1~
BEGIN ~Adjust monsters hitpoints to be 2*original+40~ DESIGNATED 1
COPY_EXISTING_REGEXP GLOB ~^.+\.cre$~ ~override~
PATCH_IF (SOURCE_SIZE > 0x2cc) BEGIN // kinda protects against invalid files
READ_SHORT 0x48 "ismonster"
PATCH_IF ("%ismonster%" != 10) THEN BEGIN
READ_SHORT ~0x24~ "currenthp"
READ_SHORT ~0x26~ "maxhps"
OUTER_SET curhp = (%currenthp% *2 +40)
OUTER_SET mxhp = (%maxhps% *2 +40)
WRITE_SHORT ~0x24~ curhp
WRITE_SHORT ~0x26~ mxhps
END
END
Does the code come with a definite folder ?!? No. Is there a need to call the .tp2 a "setup-impposibblegame.tp2" No. Nor is there a need to place it in so it's path in an archive can be said to be: impposibblegame.zip\impposibblegame/setup-impposibblegame.tp2. But there's a distinct factor that it can be so... but there's no NEED to do any of that. Call it: nothing and don't even upload the file, just a text print out of it to a forum will do you well in spreading it. This is only of course if the mod doesn't have to copy things from it's own folder.. but that's natural today more than before as there's no need to copy files anymore in large part dues to them being able to be generated with more ease in weidu, via new functions(not talking about media file of course, but of .cre's, .spl's etc small files).
But what's a ".to2", did the toad eat the p's pole ?