2009-09-28, 07:03 PM
Well looking up some data by name involves about a 1000x more steps than looking it up by a fixed numeric id. So SoM is not going to be looking anything up by name, though it's possible the tools do by way of a second party system (probably a Windows API routine if anything) for instance when building the initial databases in the parameter editor for example. They are alphabetized in the parameter editor after all. Still I think the odds of a duplicate name slowing that down are probably 0.
As for in SoM files, you won't see any numbers as such. Because the numbers are just offsets into the files which are counted by the fixed size (in bytes) of an item record for example. All SoM files work this way. So the first record is item 1 or 0 (depending on how you count) then say 64 bytes in (assuming 64 bytes is the size of the individual records) you will find the beginning of record 2 or 1 (again depending on how you count)
Anyway, just remember when swapping out equipment for another item (as you probably know) the player will still have the first item equipped even though they no longer have it in their inventory. Same if you take an item they have equipped from their inventory afaik. Some day I will probably find a way to hack around this.
As for in SoM files, you won't see any numbers as such. Because the numbers are just offsets into the files which are counted by the fixed size (in bytes) of an item record for example. All SoM files work this way. So the first record is item 1 or 0 (depending on how you count) then say 64 bytes in (assuming 64 bytes is the size of the individual records) you will find the beginning of record 2 or 1 (again depending on how you count)
Anyway, just remember when swapping out equipment for another item (as you probably know) the player will still have the first item equipped even though they no longer have it in their inventory. Same if you take an item they have equipped from their inventory afaik. Some day I will probably find a way to hack around this.