Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 16 21:13

    sirinsidiator on pts8.0

    8.0.4 (compare)

  • May 09 20:34

    sirinsidiator on pts8.0

    8.0.3 (compare)

  • May 09 20:09

    sirinsidiator on master

    7.3.9 (compare)

  • May 02 18:08

    sirinsidiator on pts8.0

    8.0.2 (compare)

  • Apr 25 15:46

    sirinsidiator on pts8.0

    8.0.1 (compare)

  • Apr 25 10:57

    sirinsidiator on master

    7.3.8 (compare)

  • Apr 19 20:12

    sirinsidiator on pts8.0

    8.0.0 (compare)

  • Apr 18 15:10

    sirinsidiator on master

    updated ESOUIDocumentation.txt (compare)

  • Apr 11 15:45

    sirinsidiator on master

    7.3.7 (compare)

  • Mar 28 10:48

    sirinsidiator on master

    7.3.6 (compare)

  • Mar 18 11:50

    sirinsidiator on master

    updated ESOUIDocumentation.txt (compare)

  • Mar 14 22:39

    sirinsidiator on master

    7.3.5 (compare)

  • Mar 14 11:56

    sirinsidiator on pts7.3

    7.3.5 (compare)

  • Feb 28 17:57

    sirinsidiator on pts7.3

    7.3.4 (compare)

  • Feb 21 17:30

    sirinsidiator on pts7.3

    7.3.3 (compare)

  • Feb 14 18:23

    sirinsidiator on pts7.3

    7.3.2 (compare)

  • Feb 14 17:41

    sirinsidiator on master

    7.2.10 (compare)

  • Feb 07 20:09

    sirinsidiator on pts7.3

    7.3.1 (compare)

  • Feb 01 12:10

    sirinsidiator on pts7.3

    7.3.0 (compare)

  • Jan 31 16:31
    Baertram commented #2
ZOSDanBatson
@ZOSDanBatson
Considering screen space is typically measured in 1920x1080
Sharlikran
@Sharlikran
Well I've been able to get the map zoom so I'm loking at that, for the moment
Thanks for the clarification that it doesn't take a normalized map position
IsJustaGhost
@IsJustaGhost
is there a way i can set to show the quest marker like the ones used for writs (or is it just certifications) over a specific crafting station type?
my intent for use would be. if i have an item to decon used on the station, then show quest marker over the station.
Shinni
@Binaryvector
there is no api that does nit automatically, but you could do it by displaying a 3d texture
you'd need to hardcode all the crafting station locations in your addon though
Sharlikran
@Sharlikran
@ZOSDanBatson I'm still fine with the code I found and what im working on to get the users map scale and some other data. However, if the mouse crsr uses a UI position that IsPointInside can use, is there an api to take normalized coordinates and convert them to UI coordinates?
ZOSDanBatson
@ZOSDanBatson
Not super easily, I don't think :/
If you know a pin control exists, you can probably ask that pin's control what it's position is (control:GetCenter()), cause that should be in screen space.
Sharlikran
@Sharlikran

If I knew the center position using that, can I then convert the X,Y to normalized coordinates? I saw some routines in worldmap.lua

https://github.com/esoui/esoui/blob/aee237c37ddbfcbe714269d1685de4aff34dc321/esoui/ingame/map/worldmap.lua#L6293-L6296

I saw that and I don't know how to get the min and max, but if I could do something with the center UI screen space coordinates that would also help.

If nothing else where I am going will be fine but if there are other ways I'd like to experiment with them.

ZOSDanBatson
@ZOSDanBatson
That block of code has nothing to do with normalizing screen or map points to screens or maps. It's normalizing border points around a central point. It's so that the information remains consistent as the map moves around, basing everything one central center point, without needing to constantly rebuild the mapping. Nothing about those lines of code will help you.
shehi
@shehi
@ZOSDanBatson , regarding DATEFORMAT again:
Can you confirm that language.2 set inside UserSettings.txt takes effect only when game is launched via the Launcher? Or will it be effective if one starts the game directly, through eso.exe? In a nutshell, how crucial is Launcher in launching the game?
Baertram
@Baertram
afaik UserSettings.txt is not only changed read/written if the launcher is used, but always as eso is running.
Same for AddOnSettings.txt
Else someone would have reported before already, that the settings or addons are not saved properly (including myself :-) )
ZOSDanBatson
@ZOSDanBatson
If you change it directly via UserSettings.txt, you can only do that when the game is closed. But if you do it with SetCVar, it will apply immediately (after a reloadui, which should happen automatically.)
Launcher has no bearing on anything
IsJustaGhost
@IsJustaGhost
Has this one been brought up yet, using table for a parameter?
function ZO_FilteredNumericallyIndexedTableIterator(table, filterFunctions)
Baertram
@Baertram
I think I mentioned the "table" parameter in some ZO_ functions already a few weeks before, yes
@IsJustaGhost @ZOSDanBatson
Usage of "table" as parameter in file /esoui/libraries/utility/zo_tableutils.lua
ZO_IsTableEmpty(table)
ZO_IsElementInNumericallyIndexedTable(table, element)
ZO_IndexOfElementInNumericallyIndexedTable(table, element)
ZO_FilteredNumericallyIndexedTableIterator(table, filterFunctions)
ZO_FilteredNonContiguousTableIterator(table, filterFunctions)
sirinsidiator
@sirinsidiator
didn't Dan say they'd clean it up?
ZOSDanBatson
@ZOSDanBatson
Yes, Dan did
Say that
sirinsidiator
@sirinsidiator
"Yes, Dan did"
ZOSDanBatson
@ZOSDanBatson
lol
CUte
sirinsidiator
@sirinsidiator
^^
ZOSDanBatson
@ZOSDanBatson
Cardinal fixed it, should be there when PTS goes out, whenever that is
sirinsidiator
@sirinsidiator
I'd have linked your original comment if the shitty gitter search would have shown it to me, but alas
Sharlikran
@Sharlikran

This is a "how would I go about doing this" kind of question, not trying to get someone to do it for me. I am looking for an example for now because I have no idea where I would look or what I would look for. The same is if the function was ZO_UpdateMap_InitOnReload() (<-- just made up name) and I didn't know how to find when it was replaced or changed.

Also I can't use Mer Torchbug because while it does list many ZO_Quest and ZO_QuestJournal entries I'm trying to learn from asking how to find things like this when changes have been made. Like a returning author trying to figure out Dan's recent Object Pool changes to the initialize sequence.

If a mod has this function in it

ZO_QuestTracker["tracker"]:InitialTrackingUpdate()

How would I find what it has changed to?

Sharlikran
@Sharlikran

Trying to teach myself to fish I did try searching InitialTrackingUpdate and I found

https://github.com/esoui/esoui/blob/aee237c37ddbfcbe714269d1685de4aff34dc321/esoui/ingame/zo_quest/questtracker.lua#L408

I don't know what that will do but what if it is not that easy in the future? I'm just throwing darts at the moment with this search.

What is a better way.

sirinsidiator
@sirinsidiator
that's a question with no definite answer. but if I'd try to fix some random old addon that no longer works after a recent update and I already found that some function no longer exists, I'd just check out an older commit of the esoui repo and search for that function there, then take a look at the git history to see what it has been replaced with
also keep in mind that github search only works on the current commit in the master branch, so that's something you will have to do locally
Sharlikran
@Sharlikran
I was afraid of that, but I understand
sirinsidiator
@sirinsidiator
it's nothing to be afraid of. if you do not want to mess with git in the commandline, there's plenty of GUIs for it. I personally use TortoiseGit
Sharlikran
@Sharlikran
/EsoUI/Ingame/ZO_Quest/QuestTracker.lua:1018: attempt to index a nil value
stack traceback:
/EsoUI/Ingame/ZO_Quest/QuestTracker.lua:1018: in function 'ZO_Tracker:ClearTracker'
|caaaaaa<Locals> self = [table:1]{initialized = T, __isAbstractClass = F} </Locals>|r
/EsoUI/Ingame/ZO_Quest/QuestTracker.lua:420: in function 'ZO_Tracker:InitialTrackingUpdate'
|caaaaaa<Locals> self = [table:1], previouslyAssistedQuestIndex = 10 </Locals>|r
user:/AddOns/FCMQT/FCMQT.lua:669: in function 'FCMQT.QuestsLoop'
|caaaaaa<Locals> userCurrentZone = "Vvardenfell", currentMapZoneIdx = 467, limitnbquests = 12, nbquests = 12, showquests = 12, valcheck = 1, order = "Zone+Name" </Locals>|r
user:/AddOns/FCMQT/FCMQT.lua:707: in function 'FCMQT.QuestsListUpdate'
|caaaaaa<Locals> eventCode = 1 </Locals>|r
user:/AddOns/FCMQT/FCMQT.lua:1318: in function 'FCMQT.Init'
|caaaaaa<Locals> eventCode = 65536, addOnName = "FCMQT", panelData = [table:2]{name = "FCMQT Settings", author = "Blackstorm", slashCommand = "/fcmqt", version = "0.66", displayName = "|cefebbeFCMQT Settings|r", type = "panel"}, optionsData = [table:3]{} </Locals>|r
Incidentally, if I do call that it does error probably because it is not intended to be used as just ZO_Tracker:InitialTrackingUpdate() on a single line without something else being done first.
but I can play around with it, thanks Siri
sirinsidiator
@sirinsidiator
that's correct. ZO_Tracker is a class. calling functions on it directly is not the way you are supposed to use them. You need to call it on an instance, like FOCUSED_QUEST_TRACKER
Sharlikran
@Sharlikran

I love how going in steps and thinking out loud, you tell me you should be using something like FOCUSED_QUEST_TRACKER rather then the class, and I find a slightly updated version of the mod with the older function replaced with FOCUSED_QUEST_TRACKER:InitialTrackingUpdate()

Thanks again, that's interesting. I need to learn about this but not sure what it's even called, the nomenclature for it

Sharlikran
@Sharlikran
I still learned something but don't fully understand it all, thanks
sirinsidiator
@sirinsidiator
it's called object oriented programming in case you want to learn more about it. the class is like the templates in xml. you use it to define how stuff looks like, but you cannot do anything with it directly. in order to use it you first need to create an object from it (=controls in xml)
Sharlikran
@Sharlikran
Yeah I really don't know what object oriented programming is other then hearing the words used. I think most of the time if I'm using it, it's because Something:SomeFunction(args) is just the syntax to do what I want. Not that I understand what it is. The way you explained it was helpful. Thanks.
sirinsidiator
@sirinsidiator
it's actually only half the truth since it's Lua we are talking about and Lua doesn't know object oriented programming either, but it should be enough to give you a basic understanding of how it's supposed to be used
Baertram
@Baertram

I'd have linked your original comment if the shitty gitter search would have shown it to me, but alas

I had searched for it as well and cuz I was not able to find it I just repeated it for IsJustAGhost. Sorry, I knew Dan knows ;-)

@Sharlikran About OO programming, maybe this is a "simple" explanation with examples: https://funtech.co.uk/latest/explain-object-oriented-programming-to-kids
Sharlikran
@Sharlikran
I called my local Community College and they said in the spring they will be offering free entry level classes but for iOs with something, I think she called Swif or Swift. I could not hear her well because she was in her car. Now, not what I really wanted but in the end I have been meaning to make something for phones, even though I wanted to do the programming and testing on my Android to avoid any developer environment/testing (to get it onto the phone to see how it worked) kind of fees. So, something interesting anyway.
Baertram
@Baertram
As you say car, car is a good example of a "class" :-)

image.png
image.png

You can then create multiple objects of that class which inherite the attributes and methods, and you can add new ones to each object
Like "normal car" is a standard object of the class car
And a "race car" would have the same attributes and methods, but also a method "pit stop" etc.

Sharlikran
@Sharlikran
Lol
sirinsidiator
@sirinsidiator
it's called "swift". it's the programming language Apple uses for iOS