So I have had success replacing models before simply by opening the data editor->models and changing the Art:model field to whatever m3 file I chose. This works fine when replacing say, a human barracks, or a zealot with the model of a tree.
However when I try to do this method to replace the model of the old wc3 tree models with a starcraft 2 tree model(in my casereplacing barrens tree with agria tree 01), the model does not load. The editor displays the little white/red/lack ball instead.
I am getting this line in the messages window:" [3/28/2015 4:28:16 PM] Warning: USER: [ 3c 9d] CActorUnit[BPtwBarrensTree] Model Assets\Doodads\AgriaTree\AgriaTree_01_04.m3; Unable to create this model."
I think this is something to do with actors, but I cannot find any differences between the wc3 tree actors and any building actors or otherwise to point me in the right direction.
There are variations, like somemodel_00, somemodel_01, somemodel_02.
And if you want the models to have random variations when created in game, you just type (vai xml view) "somemodel", and define 3 variation (it's model's or actor's field), so it will automatically create model's name "somemodel" + "_01" -> somemodel_01.
You can see that your actor is trying to create AgriaTree_01_04.m3, it means you have "AgriaTree_01" as model name instead of "AgriaTree".
So, you either have to use no variations and use direct model name, or use variations and have model name without numbers.
Thank you very much! This solved the problem. I would have never figured out that XML fix, I cannot select the base model set "agriatree" from the table view, so this was a huge help!
If I wanted to change a model with variations (like the tree) use only 1 model instead, how would I set the model to not use any variations? Just set the variation count to 1 and set the XML code/table model to the appropriate model name?
So I have had success replacing models before simply by opening the data editor->models and changing the Art:model field to whatever m3 file I chose. This works fine when replacing say, a human barracks, or a zealot with the model of a tree.
However when I try to do this method to replace the model of the old wc3 tree models with a starcraft 2 tree model(in my casereplacing barrens tree with agria tree 01), the model does not load. The editor displays the little white/red/lack ball instead.
I am getting this line in the messages window:" [3/28/2015 4:28:16 PM] Warning: USER: [ 3c 9d] CActorUnit[BPtwBarrensTree] Model Assets\Doodads\AgriaTree\AgriaTree_01_04.m3; Unable to create this model."
I think this is something to do with actors, but I cannot find any differences between the wc3 tree actors and any building actors or otherwise to point me in the right direction.
Anyone know what is going on?
There are variations, like somemodel_00, somemodel_01, somemodel_02.
And if you want the models to have random variations when created in game, you just type (vai xml view) "somemodel", and define 3 variation (it's model's or actor's field), so it will automatically create model's name "somemodel" + "_01" -> somemodel_01.
You can see that your actor is trying to create AgriaTree_01_04.m3, it means you have "AgriaTree_01" as model name instead of "AgriaTree".
So, you either have to use no variations and use direct model name, or use variations and have model name without numbers.
@Zolden: Go
Thank you very much! This solved the problem. I would have never figured out that XML fix, I cannot select the base model set "agriatree" from the table view, so this was a huge help!
@Zolden: Go
If I wanted to change a model with variations (like the tree) use only 1 model instead, how would I set the model to not use any variations? Just set the variation count to 1 and set the XML code/table model to the appropriate model name?
@gnome08: Go
yes, variation count to 1, and simply pick the model from the list without using xml