Canvas wedges cannot be walked up at the default scale/ratio in 0.17.9.1
Steps to Reproduce
- Place down Canvas Wedge
- Attempt to walk up
What I expected to happen
Expected to be able to walk up it
What happened
Instead cannot walk up it. If you jump onto it or run at it with some momentum, you can slide off of it though
EDIT: Temporary fix is to add .01 to the x-scale of all CanvasWedge
I’ve attached a simple script that does exactly this (WARNING: back-up before using!)
Code
import os.path
import struct
import re
def scaleset(match):
floats = match.group(4)
scale_x, scale_y, scale_z = struct.unpack('<fff', floats)
scale_x += 0.01
out_bytes = struct.pack('<fff', scale_x, scale_y, scale_z)
return b''.join(match.groups()[:-1]) + out_bytes
def main():
filename = 'CondoData'
buf = bytearray(os.path.getsize(filename))
with open(filename, 'rb') as fd:
fd.readinto(buf)
buf = re.sub(br'(CanvasWedge)(.+?)(WorldScale.+?Vector\x00{18})(.{12})', scaleset, buf)
with open(f'{filename}_output', 'wb') as fd:
fd.write(buf)
if __name__ == '__main__':
main()