From 963f8aecb44a6cff83a75a60deec102562d79ff1 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 29 Sep 2022 15:09:29 -0700 Subject: delete SetLetters.cs Doesn't work in game. Also change # of characters per slot to 80, down from 128. Also realize that VRChat supports 256 BITS of parameter, not 256 BYTES. Next design idea: * 3 8-bit parameters: letter, row, col * 1 boolean parameter: active * one animation for each slot/letter combo, as usual * one fx layer like this: if !active: do nothing if row == 0: if col == 0: if letter == 0: play row00_col00_letter00 animation * because write defaults are off, we should be able to "save" letters by simply setting active = false * thus we don't need to simultaneously address the entire board, saving memory --- generate_fx.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'generate_fx.py') diff --git a/generate_fx.py b/generate_fx.py index 2deadba..da64def 100644 --- a/generate_fx.py +++ b/generate_fx.py @@ -308,7 +308,7 @@ AnimatorState: - {fileID: %SET_LETTERS_SCRIPT_U2%} m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 - m_WriteDefaultValues: 1 + m_WriteDefaultValues: 0 m_Mirror: 0 m_SpeedParameterActive: 0 m_MirrorParameterActive: 0 @@ -455,7 +455,7 @@ def genCellAnimationLayers(state): print(replaceMacros(CELL_LAYER_HEADER, params)) # Add a state for each animation, i.e. for each character writeable in this slot. - for i in range(0,128): + for i in range(0,80): params["CELL_LAYER_STATE_U2"] = get_u2(params["ANIMATOR_STATE_U"], state) params["CELL_LAYER_STATE_U2" + layer + ("_Letter%02d" % i)] = params["CELL_LAYER_STATE_U2"] params["STATE_Y"] = str(-190 - i * 40) @@ -463,7 +463,7 @@ def genCellAnimationLayers(state): print(CELL_LAYER_MIDDLE) - for i in range(0,128): + for i in range(0,80): params["CELL_LAYER_TRANSITION_U2"] = get_u2(params["ANIMATOR_STATE_TRANSITION_U"], state) params["CELL_LAYER_TRANSITION_U2" + layer + ("_Letter%02d" % i)] = params["CELL_LAYER_TRANSITION_U2"] print(replaceMacros(CELL_LAYER_TRANSITION_HEADER, params)) @@ -473,7 +473,7 @@ def genCellAnimationLayers(state): print(replaceMacros(CELL_LAYER_SUFFIX, params)) # Done creating the layer header! Phew. Let's make the states next. - for i in range(0,128): + for i in range(0,80): params["ANIMATION_NAME"] = layer + ("_Letter%02d" % i) params["CELL_LAYER_STATE_U2"] = params["CELL_LAYER_STATE_U2" + layer + ("_Letter%02d" % i)] # Get the GUID of the animation we will play at this state. @@ -482,7 +482,7 @@ def genCellAnimationLayers(state): print(replaceMacros(CELL_LAYER_STATE, params)) # OK, finally, let's wire up the states. - for i in range(0,128): + for i in range(0,80): params["CELL_LAYER_TRANSITION_U2"] = params["CELL_LAYER_TRANSITION_U2" + layer + ("_Letter%02d" % i)] params["TRANSITION_THRESHOLD"] = str(i) params["CELL_LAYER_DST_STATE_U2"] = params["CELL_LAYER_STATE_U2" + layer + ("_Letter%02d" % i)] -- cgit v1.2.3