[open] Guilds: Number of members is displayed/returned incorrectly
Hello,
for some reasons the number of active members (guild size) is returned incorrectly for smaller guilds (of which I am not a member). For larger guilds it is returned correctly and accurate but for guilds that have only 1-20? members it just returns 0 all the time. I access the data on the following way: Lua Code:
Of course, the number is returned correctly if Im a member of the guild -> the bug appears only when viewing other guilds. Furthermore, the number is always the same as displayed in the guild information. I supose I access the data the same way the game itself does. Therefore, the bug is also present e.g. when you open a guild chat link of a small guild.
Thanks in advance |
I'd register a callback function to this event to start your code as the guilddata is ready:
https://github.com/esoui/esoui/blob/...shared.lua#L35 Lua Code:
This is how the ZOs code does it. Create your own callback register and use e.g. anoher local function MyOnGuildDataReady, and in there do your checks on the guilddata. This should strip your "wait some time" code as it shouldl fire as your requested guildData IS ready. Maybe this will already fix he 0 issue then. btw: Did you check the guildId is correct and given? Maybe it is 0 itsself and thus the function returns 0 ? Guild size data: https://github.com/esoui/esoui/blob/...nager.lua#L199 Maybe this helps and returns another value (which would make me wonder) GetGuildSizeAttribute(guildId) |
Thank you Baertram for your helpful hints.
Unfortunately, this does not solve the 0 problem. Your code and also GetGuildSizeAttribute(guildId) works the same way as expected and returns 0 for smaller guilds. Here is just one example: This guild on NA server is currently small. If you can reach it somehow to get the number of the member without joining the guild. Please let me know: |H1:guild:738317|hKBMU|h However, thanks for considering and best regards |
All times are GMT -6. The time now is 05:45 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI