Yes, I have a patch lying around.
Scope: Playing IPO animations controlled by Python
Problem: Plasma needs the *same* index for both "animationname" (the name) and "animation" (animated object); but AlcScript simply increments the index for each AlcScript entry, so name and object do not match, and playing an animation via Python does not work
Solution: Give the ability to force name and object to the same index where needed in AlcScript
This patch does allow it:
AlcScript example:- Code: Select all
# each line starting with "-" normally counts up the index automatically
# ...
# Normal stuff
- type: (some type) # auto-index: 8
value: (some value)
# Animation
- type: animationname # auto-index: 9
value: OuterCamAnim_01 # animation NAME
index: 10 # 9+1 (force to 10)
- type: animation # index 10
ref: :TransOuterCam_01 # animated OBJECT, not animation name!
index: 10 # (same index as name)
# Normal stuff again
- type: (some type) # auto-index 11 (counting continues)
value: (some value)
- type: (some type) # auto-index 12
value: (some value)
The patch does not affect existing ages; it only comes into play when there's an index value attached to an object in AlcScript. This is already used in Relativity.
Without this patch, a Relativity export won't behave as desired; the Transporters won't work, because their animation has to be managed by Python.
Original thread this is based on:
viewtopic.php?f=7&t=5300Btw, cool that you do profiling to speed PyPRP up. Do you use profile of cProfile?