CActorProgress seems to be regulator actor which swtich construction model animation for construction model actors during consturction phase of add-on buildings so these add-on buldings whose finished model has no model of constuction phase could "pretend" to be playing its' own Build animations in the game. Regular add-on buildings, like Tech lab, Reactor, Tech Reactor, all exploit this mechanism to acquire their construction appearance in game when Barracks, Factory or Starport construct them.
From animation editor I browsed all animations of Terran Sensor Tower("Assets\Buildings\Terran\SensorTower\SensorTower.m3") and all construction animations are:
Build A Start,Build A Stand,Build B Start,Build B Stand,Build C Start,Build C Stand,Build D Start
While all construction animations of "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3" are:
Build A Start,Build A Stand,Build B Start,Build B Stand,Build C Start,Build C Stand,Build D Start
Both models have same Build Animation sequence and, model "Sensor Tower Build" and "Tech Lab Build" just use the same m3 file, "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3"
Problem
However, problem came up when I tried to apply similar mechanism to my custom add-on building, Comsat Station which uses model of Terran Sensor Tower, whose model possess its' own Build animations.
My custom add-on building did play model "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3" during its' adding-on phase, and this model is correctly played under StageArray of "TerranConstructionAttachedSmall" and removed when construction is finished. However, the real model of the Sensor Tower plays abnormal animations during construction phase:
The real model, "Sensor Tower" with m3 file path "Assets\Buildings\Terran\SensorTower\SensorTower.m3", shall play its' construction animation coordinatively with the building progress. However, model "Sensor Tower" played disordered Build animation during consruction phase and I receive warning message in test game like the image I attach in later floors.
The CActorModel just played Build C Stand,Build D Start when the construction progress 50% finished and all Build animations repeated from A to D again during the left 50%. What's more, at time when the whole construction is almost done, CActorModel perfectly played the Build D Start of "Assets\Buildings\Terran\SensorTower\SensorTower.m3" with symmetry to the construction bar.
I just cannot understand are these such warning message and damn bug.
I think I should have done all what is correct.
So any mistakes I've made and, what shall I do to solve this trouble?
Hoping for help and it would be great if someone may point out the exact mechanism of this.
Besides, how does stage settings in "StageArray" control the performance of models used by construction actors? I just cannot comprehend the meaning of "BlendTime" and what the negative value "-1.000" stands for.
It seems that the animation of given model linked to real actor of my add-on building has no loop?
But just as what I listed before, both model of finished actor and the one of the construction actor have same Build animation sequence and, even the "StageArray" controls not the construction actor but the finished one, still the model shall play its regular animation isn't it?
What I met in testing game are briefly displayed in these screenshots:
You can see the animation of final construction stage of the model "Assets\Buildings\Terran\SensorTower\SensorTower.m3" played in wrong progress point and retrieved to earlier animation stage like Build A,B. Such problem happens several times until the construction is almost done, the animation Build D Start, the final animation of SensorTower.m3 Build, is played.
Introduction
CActorProgress seems to be regulator actor which swtich construction model animation for construction model actors during consturction phase of add-on buildings so these add-on buldings whose finished model has no model of constuction phase could "pretend" to be playing its' own Build animations in the game. Regular add-on buildings, like Tech lab, Reactor, Tech Reactor, all exploit this mechanism to acquire their construction appearance in game when Barracks, Factory or Starport construct them.
From animation editor I browsed all animations of Terran Sensor Tower("Assets\Buildings\Terran\SensorTower\SensorTower.m3") and all construction animations are: Build A Start,Build A Stand,Build B Start,Build B Stand,Build C Start,Build C Stand,Build D Start
While all construction animations of "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3" are: Build A Start,Build A Stand,Build B Start,Build B Stand,Build C Start,Build C Stand,Build D Start
Both models have same Build Animation sequence and, model "Sensor Tower Build" and "Tech Lab Build" just use the same m3 file, "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3"
Problem
However, problem came up when I tried to apply similar mechanism to my custom add-on building, Comsat Station which uses model of Terran Sensor Tower, whose model possess its' own Build animations. My custom add-on building did play model "Assets\Buildings\Terran\TerranBuildSmall\TerranBuildSmall.m3" during its' adding-on phase, and this model is correctly played under StageArray of "TerranConstructionAttachedSmall" and removed when construction is finished. However, the real model of the Sensor Tower plays abnormal animations during construction phase: The real model, "Sensor Tower" with m3 file path "Assets\Buildings\Terran\SensorTower\SensorTower.m3", shall play its' construction animation coordinatively with the building progress. However, model "Sensor Tower" played disordered Build animation during consruction phase and I receive warning message in test game like the image I attach in later floors. The CActorModel just played Build C Stand,Build D Start when the construction progress 50% finished and all Build animations repeated from A to D again during the left 50%. What's more, at time when the whole construction is almost done, CActorModel perfectly played the Build D Start of "Assets\Buildings\Terran\SensorTower\SensorTower.m3" with symmetry to the construction bar.
I just cannot understand are these such warning message and damn bug. I think I should have done all what is correct.
So any mistakes I've made and, what shall I do to solve this trouble? Hoping for help and it would be great if someone may point out the exact mechanism of this.
Besides, how does stage settings in "StageArray" control the performance of models used by construction actors? I just cannot comprehend the meaning of "BlendTime" and what the negative value "-1.000" stands for.
@CandleIsMine: Go
Here is the Warning message received in game:
It seems that the animation of given model linked to real actor of my add-on building has no loop? But just as what I listed before, both model of finished actor and the one of the construction actor have same Build animation sequence and, even the "StageArray" controls not the construction actor but the finished one, still the model shall play its regular animation isn't it?
What I met in testing game are briefly displayed in these screenshots:
You can see the animation of final construction stage of the model "Assets\Buildings\Terran\SensorTower\SensorTower.m3" played in wrong progress point and retrieved to earlier animation stage like Build A,B. Such problem happens several times until the construction is almost done, the animation Build D Start, the final animation of SensorTower.m3 Build, is played.
That is, what troubles me.