summaryrefslogtreecommitdiff
path: root/smg_common.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
committerOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
commitef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5 (patch)
tree88c06847d16e29acdd743066b0781fc17ebde3eb /smg_common.py
parent5fb5906f45a20652b8cbadc5657df9ca506f11db (diff)
downloadblenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.tar.gz
blenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.zip
all the stuff
Diffstat (limited to 'smg_common.py')
-rw-r--r--smg_common.py75
1 files changed, 75 insertions, 0 deletions
diff --git a/smg_common.py b/smg_common.py
new file mode 100644
index 0000000..c278382
--- /dev/null
+++ b/smg_common.py
@@ -0,0 +1,75 @@
+# paddng string
+padding =
+
+# name tables
+
+# read name tables found in SMG binary files
+
+# ~ # structure raw
+# ~ class smg_name_table_raw:
+ # ~ # functions
+ # ~ def __init__(self):
+ # ~ self.name_count = None
+ # ~ self.unknown1 = None
+ # ~ self.name_info = [] # of name_count length
+ # ~ self.names = [] # of name_count length
+ # ~ def __str__(self):
+ # ~ rtn = "Name count: %s\n" % (self.name_count)
+ # ~ rtn += "Unknown 1: %04X\n" % (self.unknown1)
+ # ~ rtn += "Names information:\n"
+ # ~ for i in range(self.name_count):
+ # ~ rtn += " Name %d:\n" % (i)
+ # ~ rtn += self.name_info[i].__str__()
+ # ~ rtn += "Names:\n"
+ # ~ for i in range(self.name_count):
+ # ~ rtn += " Index %d -> %s\n" % (i, names[i])
+ # ~ return rtn
+
+ # ~ # information about the names
+ # ~ class smg_name_info:
+ # ~ # functions
+ # ~ def __init__(self):
+ # ~ self.hash = None
+ # ~ self.offset = None
+ # ~ def __str__(self):
+ # ~ rtn = " Hash: %04X\n" % (self.hash)
+ # ~ rtn += " Offset: %s\n" % (self.offset)
+ # ~ return rtn
+
+# ~ # actual structure to use
+# ~ class smg_name_table_info:
+ # ~ # functions
+ # ~ def __init__(self):
+ # ~ self.name_count = None
+ # ~ self.names = [] # of length name_count
+ # ~ def __init__(self):
+ # ~ rtn = "Name count: %s\n" % (self.name_count)
+ # ~ rtn += "Names:\n"
+ # ~ for i in range(self.name_count):
+ # ~ rtn += " Index %d -> %s\n" % (names[i])
+ # ~ return rtn
+
+# ~ # create a global variable to hold temporal information
+# ~ name_table_raw_info = None
+# ~ name_table_error_str = "name_table-error: "
+# ~ f = None
+
+# ~ # main function
+# ~ # will read and will check while reading
+# ~ def read_name_table(byte_array):
+
+ # ~ # make global variables editable
+ # ~ global f
+ # ~ global name_table_raw_info
+ # ~ # "pre read" the file
+ # ~ result_str = pre_read_name_table(byte_array)
+ # ~ print(result_str)
+ # ~ return None
+
+# ~ # function to check an encoded name table before getting its full information out
+# ~ def pre_read_name_table(byte_array):
+
+
+
+ # ~ return name_table_error_str + "all good"
+