Number property keeps filling in (SOLVED)

Started by Fritos, Sat 30/07/2005 00:33:13

Previous topic - Next topic

Fritos

I'm using properties for my inventory to have some base stats to my items. If I leave a number property blank, AGS 2.71 Beta 3 keeps filling it in with this number: -2147483648

Unfortunately, I can't fill it with 0. Because I don't want anything to be displayed on the detail screen I'm using that pulls these stats from the properties.

Any suggestions what might be happening?

On a side note (Don't know if this has been mentioned): Can we have properties that are group specific? Items, Characters, Screen Elements, etc? This way it keeps everything more organized. I never use properties for my items, that I would use on my characters, etc.. I'm using the properties as a base stats mini-database for items, characters, etc and the list is becoming very daunting.

Or maybe even a check-box of just the properties that you want to use on a specific element.

[EDIT] It also does this in 2.7 and 2.62

Edit by strazer: As for the suggestion: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=190

RickJ

#1
Quote
I'm using properties for my inventory to have some base stats to my items. If I leave a number property blank, AGS 2.71 Beta 3 keeps filling it in with this number: -2147483648
Well a number must have a valid value and "blank" isn't a valid numeric value is it.  So you will have to pick a valid value and make that the default.   A value of "-2147483648" is the largest negative number that can be represented by an int variable, I believe.  Since apparently you haven't specified a default value, presumably AGS uses "-2147483648" as the default value.

Fritos

#2
Gotcha. Thanks. I guess I'll just have to have the code display nothing if the value is 0. Appreciate the help! Thought it might have been a bug. :)

[Edit] Code all fixed. Thanks again!

SMF spam blocked by CleanTalk