Page 1 of 1

Foliage enity crashes RF

Posted: Thu Sep 28, 2006 9:59 pm
by Larryboy
Tried the 'foliage' entity today (RF 0.75b) and it just crashes RF when you compile it. Sorry to be Mr Buggy but thought I'd let you know.

Posted: Thu Sep 28, 2006 10:28 pm
by Spyrewolf
I'd check you bitmap entries, make sure you have defined your paths correctly, also the entries are all CAPS sensitive

Posted: Fri Sep 29, 2006 11:54 am
by Larryboy
All seems OK paths and caps wise. The entity should look in the 'bitmaps' folder by default, right? I also tried bitmaps\citytree.bmp and media\bitmaps\citytree.bmp with its associated alpha. found in 0.75A

crashes RF (0.75B) when you load the level :(

Posted: Fri Sep 29, 2006 1:17 pm
by steven8
Do the bitmaps for the foilage entity need to be powers of 2? IE: 16X16, 32X32, etc? I've not used it yet, but make sure they are sized that way and try again.

Posted: Fri Sep 29, 2006 1:23 pm
by QuestOfDreams
There is a working foliage entity in one of the levels that come with the full installer. So the problem must be on your end

Posted: Fri Sep 29, 2006 1:49 pm
by Larryboy
The bitmaps I am using came with the 0.75A install. They are citytree.bmp and a_citytree.bmp and are 256x256 - is that too big?

Just tried it with another texture + alpha which I have successfully used with DecalDefine (32x32). it crashes as well. :cry:

Here are the entity attributes I am using
Image

Posted: Fri Sep 29, 2006 2:02 pm
by QuestOfDreams
Why don't you just look at the reference setup in the level I've mentioned :?:
AlphamapName - a_spot.bmp
BitmapName - spot.bmp
should be:
AlphamapName - a_spot
BitmapName - spot

Posted: Fri Sep 29, 2006 2:42 pm
by Larryboy
yes you are right - its the .bmp extension that blows it up.

Its a bit confusing because in DecalDefine I have specified the files with the extension and it works, so I thought that was the standard. :?

Any chance of the manual being more explicit?

Many thanks for your help with this one.

Posted: Fri Sep 29, 2006 4:09 pm
by psYco
Ja its a bit tricky! But ounce you take out the extension it worx very well... I used foliage extensively in my game school of the dead! and I think its quite effective...

But be carefull in excess it can s-l-o-w the engien ALOT! Also if too many different pics need to be loaded it can crash when you look in the direction of the foliage.