Welcome Guest [Log In] [Register]
Welcome to Zoo Tycoon 2 Designing Centre (ZTDC). We hope you enjoy your visit.


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:
Add Reply
Bfb Crash?; What?
Topic Started: Nov 9 2007, 09:18 PM (770 Views)
Panda King
Member Avatar
MC Knuckles!
Okay, I'm working on a SECRET project, and I was coding on bit of the pack. Everyting worked fine until I replaced it's BFB with a different one, in which case, the game began to crash when you select it in the buy menu.

Any idea why?
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
ShenTirag
Member Avatar
Small and Bitter
Senior Mod
When you replaced the BFB did you replace the Materials files as well?
Shen's Den
Forum Rules Are Your Friends!
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
Yes. But the BFMAT used a longer name than the replaced one, so I didn't change it.

Is there somewhere I need to refrence to the BFMAT, aside from the BFB?
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
Also, the coding in the xml for the original BFB may not work with the new BFB.

" Yes. But the BFMAT used a longer name than the replaced one, so I didn't change it."

I dont know what you mean here. You HAVE to change the names of the BFMAT and you cannot use BFMAT files from one bfb with another one.
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
ShenTirag
Member Avatar
Small and Bitter
Senior Mod
You didn't rename the BFMAT at all?
Shen's Den
Forum Rules Are Your Friends!
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
Okay, here's the full deal.

I'm making a new staff member, the Pirate entertainer, and Ibased it on the Smilodon Entertainer. It worked fine! I even was able to replae the body model with the pirate one!

But it stopped working when I replaced the head file with the pirate head file. I renamed it correctley and copied the Pirate BFMAT, but didn't rename them, because the pirate head already references to them by the current neme.
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
A BFB is NOT a complete model, it needs the BFMAT files to "fill it in". If you try and use BFMAT from one BFB with a different BFB file, it will not work... In addition, the coding inside the BFB file must give the EXACT name that you have named the bfmat file. Otherwise there is no way that the bfb will be able to find the bfmat files.

Generally its a good idea to change the names of the files though, so I would try that. However, its quite possible that the animations wont work on the pirate head because it is shaped so differently.
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
???

I used the pirate BFMAT on the pirate head, so shouldn't it work?
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
Are you confusing bfm and bfmat files?

To answer your question, no, the bfmat files just complete the model and have nothing to do with animations.
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
No, The BFMS form the entertainer are still there, I just added the pirate head BFMATS to the material folder.

I don't see why the head swap shouldn't work, the ent head has no anims, aside form head movement caused by the body. It SHOULD work fine.

Also, entertainers use mostly guest animations.
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
I realize that, but if there's a head animation that guests don't use, it could cause major problems since the pirate head may not be able to use it....

Make sure that the bfb name lines up with that in the xml, and make sure that all the bfb and materials are coded correctly.

It is quite possible that the head will work, however, it is also quite possible that it won't. The problem is that, yet again, this is something no one else has done before so you aren't going to be able to get a ton of help on the matter ;).
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
Quote:
 
The problem is that, yet again, this is something no one else has done before so you aren't going to be able to get a ton of help on the matter .


I saw that coming.

Do you ahve EA, by any chane?

Prehaps you could take a look, as well.

From what I see, everything looks to be coded fine.
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
yeah I can probably look at it if you email me, but it may be a while before I have time just not sure ;)

EDIT: can you tell me where you got the new head from?
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Panda King
Member Avatar
MC Knuckles!
X200_000, the Marine Mania file, under entities/units/guests/adultmale

Okay?
Posted Image
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
So in the body bfb file, you have it linking to a pirate head BFMAT file. First off, is that BFMAT file based off of the new head or the original head?

Second, did you change the number of letters in the name to make pirate fit?
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Go to Next Page
« Previous Topic · Animal Coding Help · Next Topic »
Add Reply