Skip to content

Commit

Permalink
added viewclip_index info
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-thomas774 committed Aug 9, 2023
1 parent 24094f2 commit 6b0fbcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions actor_params.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
V_Clip:
someIndex: #"0x805b5668 : byte array of 64 bytes used for updates?"
viewclip_index:
mask: 0x3F
shift: 0
unk1: # if FF: arr[someIndex] | 2, else arr[someIndex] | 1. (draw func)"
behavior:
mask: 0xF
shift: 8
values: ['Load', 'Unload', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', 'Unload']
areaIdx:
mask: 0xF
shift: 12
Expand Down
5 changes: 4 additions & 1 deletion bzs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ def objAddExtraInfo(parsed_item):
extraInfo['name'] = map_text['SAVEOBJ_NAME_UNKNOWN']
else:
extraInfo['name'] = map_text['SAVEOBJ_NAME_%02d' % val]

viewclip_index = read_halfword(parsed_item["id"]) >> 10
if viewclip_index != 63:
extraInfo["viewclip_index"] = viewclip_index

if len(extraInfo) > 0:
parsed_item['extra_info'] = extraInfo

Expand Down

0 comments on commit 6b0fbcc

Please sign in to comment.