Page 1 of 1

Albino Birds

Posted: Tue Nov 13, 2007 11:17 am
by Caleb1117
A while ago, I added birds to my map dantooine, and they have never worked, but I'm finally getting around to posting this topic, so here goes.

Ok, like I said they don't work, first it was that they would absorb the textures of the things around them, this was indicitive of a texture with RLE compression or something, so I resized their tga, and resaved.
Now they are completely white, no texture at all.

In:
C:\BF2_ModTools\data_IPF\Worlds\IPF\world1
I have bird.tga and bird2.tga

and in my .lua I have:
-- Birdies
SetNumBirdTypes(2)
SetBirdType(0,1.0,"bird")
SetBirdType(1,1.5,"bird2")
Like I said everything is fine, the birds are there, they fly, but they are just blank white.

Re: Albino Birds

Posted: Tue Nov 13, 2007 12:48 pm
by FOOLIS
I have this in my Felucia map lua ua :

-- Birdies
SetNumBirdTypes(1)
SetBirdType(0,3.0,"bird")

Re: Albino Birds

Posted: Tue Nov 13, 2007 1:10 pm
by Teancum
I *think* you have to add them to the world REQ. Check a shipped map's req. If it's required it'll be under one of the "texture" sections.

Re: Albino Birds

Posted: Tue Nov 13, 2007 1:14 pm
by Maveritchell
Offhand (and somewhat off-topic), do any of you know what the variables inside the setbirdtype function mean?

Re: Albino Birds

Posted: Tue Nov 13, 2007 1:16 pm
by Teancum
I'm pretty sure that's a range. Like a min/max within viewable distance.

Re: Albino Birds

Posted: Tue Nov 13, 2007 1:17 pm
by Caleb1117
Me? I do not.
Would be nice to know.

@ Teancum.
Yep thats it.
REQN
{
"texture"
"yavin1_map"
"bird"
"bird2"
"fish"
}
Thanks, I'll test it real quick.

Re: Albino Birds

Posted: Tue Nov 13, 2007 3:48 pm
by Caleb1117
ok, the texture shows now, but they aren't transparent.
Image

Re: Albino Birds

Posted: Tue Nov 13, 2007 7:29 pm
by Teancum
Your alpha channel is gone.

Re: Albino Birds

Posted: Tue Nov 13, 2007 8:48 pm
by Caleb1117
I pulled those right out of the yavin world 1 folder. :?

Re: Albino Birds

Posted: Wed Nov 14, 2007 12:28 am
by FragMe!
I just tried it and it worked just fine :? I got both types of birds