Editing CXML Containers
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1,983: | Line 1,983: | ||
v5 alpha - Floats precission adjusted (previous versions had errors in the output of coldboot.raf) | v5 alpha - Floats precission adjusted (previous versions had errors in the output of coldboot.raf) | ||
v6 alpha - Now the extracted filenames contains the hexcodes for fileoffset and filelength, both values are needed for the SEARCH/REPLACE patterns to remap them in the internal .QRC structure, as can be seen in the experiments made [https://www.psx-place.com/threads/research-modifying-the-coldboot-gameboot-sequence-custom_render_plugin-sprx-rco.25952/page-19#post-214240 here] and [https://www.psx-place.com/threads/research-modifying-gaia-visualization-custom_render_plugin-earth-qrc.27756/ here] | v6 alpha - Now the extracted filenames contains the hexcodes for fileoffset and filelength, both values are needed for the SEARCH/REPLACE patterns to remap them in the internal .QRC structure, as can be seen in the experiments made [https://www.psx-place.com/threads/research-modifying-the-coldboot-gameboot-sequence-custom_render_plugin-sprx-rco.25952/page-19#post-214240 here] and [https://www.psx-place.com/threads/research-modifying-gaia-visualization-custom_render_plugin-earth-qrc.27756/ here] | ||
{{Boxcode|height=600px|title=CXML decompiler v7 alpha (python script)|code=<syntaxhighlight lang="python"> | {{Boxcode|height=600px|title=CXML decompiler v7 alpha (python script)|code=<syntaxhighlight lang="python"> | ||
Line 2,280: | Line 2,279: | ||
write_raw(f, '\"') | write_raw(f, '\"') | ||
elif attribute.type == Attribute.TYPE_FILE: | elif attribute.type == Attribute.TYPE_FILE: | ||
file_name = ' | file_name = '{0}_{1:08X}_{2:08X}.bin'.format(self.document.file_prefix, attribute.offset, attribute.length) | ||
file_data = attribute.get_file() | file_data = attribute.get_file() | ||
with open(file_name, 'wb') as of: | with open(file_name, 'wb') as of: |