summaryrefslogtreecommitdiffstats
path: root/generate_fx.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-09-29 15:09:29 -0700
committeryum <yumfood@airmail.cc>2022-09-29 15:09:29 -0700
commit963f8aecb44a6cff83a75a60deec102562d79ff1 (patch)
tree86d1ad21a12ac732c7043d03416eab2b111daf33 /generate_fx.py
parent6aecadd5f73fc92992435b2d210a55a01280de95 (diff)
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
Diffstat (limited to 'generate_fx.py')
-rw-r--r--generate_fx.py10
1 files changed, 5 insertions, 5 deletions
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)]