Welcome Guest [Log In] [Register]
Welcome to Northernskies,

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
Easy Coding Tutorial; Difficulty: Easy
Topic Started: Aug 27 2012, 11:49 AM (1,756 Views)
Ghost
Member Avatar
Administrator

Coding: Easy Coding Tutorial
by DinosaurMan
Difficulty:Easy


CONTENTS
- Introduction
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Step 7
- Step 8


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

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

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.


Step 3

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

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:

entities.z2f for no expansion
x100_000.z2f for :ZT2ES:
x110_000.z2f for :ZT2AA:
x200_000.z2f for :ZT2MM:
x210_000.z2f for :ZT2EA:


Step 5

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.

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

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.

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


Step 7

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


Step 8

Select the four folders inside the YOURANIMAL folder, right click > add to archive. 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.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
« Previous Topic · Coding Tutorials · Next Topic »
Locked Topic