Thread Tools Display Modes
Prev Previous Post   Next Post Next
06/19/14, 11:38 AM   #1
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Changes on PTS 1.2.2

Anyone trying public test server? Please post changes you have found so far.

I will start:
  • APIVersion in manifest is 100007

  • Itemlinks are now different. This is how itemlink looks like on PTS:
    Code:
    |H0:item:54513:3:9:45870:3:9:0:0:0:0:0:0:0:0:0:5:0:0:0:0|h|h
    |H0:item:793:1:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h
    |H0:item:45024:19:12:26848:19:12:0:0:0:0:0:0:0:0:0:9:0:0:124:0|h|h
    New format is:
    Lua Code:
    1. "|H" .. linkStyle .. ":" .. linkType .. ":" .. data .. "|h" .. text .. "|h"
    Variable "text" is usualy empty string, at least in links generated using the GetItemLink(bagIndex, slotIndex) and links which you get from events (tested with EVENT_LOOT_RECEIVED and EVENT_INVENTORY_SINGLE_SLOT_UPDATE).

    New CreateLink and ParseLink functions:
    Lua Code:
    1. function ZO_LinkHandler_CreateLink(text, color, linkType, ...) --where ... is the data to encode
    2.     if linkType then
    3.         return ("|H%d:%s|h[%s]|h"):format(LINK_STYLE_BRACKETS, zo_strjoin(':', linkType, ...), text)
    4.     end
    5. end
    6.      
    7. function ZO_LinkHandler_ParseLink(link)
    8.     if type(link) == "string" then
    9.         local linkStyle, data, text = link:match("|H(.-):(.-)|h(.-)|h")
    10.         return text, linkStyle, zo_strsplit(':', data)
    11.     end
    12. end

  • It seems that all objects shown on "hud" scene are now scene fragments based on ZO_HUDFadeSceneFragment object. On live servers are still some windows (ZO_ActionBar1, ZO_Compass) shown/hidden just using the method :SetHidden(). On PTS you can use scene fragments COMPASS_FRAME_FRAGMENT, ACTION_BAR_FRAGMENT, UNIT_FRAMES_FRAGMENT, DEATH_FRAGMENT, FOCUSED_QUEST_TRACKER_FRAGMENT, ...

  • New events (or events which I didn't find on wiki):
    EVENT_INPUT_LANGUAGE_CHANGED ()
    EVENT_JUSTICE_BOUNTY_ADDED (bountyAmount, zoneName)
    EVENT_SAVE_GUILD_RANKS_RESPONSE (guildId, result)
    EVENT_DISCOVERY_EXPERIENCE (subzoneName, level, previousExperience, currentExperience) (probably instead of EVENT_EXPERIENCE_GAIN_DISCOVERY)

  • Event handler for EVENT_FRIEND_PLAYER_STATUS_CHANGED has a new argument "characterName":
    Live: EVENT_FRIEND_PLAYER_STATUS_CHANGED (displayName, oldStatus, newStatus)
    PTS: EVENT_FRIEND_PLAYER_STATUS_CHANGED (displayName, characterName, oldStatus, newStatus)

  • A new update reason for event EVENT_INVENTORY_SINGLE_SLOT_UPDATE:
    INVENTORY_UPDATE_REASON_DYE_CHANGE

  • Center screen announce object has now global reference CENTER_SCREEN_ANNOUNCE, the old function ZO_CenterScreenAnnounce_GetAnnounceObject() was removed.

  • A new return value "isOwned" from GetLootTargetInfo()
    Live: name, targetType, actionName = GetLootTargetInfo()
    PTS: name, targetType, actionName, isOwned = GetLootTargetInfo()

  • A new return value "isOwned" from GetGameCameraInteractableActionInfo()
    Live: action, interactableName, interactionBlocked, additionalInfo, context = GetGameCameraInteractableActionInfo()
    PTS: action, interactableName, interactionBlocked, isOwned, additionalInfo, context = GetGameCameraInteractableActionInfo()

  • A new GameCameraAdditionalInfo:
    ADDITIONAL_INTERACT_INFO_INSTANCE_TYPE

  • There are three new functions instead of GetMailItemInfo(mailId):
    senderDisplayName, senderCharacterName = GetMailSender(mailId)
    _, _, fromSystem, fromCustomerService = GetMailFlags(mailId)
    numAttachments, attachedMoney, codAmount = GetMailAttachmentInfo(mailId)
    (there is probably more return values)

  • Some changes to the chat channel categories. I didn't test it much, but if you want to get category you have to use GetChannelCategoryFromChannel(CHAT_CHANNEL_SAY) instead of just CHAT_CHANNEL_SAY. UI errors from X4D_Chat addon are caused by this change.

  • New return value from GetChatterFarewell():
    Live: backToTOC, farewell = GetChatterFarewell()
    PTS: backToTOC, farewell, isImportant = GetChatterFarewell()

  • New slotType SLOT_TYPE_DYEABLE_EQUIPMENT (return value from GetSlotType(slotIndex) or ZO_InventorySlot_GetType(inventorySlot)

  • Function ZO_ItemTooltip_AddLockIcon(tooltipControl) was removed.

  • Two new functions in global API:
    zo_percentBetween(startValue, endValue, value)
    zo_replaceInVarArgs(indexToReplace, itemToReplaceWith, ...)

  • ZO_ColorDef object has a new method :IsEqual(other).

  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Changes on PTS 1.2.2


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