As a workaround I removed the CRC checks and added my gadget straight into springcontent.sdz, which worked a treat.
However I quickly found that updating the sdz archive after each change was a hassle. I tried creating springcontent.sdd but unlike normal mods the springcontent.sdz path is hardcoded. I edited the source again to create the following:
rts/Game/PreGame.cpp + tools/unitsync/unitsync.cpp
Code: Select all
// always load springcontent
logOutput << "Loading Spring content archive\n";
hpiHandler->AddArchive("base/springcontent.sdz", false);
// update VFS with springcontent development files
hpiHandler->AddArchive("base/springcontent.sdd", true);
This isn't quite the same as the normal mod ArchiveScanner process but it has the advantage that the game starts faster (theoretically at least since archives require less disk accesses than directory traversal).
Anyway I'm posting it here as a suggestion for making spring development a bit easier. Hopefully something like it or the normal mod loading process can be incorporated into trunk if there's enough demand.
Comments welcome.