ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   PTS 2.1 API changes (100011 to 100012 diff) (https://www.esoui.com/forums/showthread.php?t=4953)

Harven 07/30/15 05:40 AM

PTS 2.1 API changes (100011 to 100012 diff)
 
Hey,

You thought I forgot?. Noooo ;) 100011 globals dump is from first PTS release so the diff may be not 100% accurate. For the official api changes look here. The following data is produced by comparing API 100011 and 100012 global variables.
  • New Functions:
    Warning: Spoiler
  • Removed Functions:
    Warning: Spoiler
  • New Protected Functions:
    Warning: Spoiler
  • Removed Protected Functions:
    Warning: Spoiler
  • New Constants:
    Warning: Spoiler
  • Removed Constants:
    Warning: Spoiler
  • New Tables:
    Warning: Spoiler
  • Removed Tables:
    Warning: Spoiler
  • New Userdata:
    Warning: Spoiler
  • Removed Userdata:
    Warning: Spoiler

kerb9729 07/30/15 07:59 AM

Do you happen to have that on a dropbox or something so we can search it?

This is handy information, thank you for taking the time to put it together.

Harven 07/30/15 09:10 AM

Here you go: GlobalsDump100012.lua. You can also browse it by category on wiki.

kerb9729 07/30/15 09:33 AM

Quote:

Originally Posted by Harven (Post 22406)
Here you go: GlobalsDump100012.lua. You can also browse it by category on wiki.

/beer

... and some more text to make 10 characters

votan 07/30/15 11:07 AM

GetZoneNameByIndex values had changed
 
The indexes of zone names are different: GetZoneNameByIndex(zoneIndex)
If you use a multi-language extraction as a lookup table or zoneIndex as language-invariant key in your saved variables, you need to re-evaluate.

By looking at just a few of them, you may think it is just a simple shift by -1 to make room for IC. But there are more deleted, inserted and moved zones.

CrazyDutchGuy 08/06/15 01:28 PM

Quote:

Originally Posted by votan (Post 22412)
The indexes of zone names are different: GetZoneNameByIndex(zoneIndex)
If you use a multi-language extraction as a lookup table or zoneIndex as language-invariant key in your saved variables, you need to re-evaluate.

By looking at just a few of them, you may think it is just a simple shift by -1 to make room for IC. But there are more deleted, inserted and moved zones.

I noticed, why they even changed the indexes to the zones is completely beyond me, but it is an annoying change.

Fyrakin 09/07/15 12:39 PM

EVENT_POI_UPDATED no longer firing
 
EVENT_POI_UPDATED used to fire when POI (quest hub) went from black to white (got compleated by finishing relevant quests). I didn't find any mention of this in patch notes, so I guess this is a bug.
I ran through several POI quest chunks to complete them but this event never fired for me. Would be nice to know if its going to be fixed or replaced with something else.

Fyrakin 09/07/15 12:45 PM

Quote:

Originally Posted by votan (Post 22412)
The indexes of zone names are different: GetZoneNameByIndex(zoneIndex)
If you use a multi-language extraction as a lookup table or zoneIndex as language-invariant key in your saved variables, you need to re-evaluate.

By looking at just a few of them, you may think it is just a simple shift by -1 to make room for IC. But there are more deleted, inserted and moved zones.

Still the number of Zone Ids is less than actual maps almost as twice. I just can't justify this change. I would be content with it if every map got their unique ID.

ZOS_ChipHilseberg 09/08/15 08:55 AM

Quote:

Originally Posted by Fyrakin (Post 23338)
EVENT_POI_UPDATED used to fire when POI (quest hub) went from black to white (got compleated by finishing relevant quests). I didn't find any mention of this in patch notes, so I guess this is a bug.
I ran through several POI quest chunks to complete them but this event never fired for me. Would be nice to know if its going to be fixed or replaced with something else.

I briefly tried reproing this and everything seemed fine. What POIs were you experiencing problems with?

Fyrakin 09/08/15 10:13 AM

Quote:

Originally Posted by ZOS_ChipHilseberg (Post 23361)
I briefly tried reproing this and everything seemed fine. What POIs were you experiencing problems with?

I was doing quest hubs in Glenumbra as part of Cadwll's gold.
I listen to this event to update/refresh POI pins on MiniMap. Before 1.7 everything was working fine.

After some closer look on my side I found that there is a local variable for current zoneId declaration missing, I probably accidentally deleted it before running these tests at some point. I'll see if it now fires.

Err :( nope it didn't work. Just completed Cath Bedraud POI for a skillpoint, right after turning in the quest I expected this event to fire and update POI pins. Well, if it indeed fire then GetPOIMapInfo(zoneId, poiIndex) returned wrong icon (texture) for the pin.
After some time I manually executed update function and it applied proper icon.

I can confirm that this event indeed fires, but I suspect that at the moment this event fires GetPOIMapInfo(zoneId, poiIndex) returns the old texture value for the POI pin, I just made 300ms delay for the update and everything is fine now.


All times are GMT -6. The time now is 02:05 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI