08-19-2015, 04:30 AM
If I might lend a hand:
Concerning markers, the easiest way to pull the current marker, is to check ml_global_information.currentMarker, rather than the task's marker.
Get and SetFieldValue now use the static "us" language term for the field to prevent languages from corrupting them, so use SetFieldValue(GetUSString("baitName")) or SetFieldValue("Time (s)").
GetMarker was changed slightly to GetMarkerByName(markerName), and GetMarker() repurposed to grab a marker by index.
Templates are now stored using their static template name, instead of a language-dependent name, so you can use the following to create/copy one:
Hope this helps, fight the good fight.
Concerning markers, the easiest way to pull the current marker, is to check ml_global_information.currentMarker, rather than the task's marker.
Get and SetFieldValue now use the static "us" language term for the field to prevent languages from corrupting them, so use SetFieldValue(GetUSString("baitName")) or SetFieldValue("Time (s)").
GetMarker was changed slightly to GetMarkerByName(markerName), and GetMarker() repurposed to grab a marker by index.
Templates are now stored using their static template name, instead of a language-dependent name, so you can use the following to create/copy one:
Code:
local templateMarker = ml_marker_mgr.templateList["fishingTemplate"]
if (ValidTable(templateMarker)) then
newMarker = templateMarker:Copy()
newMarker:SetName(newMarker:GetType())
else
ml_error("[NewMarker]: Could not find valid template for type [" .. gMarkerMgrType .. "].")
end
Hope this helps, fight the good fight.