Closed AntonioCS closed 2 years ago
The .dat files are archive files, the xml files describe what goes into them and how they are built. To build the archive files there are some bat files in the Tools folder.
Right, I can see a build_data.bat
which calls Builder.exe
.
The code for Builder
is included in the project. I'll try and see if I can make something run this automatically.
Thank you so much for the super quick response.
Hey,
So I'm back at trying to get this to compile. I'm at the
ResourceFactory::Parse_Resources
which is here: https://github.com/AntonioCS/ZombieGrinder/blob/master/Source/Engine/Resources/ResourceFactory.cpp#L227The code is trying to find
<resource_dir_name> + .dat
. I've added aDBG_LOG
and got this:The only files I find in those directories are
xml
notdat
files.I have tried changing the
.dat
to.xml
which of course results in the code continuing. The issue with the code after this is that I get this exception:So I guess this wasn't suppose to be xml? I really need to figure out how to parse the resource files properly because if nothing gets loaded the whole projects halts at:
Because then this whole things fails:
Apologies if this is something super obvious... My c++ is limited, any tips will be helpful. Thanks!