Behavior Editing Tutorial
by Zooasaurus
In this tutorial, you will find out how to add and subtract behaviors from animals.
- Zoo Tycoon 2
- Animals
- Scripting
- Reading time
- 5 min
- Comments
- 0
Learn to mesh, rig, animate, and code foliage for Zoo Tycoon 2 using Blender and Nifskope.
by Simba
Note
It’s best to start with a plant/tree that’s already skinned and coded! Knowledge of Blender and Nifskope is required!
Mesh your foliage item in Blender. Also UV it if required. (Go through Meshing tutorials if you don’t know how to mesh)
You have to give the foliage your own nodes.
Press SPACEBAR and select Add > Armature. Use Extrude to form the armature so it suits the tree.
Use not more than 5 nodes for the wood, otherwise animating gets too difficult. Use Another node for the leaves, so they can be moved a bit more.
Now you have to weight-paint the model to the nodes. If you’re not familiar with weight-painting, dalturge eplained it quite well in this topic:
Weight Painting Tutorial - Dalturge
The branches nodes should have full influence on your model (on the branches as well as on the leaves), so they are red.
For the leaves node, paint with low opacity (0.25 or similar) on the leaves. Make sure you have some places without influence for the leaves.
Now split the window of blender, in one screen you enable the timeline and the other one stays in 3D View.
A so all nodes are selected.I > LocRot.A so everything is selected.I > LocRot.A and press I > LocRot.Alt + A so you can watch the animation.Note
If the foliage doesn’t move fluently, you have to repeat the stuff from above so it moves fluently.
Make sure you’re in the object mode and press A so everything’s selected. Export the model(s) and the armature.
Open the exported nif and a random foliage nif.
Remove the WHOLE NiLodGroup using Block > Remove Branch.
Go in the Block Details of the Scene Root node, open children and adjust the numbers so there is no more none-value.
Warning
IF YOU DONT DO THIS, THE GAME MIGHT CRASH!
NiKeyFrameControllers are also included!Important
Don’t forget to save!
Now you’re almost finished!
Open your foliage’s XML and paste this:
<BFForceUpdateWhenVisibleComponent />
below the model’s line.
So the mainobject part should look like this:
<BFNamedBinder binderName="mainObj">
<instance>
<BFPhysObj>
<BFSimpleLODComponent isBFR="true" modelfile="entities/objects/foliage/Sigillaria_Savannah/Sigillaria_Savannah"/>
<BFMultiGroundFitComponent heightOffset="0.0" forceTopLevel="true" />
<BFForceUpdateWhenVisibleComponent />
</BFPhysObj>
</instance>
<shared>
<BFSharedPhysVars>
<virtualNodes>
<Dock_Rampage1 y="-1.75" />
<Dock_Rampage2 x="-2.5" />
<Dock_Rampage3 y="2.5" />
<Dock_Rampage4 x="2.5" />
</virtualNodes>
</BFSharedPhysVars>
</shared>
</BFNamedBinder>
OK, that’s it! If you have any problems or questions, please PM me!
by Zooasaurus
In this tutorial, you will find out how to add and subtract behaviors from animals.
by MarineManiac
This tutorial teaches how to use only cart based animals, but can be applied to shops.
Comments 0
Log in to join the conversation.
No comments yet.