floooh/oryol-samples

On a new Linux box: error: /home/shlomo/dev/production/ui/oryol-samples/src/KC85-3/test.vox is not a VOX file!

Opened this issue · 2 comments

I get that error on Windows too. I guess it's a python2 vs python3 problem:

with open(self.vox_file, 'rb') as f :
magic = f.read(4)
if magic != 'VOX ':
util.fmtError('{} is not a VOX file!'.format(self.vox_file))
version = struct.unpack('<I', f.read(4))[0]
print("VOX file '{}' version={}".format(self.vox_file, version))
self.load_chunk(f)

The file is opened as binary (since it's a binary data file), but then the file compares the first 4 bytes against a string. Since python3 no longer treats byte streams and strings as interchangeably, I guess this check fails now in python3 (the ImportVox.py script was written against python2)

My friend, I have been trying for a day or two ... to compile one single example ... either from here: http://floooh.github.io/oryol-samples/ or your wonderful chip-test library (see my issues here) with no luck. I really hope something works.