Language Coding
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
by Hendrix
Difficulty: Easy
Well, ar you tired of those extremely difficult to understand and page-long coding tutorials? Then this is the right thing for you!
Dowload and unzip those three files:
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!
This is the basic folder structure for any ZT2 animal.
Copy the BEH, TSK and XML files from the resource into a temporary folder.
Open SCR. Choose the location of that foler using the browser icon behind the Directory: field.
Write an * into the next field, File(s).
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.
Activate Replace text in file names (rename).
Click Replace.
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.
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 |
![]() |
x110_000.z2f |
![]() |
x200_000.z2f |
![]() |
x210_000.z2f |
![]() |
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.
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.
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.
Now all left to do is the language files, there’ll be a specific tutorial about them later.
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.
Learn to translate Zoo Tycoon 2 animal names and Zoopedia entries using language XML files.
by Ghost
Learn to disable animal cleaning and make animal waste invisible and odorless.
Learn to add more animal skin variants and control how frequently each variant appears.
Comments 0
Log in to join the conversation.
No comments yet.