Amiga Extended Level Data blocks

Started by MadMunky, January 13, 2016, 07:27:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MadMunky

OK then im not sure how this works out

The array of items posted has 96 items listed but there is only 54 monsters which have items being dropped...

Hungry Horace

perhaps the offset values mean certain objects don't get used / dropped?

I would have to do more verification.

Are you sure there are not 54 items held by type $8 and the remainder held by type $9  (i.e. bits 0 and 3 set)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


MadMunky

Thanks Horace, I've matched the first 54 monsters to the items so i will play though and see if they match as they should. The first one I can confirm is correct.

Hungry Horace

I tested the first three and they were ok, and I was able to modify them!

On my editor, I will try and remove all monsters that *don't* hold an object and then created a fast-route through to do some checking.



Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


MadMunky

Thanks Horace, I've done the same.

So far they have all been correct, but I'm still not sure why there is only 54 Monsters with the 'Bit' set (for monster type 8+) but more items in the data block.

Hungry Horace

#35
MadMunky, i am sure you are doing your bit check wrong.

I have take my extracted .monsters files, and I am deleteing any monester (6 bytes) that doesnt start with $8 or $9 ..... so far i have;

block length  !97  ($61)

serpent = !14
chaos = !18
moon = !37
dragon =!28

total = 97


i've saved the blocks so i have copies with *only* monsters who drop items.... attached for reference, although un-tested!
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


MadMunky

So I have 97 Monster with type >= 7 but only 54 with the 'bit' set for holding items.

Hungry Horace

Quote from: MadMunky on January 22, 2016, 07:27:42 PM
So I have 97 Monster with type >= 7 but only 54 with the 'bit' set for holding items.

Any number >7 *has* to have the bit set. So if you have toe 8 or 9 (or anything above) then the number 3 bit is set, not clear.

Think about it using the full binary notation.... When you convert binary to a number the "easy" way, you add 1,2,4 ,8 for whenever bits 0,1,2,3 are set.

So 0001 has only bit 0 set... That is 1 in decimal.
0101 has bits 0 and 2 set.... That's 1+4 = 5 in decimal.
1000 has bit 3 set..... 8 in decimal
Any more than that *has* to have bit 3 set, and therefor gives a decimal value >=8

1111 for example is 1+2+4+8 = 15
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


MadMunky

OK Sorry my bad I had previously hard coded it to type 8 so type 9 where missed, I've fixed it and now matching 97 monsters :D


Hungry Horace

glad to hear you will be getting the right numbers now :)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


Hungry Horace


Quote from: MadMunky on January 22, 2016, 07:56:30 PM
OK Sorry my bad I had previously hard coded it to type 8 so type 9 where missed, I've fixed it and now matching 97 monsters :D

Did you correct this for actual bit checking in the end?
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


MadMunky