Difference between revisions of "Talk:PURCHASE.DAT"

From UFOpaedia
Jump to navigation Jump to search
(Sort Order)
 
Line 1: Line 1:
 
==Sorting==
 
==Sorting==
 
I have a sneaking suspicion that offset 1 is not a 'sort' order. (Namely because HWP ammo has this number very very high) I'm thinking that its an index. I believe I found the offset for the space an items takes in GEOSCAPE.EXE at 0x5db34. Each item gets 1 byte which is the space it takes up (10x what is shown on the table at [[General Stores#Nuts and Bolts]], thus I'm hypothesizing that stores have 500 space for items. I'm double checking some things, but I think offset 1 is an index to this array. I'll have details later --[[User:Pi Masta|Pi Masta]] 14:39, 5 March 2007 (PST)
 
I have a sneaking suspicion that offset 1 is not a 'sort' order. (Namely because HWP ammo has this number very very high) I'm thinking that its an index. I believe I found the offset for the space an items takes in GEOSCAPE.EXE at 0x5db34. Each item gets 1 byte which is the space it takes up (10x what is shown on the table at [[General Stores#Nuts and Bolts]], thus I'm hypothesizing that stores have 500 space for items. I'm double checking some things, but I think offset 1 is an index to this array. I'll have details later --[[User:Pi Masta|Pi Masta]] 14:39, 5 March 2007 (PST)
 +
 +
 +
Well I indexed the 'sort' number from each of the items to the offset I found. Everything lined up with the space needed for the item (for those applicable) except the Fusion Ball Launchers and Plasma Beam. Their sizes were swapped. At first I thought that my guess of it indexing to this was wrong, but I wanted to double check. Turns out that this page has them backwards. Essentially the sell prices helped me verify which item this file was talking about. I'll make the appropriate changes, and probably put a more indepth explanation on my talk page. --[[User:Pi Masta|Pi Masta]] 15:16, 5 March 2007 (PST)

Revision as of 23:16, 5 March 2007

Sorting

I have a sneaking suspicion that offset 1 is not a 'sort' order. (Namely because HWP ammo has this number very very high) I'm thinking that its an index. I believe I found the offset for the space an items takes in GEOSCAPE.EXE at 0x5db34. Each item gets 1 byte which is the space it takes up (10x what is shown on the table at General Stores#Nuts and Bolts, thus I'm hypothesizing that stores have 500 space for items. I'm double checking some things, but I think offset 1 is an index to this array. I'll have details later --Pi Masta 14:39, 5 March 2007 (PST)


Well I indexed the 'sort' number from each of the items to the offset I found. Everything lined up with the space needed for the item (for those applicable) except the Fusion Ball Launchers and Plasma Beam. Their sizes were swapped. At first I thought that my guess of it indexing to this was wrong, but I wanted to double check. Turns out that this page has them backwards. Essentially the sell prices helped me verify which item this file was talking about. I'll make the appropriate changes, and probably put a more indepth explanation on my talk page. --Pi Masta 15:16, 5 March 2007 (PST)