[implemented] A static collecionIndex please
At EACH dlc, you change collectionIndex of Eidetic Memory (category 2).
I spend so much time to manage compatibility while you could give us some indexes that don't move. So please even if only I and UESP are the only ones to be involved, stop moving the collectionIndex of Eidetic Memory. With SoH and 1 Tamriel, index have changed 3/4 times during minor patchs of PTS, now you added the Yokudan and instead of pushing this collection AFTER the list.. you moved it in the middle and moved all index. |
To solve this for real we'd have to move to an ID based system since controlling the order is out of our hands. What APIs do you need this for?
|
Or extend the existing functions to return the book-id.
Code:
* GetLoreBookInfo(*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_) Code:
* GetLoreBookIndexFromLink(*string* _link_) Code:
* GetLoreBookIndexFromID(*integer* _bookId_) |
GetLoreCategoryInfo, GetLoreCollectionInfo, and GetLoreBookInfo now return ids. We also added:
GetLoreBookCategoryIndexFromCategoryId GetLoreBookCollectionIndicesFromCollectionId GetLoreBookIndicesFromBookId |
Now the only piece that's missing it to have GetLoreBookInfo return the info even when the eidetic memory is not unlocked. :D
|
This is clearly perfect. A big huge thank you
@sirinsidiator : I already handle this with dirty dumps :D |
Are the book IDs that are gonna be available through these new API functions the IDs that are currently used in the chat links for books by chance?
Also, it could be useful to include the book's ID with the EVENT_SHOW_BOOK event too, if said book is in a lore collection that is. This would save us from having to look up the ID manually based on its title, which can be troublesome since some books share the same title. |
some books are without indices, so they maybe don't have bookId ?
Even if sending something in EVENT_SHOW_BOOK to find the book could help. For now, I have a complete reverse table based on title and medium in order to find indices of a book read. This one can fail, because there are few with same title and same medium - and the reverse table must be built by someone who unlocked a lot of eidetic memory in order to have correct values of mediumIndex. |
It is the same book id that is in the link. I can add the book id to EVENT_SHOW_BOOK as well.
|
Quote:
|
All times are GMT -6. The time now is 01:27 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI