bmap from string trouble

Posted By: PrenceOfDarkness

bmap from string trouble - 12/16/10 11:42

hey guys im loading a string from a database that contains the file name of a bmp file (ex. helmet.bmp). im trying to change an existing panels bmap to the one in the string every frame. bmpcreate causes a memory leak (even for purge). can someone give me a way/idea on this?
Posted By: fogman

Re: bmap from string trouble - 12/16/10 14:33

Try ptr_remove insteat of purge.
Imo it should work, otherwise it would be sort of lame. tongue
Posted By: PrenceOfDarkness

Re: bmap from string trouble - 12/16/10 15:02

[edit] It worked fogman. IDK why I couldn't get it to work properly before. Thanks.

I'm having a problem thought and I don't understand the explanation:
Code:
The error message:
Malfunction W1553
ta where ID = : Can't create alpha

Manual:
Warning W1553 - Can't create alpha
The texture is static and can't be converted to an overlay or alpha texture.


Posted By: PrenceOfDarkness

Re: bmap from string trouble - 12/16/10 16:21

bmap_load seems like the best choice. But the alpha is messed up on the images loaded. They don't become transparent and just stay black.

Well I tried bmap_load using a test script and it works fine. So i got a nasty bug some where in my script -_-'... I'm so screwed.
© 2024 lite-C Forums