Dynamic Variables - mechpaul/NXPatcher GitHub Wiki

Dynamic variables are determined at runtime. Each dynamic variable looks like the following:

{nxpatcher:VAR_NAME}

where VAR_NAME is one of the variables listed below:

version

Determines the version of base.wz in the current directory. Base.wz is used because it is always the most up-to-date wz file.

version_to

Calculates the version of base.wz and adds 1 to it. So if the version of base.wz is 80, version_to will return 81. If 93, then 94.

inputfileprefix

The prefix of a file name is considered to be anything that is not the suffix - such as in the following:

00083to00084.patch
ManualPatch00296to00297.exe
Etc.wz

The prefix is taken from the file name currently being operated on by NXPatcher. As an example, if the write command is being used on "00100to00105.patch" and the {write:outputexe} variable is set to "{nxpatcher:inputfileprefix}.exe", the exe file will be written to "00100to00105.exe"