Thread Tools Display Modes
09/11/24, 04:25 PM   #1
xghoststrike
Join Date: Jun 2017
Posts: 2
Question Can you modify addon settings through the Lua SavedVariables file?

I use the addon Lui Extended and want to remove the Loot History. I want to use LootDrop Reborn.

If I enable LootDrop Reborn, I have 2 loot logs displaying all my loot and items.

I don't know enough about coding to modify the founding Lua files for Lui Extended to remove the built-in Loot history. I looked at the Saved Variables Lua file for Lui extended and found the placement coordinates for the Loot History. I tried to set them to x = 5000, y = 5000 and then save. however, when I reload the UI in the game, the Saved Variables file gets updated to the previous information I changed.

Is it possible to change information in a saved variables file and have them apply ingame without getting reverted? Could I set the file to read-only? However, that would mean I would not be able to change any settings in-game in the future without disabling that.

If not editing saved variables files, would anyone know how to remove the loot history display of Lui Extended so that I can use a different mod to better display looted information

Last edited by xghoststrike : 09/11/24 at 04:28 PM.
  Reply With Quote
09/11/24, 09:38 PM   #2
DakJaniels
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 39
Originally Posted by xghoststrike View Post
I use the addon Lui Extended and want to remove the Loot History. I want to use LootDrop Reborn.

If I enable LootDrop Reborn, I have 2 loot logs displaying all my loot and items.

I don't know enough about coding to modify the founding Lua files for Lui Extended to remove the built-in Loot history. I looked at the Saved Variables Lua file for Lui extended and found the placement coordinates for the Loot History. I tried to set them to x = 5000, y = 5000 and then save. however, when I reload the UI in the game, the Saved Variables file gets updated to the previous information I changed.

Is it possible to change information in a saved variables file and have them apply ingame without getting reverted? Could I set the file to read-only? However, that would mean I would not be able to change any settings in-game in the future without disabling that.

If not editing saved variables files, would anyone know how to remove the loot history display of Lui Extended so that I can use a different mod to better display looted information
You don't need to modify any code.

I am assuming you are talking about the games loot history as LUIE does not have a loot history window, just the ability to move the base games loot history window.




Turn off this game setting.



You should now have just the LootDrop loot history window now.

  Reply With Quote
09/11/24, 10:26 PM   #3
xghoststrike
Join Date: Jun 2017
Posts: 2
Originally Posted by DakJaniels View Post
You don't need to modify any code.

I am assuming you are talking about the games loot history as LUIE does not have a loot history window, just the ability to move the base games loot history window.




Turn off this game setting.



You should now have just the LootDrop loot history window now.

No ****ing way.

LootDrop Reborn says "hide default loot history" I enabled that and it didn't work. that's why I thought that Lui was getting in the way adding its own loot history.

I wasted 3 hours trying to backwards engineer Lui code to fix my problem.

Thank you so much.
  Reply With Quote
09/12/24, 02:31 AM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 420
Usually, it's going to be easier to modify settings through the methods the add-on provides, but in case you ever need to modify it manually, you need to logout (character select screen is ok) and then change the saved variables file. This is because the game writes what is in memory to the saved variables file when you reload UI or logout. So if you change it while logged in, you aren't changing the value in memory, and it will be overwritten when you logout.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Can you modify addon settings through the Lua SavedVariables file?

Thread Tools
Display Modes

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