Skip to content

Instantly share code, notes, and snippets.

@Caesim404
Created February 8, 2017 20:22
Show Gist options
  • Save Caesim404/41d9f14cf96dc34308f28cb5f6d863a3 to your computer and use it in GitHub Desktop.
Save Caesim404/41d9f14cf96dc34308f28cb5f6d863a3 to your computer and use it in GitHub Desktop.
#!/bin/python2
sokf_invisible = 0x0000000000004000
file = open("scene_props.txt", "rb")
text = file.read()
file.close()
array = text.split()
i = 3
length = int(array[i])
i += 1
i_i = 0
for i_i in xrange(length):
print array[i]
i += 1
flags = int(array[i])
if flags & sokf_invisible == sokf_invisible:
array[i] = str(flags ^ sokf_invisible)
i += 4
t_len = int(array[i])
i += 1
for t_i in xrange(t_len):
i += 1
o_len = int(array[i])
i += 1
for o_i in xrange(o_len):
i += 1
a_len = int(array[i])
i += 1
for a_i in xrange(a_len):
i += 1
file = open("scene_props.txt", "wb")
file.write(" ".join(array))
file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment