Ensure "ffxiv_structs.yml" and "data.yml" exist in the same directory as the script.
Usage:
Navigate to the "ida" directory.
Execute the script with: "deno run convert-to-rcnet.ts"
(It's possible to automatically grant all permissions by using the -A flag: "deno run -A convert-to-rcnet.ts")
Output is going to be a "ffxiv.rcnet" file.
I've also added command line switches to toggle support for XivReClassPlugin and generation of VTable fields/unions.
These can be added after the script name, for example deno run -A convert-to-rcnet.ts --plugin=false --vtables=false
The script could be improved if CExporter would export:
if the struct is an agent (AgentAttribute present)
a list of addon names (from the Addon attribute - technically 1 name is enough)
if a byte array is used for a string (IsString prop from FixedSizeArrayAttribute)
Using a github action we could upload the converted rcnet file as artifact, or we compile this script into an executable using deno compile.
This script generates a ReClass.NET project based on definitions in ffxiv_structs.yml and data.yml.
Prerequisites:
Usage:
Output is going to be a "ffxiv.rcnet" file.
I've also added command line switches to toggle support for XivReClassPlugin and generation of VTable fields/unions. These can be added after the script name, for example
deno run -A convert-to-rcnet.ts --plugin=false --vtables=false
The script could be improved if CExporter would export:
Using a github action we could upload the converted rcnet file as artifact, or we compile this script into an executable using
deno compile
.