Where is hak information kept after unpack?
Closed this issue · 4 comments
I created a mod, added a custom hak then unpacked the mod with nasher. I don't see any reference to the hak in the src folder.
If you want to unpack the hak as well, you will need to set up a target for that. For example:
[Target]
name = "module"
file = "my_module.mod"
include = "src/**/*.{nss,json}"
exclude = "src/hak/**/*"
"*" = "src"
[Target]
name = "hak"
file = "my_hak.hak"
include = "src/hak/**/*"
"*" = "src/hak"
Then unpack the module or hak wiith nasher unpack module
or nasher unpack hak
respectively. Your module would then be stored in src/
while the hak would be stored in src/hak/
.
You could set up a more complicated source file structure if you want to. For ideas, check out how Dark Sun does it.
What I mean is. If I have a module that uses a hak I added from the toolset. And I unpack that module in src/ and then pack it again, the custom hak will still be reference in the module? Because I don't see the module properties in the src dir
Oh, nevermind, I see in module.iso.json. I was grepping for lowercase hak and its "Hak"
Ah, I see.