Hey! Unfortunately I did not find a way to add (and compile) the source files the normal way.
I’m using a few TQ assets like the Snow Textures or Scenery Animals. These assets can’t be compiled through the Asset Manager. Throws something like 1300 errors should you try.
This annoyed me, so I removed them from the source and wrote a short batch file to copy the finished .arc archives to the resources-directory every time I build my mod for the first time.
I also don’t think you can easily rebuild the archives even if I added the files. So lets do it with the Archivetool.
You can read this tutorial about the Archivetool here, but it doesn’t cover what you actually need to do.
Therefore a short tutorial from me instead.
Create a folder somewhere and drop all you need into it (to avoid messing up). That would be:
- ArchiveTool.exe (from Grim Dawn installation directory)
- zlibwapi.dll (from Grim Dawn installation directory)
- All .arc archive files from Nydiamar, for example Creatures.arc
- Your files from your source-directory (not the folders named Creatures, Textures and so on, but only their contents)
Now open a Command Prompt. Use the CD command to change the directory to your newly created folder. For example:
CD "C:\New Folder"
You can type Archivetool for a list of available commands. Use -add to add your files to the archive.
Command might look like this:
Archivetool Creatures.arc -add Animation.anm "C:\New Folder" 0
Archivetool Music.arc -add Songtitle.ogg "C:\New Folder" 0
Archivetool TerrainTextures.arc -add Texture.tex "C:\New Folder" 7
Or if you want to add a directory/folder with eventually multiple files:
Archivetool Creatures.arc -add Foldername "C:\New Folder" 0
Check if you did everything right with this command:
Archivetool Creatures.arc -extract "C:\New Folder"
Afterwards drop the updated .arc archives into the resources-directory of Nydiamar. You need to readd them every time you build Nydiamar for the first time (after opening the Asset Manager).
I will release the update with an updated source probably tomorrow.