Ah, that's not a reference to RAM, the buffer of four bytes it's expecting is part of the file structure it's currently attempting to parse I believe (four bytes is such a minuscule amount of memory). Currently there are a few ways to work around that. In your case you can see from the error that it's failing when trying to parse some shader data. Getting the shader data is more of a research thing, and you can simply disable it to avoid error in that case. Go into the dump_asset script and find the part that looks like this (roughly half way down):
Code: Select all
def process_asset(dump_dir, forge, uid, entry_index):
Right under that line add a return, or you can just copy/past this bit of code (I include a little bit below it to make it clearer, that area should look like this afterwards):
Code: Select all
def process_asset(dump_dir, forge, uid, entry_index):
return
shaders_dir = dump_dir / 'shaders'
if not shaders_dir.is_dir():
shaders_dir.mkdir()
SHADER_MAGIC = 0x1C9A0555
There are some other workarounds too but that should fix that one for you.