Need Help Fixing Error After Running Gearswap

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » Windower » General » Need help fixing error after running gearswap
Need help fixing error after running gearswap
 Leviathan.Chiquitito
Offline
Serveur: Leviathan
Game: FFXI
Posts: 8
By Leviathan.Chiquitito 2024-04-22 23:49:53
Link | Citer | R
 
I keep getting an error saying:

gearswap has detected an error in the user function precast: ...x86) Windower/addons/gearswap/libs/sel-utility.lua.2259: attempt to index field "?" (a nil value)
Code
function main_weapon_is_one_handed()
	if player.equipment.main == nil or player.equipment.main == 'empty' then return false end
	return data.skills.one_handed_combat:contains(res.items[item_name_to_id(player.equipment.main)].skill) or false


This is the line the error refers to. How can i fix this?
 Bahamut.Boposhopo
Offline
Serveur: Bahamut
Game: FFXI
user: Boposhopo
Posts: 91
By Bahamut.Boposhopo 2024-04-23 00:40:18
Link | Citer | R
 
It's a Selindrile lua, just go to his Discord
Offline
Posts: 464
By drakefs 2024-04-23 00:57:42
Link | Citer | R
 
You can try reloading the lua after your inventory finishes loading.

if that doesn't work, I would suggest re-obtaining the LUAs and see if you still get the error before making changes to it.