Skip to content

Commit

Permalink
(#112) fixing DisplacementInfo LumpClasses
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jul 4, 2023
1 parent 9c2048e commit 71d886a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bsp_tool/branches/nexon/vindictus69.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class DisplacementInfo(source.DisplacementInfo): # LUMP 26
"power", "smoothing_angle", "unknown", "contents", "face",
"lightmap_alpha_start", "lightmap_sample_position_start",
"edge_neighbours", "corner_neighbours", "allowed_vertices"]
_format = "3f3if2iI2i144c10I" # Neighbours are also different
_format = "3f3if2iI2i144B10I" # Neighbours are also different
# TODO: replace 44c w/ f"{DisplacementNeighbour._format}" * 4
_arrays = {"start_position": [*"xyz"], "edge_neighbours": 72,
"corner_neighbours": 72, "allowed_vertices": 10}
Expand Down
3 changes: 2 additions & 1 deletion bsp_tool/branches/strata/strata.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ class DisplacementInfo(base.Struct): # LUMP 26
"first_lightmap_alpha", "first_lightmap_sample_position",
"edge_neighbours", "corner_neighbours", "allowed_vertices"]
_format = "3f4ifiI2i144B10I"
_arrays = {"edge_neighbours": 72, "corner_neighbours": 72, "allowed_vertices": 10}
_arrays = {"start_position": [*"xyz"], "edge_neighbours": 72, "corner_neighbours": 72,
"allowed_vertices": 10}
# 4x DisplacementNeighbour: edge_neighbours
# 4x DisplacementCornerNeighbours: corner_neighbours
_classes = {"start_position": vector.vec3, "contents": source.Contents}
Expand Down

0 comments on commit 71d886a

Please sign in to comment.