Tutorial Animals Scripting Zoo Tycoon 2 Archived

Easy Coding Tutorial

H

by Hendrix

Published
15/11/2026
History
History
Reading time
3 min read
Views
3 views
Comments
0 comments
Like
Originally published by Hendrix on Northern Skies in August 2012.
On this page

Difficulty: Easy

Introduction

Well, ar you tired of those extremely difficult to understand and page-long coding tutorials? Then this is the right thing for you!

Step 1: Downloading the Resources

Dowload and unzip those three files:

  • SCR

    A very handy, very small batch replacement AND rename tool in one!

  • ZT2 all animals XML, TSK & BEH files

    provided by Snowleo, up to date with UC, so you wont have to worry if your animal works with different game versions, because it will!

  • Folder structure

    This is the basic folder structure for any ZT2 animal.

Step 2: Renaming the Files

  1. Copy the BEH, TSK and XML files from the resource into a temporary folder.

  2. Open SCR. Choose the location of that foler using the browser icon behind the Directory: field.

  3. Write an * into the next field, File(s).

  4. Put in your base animals coding name, eg. LionAmerican into the Replace: field, and your desired coding name into the Replace with: field, eg. LionVietnamese.

  5. Activate Replace text in file names (rename).

  6. Click Replace.

Step 3: Organizing the Files

Drag the BEH and TSK files into the directory:

YOURANIMAL\AI\Tasks\animals

Drag the XML files into the directory:

YOURANIMAL\entities\units\animals\ai

Clear your temporary coding folder.

Step 4: Finding the Base Animal

Now you have to open the ZT2 folder, and get some files from there:

Depending on the expansion your animal is included in, you have to open:

Archive Expansion
entities.z2f no expansion
x100_000.z2f 1584412694.3682-smiley
x110_000.z2f 1584412694.561-smiley
x200_000.z2f 1584412694.7138-smiley
x210_000.z2f 1584412694.9633-smiley

Step 5: Gathering Additional Files

Inside the Z2F, open the entities\sound directory, get the YOURBASEANIMAL.xml from there.

Open entities\units\animals\YOURBASEANIMAL, get all BFM files from there, and if you don’t have any prepared models or skins, the NIF and DDS files, too.

Note

And if your animal lays eggs, do the same for the eggs folder.

Drag all those files into your coding projects representative folders.

Step 6: Editing the BFM and Sound Files

BFM Files

Open the BFM files with the text editor of your choice. Replace the base animals coding name only in the very first line, and in the line with that begins with <Graph name=" . Save and close.

Sound XML

Open the sound XML file, here, replace only the ones with " before the coding name. Save and close.

Note

Also code the eggs if you’re animal has them.

Step 7: Language Files

Now all left to do is the language files, there’ll be a specific tutorial about them later.

Step 8: Packaging the Animal

Select the four folders inside the YOURANIMAL folder, right click > add to archive.

Important

The archive has to be a ZIP file, RAR or anything else won’t work!

After zipped, rename the file to .Z2F. Now you can drag it into the ZT2 folder to test it.

Comments 0

Log in to join the conversation.

No comments yet.

Loading the history…
Tutorial Archived

Language Coding

by CougertheShark

Learn to translate Zoo Tycoon 2 animal names and Zoopedia entries using language XML files.

  • Zoo Tycoon 2
  • Scripting
Reading time
8 min
Comments
0
Tutorial Archived

Hygeine Coding and Invisible Poop

by Ghost

Learn to disable animal cleaning and make animal waste invisible and odorless.

  • Zoo Tycoon 2
  • Animals
  • Scripting
Reading time
2 min
Comments
0
Tutorial Archived

Coding Skin Variants and Rarity

by Danny Elfmaniac

Learn to add more animal skin variants and control how frequently each variant appears.

  • Zoo Tycoon 2
  • Animals
  • Scripting
Reading time
3 min
Comments
0

Modal Title