Posted by: many moles Dec. 13 2004, 03:51 AM
Hi,
I've been playing with the ZT2 code, and now I'vde found a way to feed your animals yourself. At the moment it's only working with the black leopard, 'cause it's code quite easierr to understand than the whole game. If you unzip (description is here anywhere) the LeopardAndDummy.z2f you downloaded from M$, you find a couple of files. The file I've moddified is found in entities/units/animals/AI. Open the LeopardBlack.xml with a texteditor, go to line 46 which must read . There you find two actions: One for cleanng the black leopard and one for healing him. All I've done is to "copy&paste" one line and changed it to the following
I've tested it quickly in freeform mode. Build an exhibit an place the black lion in there. Make sure there are no food dishes in the exhibit. Water is just fine since you can't feed him water at the moment. Let the game run a while, then look for the fairly high hunger indicator.. Go in guest mode to your leopard and it will show "press spacebar to brush your leopard" or soemthing like that. After doing this once, be sure hit spacebar only one time, you will see another yellow circle around your leopard with no message occuring. Yeah go right ahead and press spacebar again. You just feed your leopard, quick look at the stats shows hunger indicator is empty.
Feel free to add a line to feed your leopard water.
Now I'm searching through the orginal game files to find an correspondending line of code there... Stay tuned
many moles
[edit] The "effect" parameter isn't used so there is no need to refer to something non existing.
Posted by: many moles Dec. 13 2004, 04:41 AM
To add a message to the yellow circle you must unpck your lang.z2f file from your ZT2 directory. There you find a file named staff_actions.xml. in that file all staff text notes defined including the superstaff notes if you are in guest mode. After the last superstaff line I've added one like this for the new command
Press SPACEBAR to feed %s.
My last lines will look like this
Drücken Sie die LEERTASTE, um den Kompost zu verkaufen.
Drücken Sie die LEERTASTE, um %s zu füttern.
Of course your's will have english text..
many moles
Posted by: sharkman222 Dec. 13 2004, 09:10 AM
I will try and see if I can make the comp show a message for it
Posted by: many moles Dec. 13 2004, 09:28 AM
The message will appear if you edit the staff_actions.xml file like said above. I'm working on getting an animation to show up when feeding your animal. Like chewing or something. Unfortunaly i must stick with existing ones...
many moles
Posted by: flamethrower Dec. 13 2004, 03:39 PM
Nice find. Added to list of useful topics.
I'm curious why they didn't insert it as a feature. Is there anything wrong with it?
Maybe they ran short of time, left it half finished, and plan to overwrite the files with a finished one in the expansion pack. Better not expand too far on this.