Talk:STF

From OHRRPGCE-Wiki
Jump to navigation Jump to search

NeoTA : Is this one of the formats which uses random access, so we may encounter strange numbers of records? in VIKINGS (SVN as of this edit), VIKINGS.STF is 102228 bytes, which is exactly 1217 records, 24.34 shops-worth.

Mike C.: The way to figure out how many shops there is would be to round up (25 shops). The decimal comes from the fact that unused records that don't have any used records past them don't exist. Or, in other words, the last shop only has enough records to hold as many items it has. Therefore, the last shop in VIKINGS has:

1217 records, mod, 50 items = 17 items

That's all that means.

NeoTA: Actually, that's the number of shops with any contents. in VIKINGS, there are 26 shops, not 25. Anyway, I knew how to find out the number of shops (count the records in SHO); I was asking whether the way OHRRPGCE uses random-access is the reason this happens.

Mike C.: Oh, well, yes. Yes it is.

(Also, I didn't know there was an empty shop. But, the behaviour still stands.)