Thread Tools Display Modes
10/24/16, 12:50 PM   #1
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
[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.
 
10/25/16, 12:40 PM   #2
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
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?
 
10/27/16, 01:32 AM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Or extend the existing functions to return the book-id.

Code:
* GetLoreBookInfo(*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_)
** _Returns:_ *string* _title_, *textureName* _icon_, *bool* _known_, *integer:nilable* _bookId_
And
Code:
* GetLoreBookIndexFromLink(*string* _link_)
** _Returns:*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_
Or
Code:
* GetLoreBookIndexFromID(*integer* _bookId_)
** _Returns:*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_
 
10/27/16, 09:40 AM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
GetLoreCategoryInfo, GetLoreCollectionInfo, and GetLoreBookInfo now return ids. We also added:

GetLoreBookCategoryIndexFromCategoryId
GetLoreBookCollectionIndicesFromCollectionId
GetLoreBookIndicesFromBookId
 
10/27/16, 10:16 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Now the only piece that's missing it to have GetLoreBookInfo return the info even when the eidetic memory is not unlocked.
 
10/27/16, 10:31 AM   #6
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
This is clearly perfect. A big huge thank you

@sirinsidiator : I already handle this with dirty dumps
 
11/08/16, 05:41 AM   #7
Sounomi
Join Date: Oct 2014
Posts: 40
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.
 
11/08/16, 06:13 AM   #8
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
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.
 
11/08/16, 08:11 AM   #9
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
It is the same book id that is in the link. I can add the book id to EVENT_SHOW_BOOK as well.
 
11/08/16, 09:21 AM   #10
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by ZOS_ChipHilseberg View Post
It is the same book id that is in the link. I can add the book id to EVENT_SHOW_BOOK as well.
That would be wonderful
 

ESOUI » Developer Discussions » Wish List » [implemented] A static collecionIndex please

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off