Getting one
client:getIndexScripts()
client:getIndexConfig()
client:getIndex(…)
Methods
| Method | Returns | Description |
|---|
isOverlayOutdated() | boolean | Whether any of Bento's script overlays in this index was kept back because the game's file changed and Bento could not re-apply its patch t… |
|---|
getFileIds(number) | {number}? | The ids of group groupId's files, ascending (empty for a group with no files), read from the client's own index of this archive; nil fo… |
|---|
loadData(number, number) | {number}? | File fileId of group groupId, as the game's cache holds it once unpacked: its bytes as signed numbers (-128 to 127; `bit32.band(b, 255)… |
|---|
Method details
isOverlayOutdated: (IndexDataBase) -> boolean
Whether any of Bento's script overlays in this index was kept back because the game's file changed and Bento could not re-apply its patch to it (it re-applies the patch where it can); once true it stays true. false for an index Bento overlays nothing in.
getFileIds: (IndexDataBase, number) -> {number}?
The ids of group groupId's files, ascending (empty for a group with no files), read from the client's own index of this archive; nil for a group the index does not list. A copy. On the game thread only; raises before the client has the archive's index and on a client whose table does not place its archive tables.
loadData: (IndexDataBase, number, number) -> {number}?
File fileId of group groupId, as the game's cache holds it once unpacked: its bytes as signed numbers (-128 to 127; bit32.band(b, 255) is the unsigned byte), a copy. nil for a group or file the index does not list, and for a file the client has not fetched yet: asking makes the client fetch it as it would for itself, so ask again on a later tick. Reading leaves the client's own copy of the file as it was. On the game thread only; raises before the client has the archive's index and on a client whose table has the cache file getter off.