Author Topic: Changing the Probability of Getting an Animal  (Read 1660 times)

0 Members and 1 Guest are viewing this topic.

Offline Methane

  • Pooper Scooper
  • *
  • Posts: 40
Changing the Probability of Getting an Animal
« on: July 02, 2006, 01:32:06 PM »
Heeey kids!

After I failed the Asian Animal scenario twice (the one where you have to get four Asian animals in a year), I decided to simply change the variable that decides how often an animal shows up in the lottery (For those of you who don't know, in challenge games when you can only get animals randomly, it's called the 'animal lottery'). After changing the Giant Panda, Red Panda, and Snow Leopard to show up as often as Camels and Gazelle (The Peafowl counted as my fourth Asian animal) I decided that I ought to write a short guide for other people, in case they wanted to change the ammount an animal apears on their lottery as well.

This is useful if you NEVER get a certian animal, like the African Elephant, even if you've had a five star zoo for three years, or if you simply HATE a certian animal and don't want it to show up (but don't want to risk deleting the animal).

First of all, you need WinRAR or another archiving program. You can download WinRAR by simply searching for it in Google or another engine.

I use Windows XP, so file locations may be different if you are using another version of Windows or operating system. Also, I'm going step-by-step for people new to game file editing. If you already know how to get to the animal ai in the entities folder, skip down until you see more blue.

So, what you need to do is open up this file in My Computer:

C:\Program Files\Microsoft Games\Zoo Tycoon 2

Then click on the file named entities.z2f. If a little message comes up saying that Windows cannot open this file, choose to select a program on the list, and open it with WinRAR (or whatever program you use).

Now, inside the entities folder there will be five folders (not counting the readme).
Click on the files in this order:

Units > Animals > Ai

This is the part where you actually learn how to change the probability of an animal appearing.

Click on any animal's MAIN file. Each animal has around seven files. For example, if you are changing the Grizzly Bear, you want to click on the file that says BearGrizzly.xml, not BearGrizzly_Young_M.xml, or any other Grizzly file.

Now, the hardest part of this whole thing is finding the little line that gives you the probablility of an animal showing up. It will be near the top, in a large block of scary-looking text. This is the bit you want:

f_adoptRarity=??"

The question marks will be replaced by a number between 1 and 100. The Grizzly Bear has a rarity number of 70, so his code looks like this:

f_adoptRarity="70"


All you need to do is replace that number with one higher or lower, [COLOR="Red]BETWEEN 1 and 100![/COLOR] If it is outside of that then something bad will happen.

That's all. Just save the file and load up your game.

I do not sugest you mess with anything else in this file unless you know what you are doing. It is always a good idea to create backup files of any entities file you edit. You may also want to take note of the true rarity level of an animal before you change it, so that you can change it back if you want.


Some examples of rarity levels:

Camel, Moose, Gazelle, Peafowl: 1

Penguin: 20

Ostrich, Okapi: 40

Lion: 50

Black Rhino: 60

Grizzly Bear: 70

Mountain Gorilla: 80

Giant Panda: 100


PM me with any questions.

PLEASE NOTE: THESE GUIDES INVOLVE EDITIING YOUR GAME FILES.  IF YOU DECIDE TO DO THIS MAKE SURE YOU BACK UP THE ORIGINAL GAME FILES. WE ARE NOT HELD RESPONSIBLE FOR ANY PROBLEMS YOU MAY ENOUCONTER FROM FOLLOWING THESE GUIDES.  RND - FORUMS ADMIN
« Last Edit: July 03, 2006, 12:52:33 AM by RedNotDead »

Offline csleesburg

  • An Oldie But Goodie
  • Game Warden
  • *
  • Posts: 5422
Changing the Probability of Getting an Animal
« Reply #1 on: July 02, 2006, 03:43:15 PM »
Did you not say elsewhere that you do NOT have any of the Expansion Packs? That makes a big difference when editing files, you know. :blink:

Offline Methane

  • Pooper Scooper
  • *
  • Posts: 40
Changing the Probability of Getting an Animal
« Reply #2 on: July 02, 2006, 03:53:58 PM »
Oh, I expect it does have a huge difference :happy:

It does say in my signature that I don't have expansion packs, and I've mentioned it in all the other guides exept this one, I think :pinch:

If in the expansion packs you don't have the same entities/animal lottery format at all, I can't help you. But if you have the same general design, I could probably figure out how to change the probability if someone sent me an an expansioned (which isn't a word, but who cares?) file of an animal.

Offline penguinman

  • Ridge on the Barrel of a Capstan
  • Gl?bal Moderator
  • Game Warden
  • *
  • Posts: 4622
  • Artifex!
    • Zoo Tycoon 2 Designing Centre
Changing the Probability of Getting an Animal
« Reply #3 on: July 02, 2006, 03:59:40 PM »
If you have expansion packs, follow her instructions the same except instead of looking in entities.z2f look in:

If you have ONLY ES:
x100_000.z2f for ANY animal including original ZT2 animals

If you have AA and ES or just AA:
x110_000.z2f for AA animals
x100_000.z2f for ES animals
x101_000.z2f for Original animals

:happy:

Offline Methane

  • Pooper Scooper
  • *
  • Posts: 40
Changing the Probability of Getting an Animal
« Reply #4 on: July 02, 2006, 04:03:18 PM »
You are the best Penguinman! And, since I'm currently writing The Complete Guide of how to Cheat Like None Other, it involves objects and buildings as well... is it possible that you could see if the locations of those have changed as well for the expansions, or can still be edited using a guide from the origional?

Once again, you are the best. The very best. Like, you deserve your own smilie best.

Offline penguinman

  • Ridge on the Barrel of a Capstan
  • Gl?bal Moderator
  • Game Warden
  • *
  • Posts: 4622
  • Artifex!
    • Zoo Tycoon 2 Designing Centre
Changing the Probability of Getting an Animal
« Reply #5 on: July 02, 2006, 04:30:11 PM »
Thanks! :blushing:

As for buildings, it should be the same as I posted for animals. You'll just be editing .xml files right?

Offline Methane

  • Pooper Scooper
  • *
  • Posts: 40
Changing the Probability of Getting an Animal
« Reply #6 on: July 02, 2006, 04:40:39 PM »
Yes, I believe .xml files are the only things I'll be going over. Thanks once again for your help!