summaryrefslogtreecommitdiff
path: root/bck_funcs.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-23 12:37:51 -0400
committerOwl <isaclien9752@gmail.com>2025-08-23 12:37:51 -0400
commit0ab9e972cb4a4128c2041f6da580a72515b3db64 (patch)
tree1a79d85db13b9714af806b54358fda15aca2ddae /bck_funcs.py
parenta5bdfdab2ec68ebfe99535a54b3b0cd8b95a87d6 (diff)
downloadblenxy-0ab9e972cb4a4128c2041f6da580a72515b3db64.tar.gz
blenxy-0ab9e972cb4a4128c2041f6da580a72515b3db64.zip
Some changes to the BCK exporter
Diffstat (limited to 'bck_funcs.py')
-rw-r--r--bck_funcs.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/bck_funcs.py b/bck_funcs.py
index 8e2d6bb..e8482f8 100644
--- a/bck_funcs.py
+++ b/bck_funcs.py
@@ -7,9 +7,9 @@ from . import smg_common
# what this file will do is the following:
# pre_read_bck_file() takes the first look into the BCK and it checks if a BCK is correct.
-# On the way it assigns important variables to the final bck_raw_info (smg_bck class).
-# If the file is correct, then read_bck_file() will assign the remaining variables, if any
-# and return the respective structure (a copy of it, not the reference).
+# On the way it assigns all the variables to bck_raw_info (smg_bck_raw struct).
+# If the file is correct, then read_bck_file() will assign the actually useful variables
+# to a smg_bck_anim structure and return that structure
#
# in case of any error pre_read_bck_file() returns a string that can
# be read by a human to identify what it is wrong with the BCK file
@@ -299,7 +299,6 @@ def pre_read_bck_file(filepath):
# holder for variables
bck_raw_info = smg_bck_raw();
- ########
# header
# magic
@@ -340,7 +339,6 @@ def pre_read_bck_file(filepath):
if (bck_raw_info.header.unknown1[i] != 0xFF):
return bck_raw_error_str + "unknown 1"
- ##############
# ank1 section
# magic
@@ -396,7 +394,6 @@ def pre_read_bck_file(filepath):
+ (bck_raw_info.ank1.transl_arr_length * 4) > bck_raw_info.ank1.size):
return bck_raw_error_str + "ank1 translation array offset"
- ########################################################################
# refer to the offsets to read the animation data always (SMG does this)
# bone animation data
@@ -783,7 +780,7 @@ def write_smg_bck_raw(raw, filepath, endian_ch):
f.write(pad.string_fill(32, raw.ank1.scale_arr_offset + (raw.ank1.scale_arr_length * 4)))
# rotation array
for i in range(raw.ank1.rot_arr_length):
- # check if the slope surpaces max representation container
+ # check if the slope is larger in magnitude than the max representation container
# (truncate the value to the max representation)
value = int(raw.ank1.rot_arr[i])
if (value > 0x7FFF):