Pages: 1
Posted on 08-31-11, 04:43 am
Banned for being a complete idiot.

Karma: 529
Posts: 302/987
Since: 07-09-11
Hey guys,

I have two questions about the Sprite DB:
1. How do the field types "Signed value, Binary, and Index" work?
2. I want to create a list of pre-defined Sprite data (e.g. A combination that is known to spawn items only), and I don't want all the nibbles to be the same value. How do I accomplish this?
Posted on 08-31-11, 04:48 am
Fuzzy
Full mod

Karma: 1183
Posts: 155/785
Since: 06-28-11
1.
Signed value: Specifies a number that can be greater than or less than zero based on two's compliment. -8 to 7 for one nybble or -128 to 127 for two nybbles.

Binary: Specifies a number that should be edited as bits instead of a regular number. You shouldn't have to worry about this one, it's only used on one sprite.

Index: Do not use it. It's use was for NSMBW stuff like the rotation indexes.

2. I don't think the current format allows for this.
Posted on 08-31-11, 04:51 am
Banned for being a complete idiot.

Karma: 529
Posts: 304/987
Since: 07-09-11
Oops. I guess I wasn't clear enough for #1.

I couldn't understand how they work based on the descriptions in the Sprite DB, and would like an example with some description on how they work.
Posted on 08-31-11, 05:17 am
Fuzzy
Full mod

Karma: 1183
Posts: 157/785
Since: 06-28-11
Signed simply shifts the range of the number so half of it is negative and half of it is positive. More information
Binary creates checkboxes, one for each bit in the number. Basically this would give a sprite 4 or 8 on/off settings.

I'm pretty sure that all of the sprites that use these are already taken care of, though.
Posted on 08-31-11, 10:11 am
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 10010
Posts: 773/4457
Since: 06-08-11
Theoretically, for your 2nd question, you can create a list that includes up to 8 nibbles (I wouldn't try more because it will go out of range of a 32bit integer), and then give it values like 0040ff03=Blah,01030430=Meh

Haven't tried it but it should work.
Pages: 1