Need Help Fixing Error After Running Gearswap

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » General » Need help fixing error after running gearswap
Need help fixing error after running gearswap
 Leviathan.Chiquitito
Offline
Server: Leviathan
Game: FFXI
Posts: 8
By Leviathan.Chiquitito 2024-04-22 23:49:53
Link | Quote | Reply
 
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
Server: Bahamut
Game: FFXI
user: Boposhopo
Posts: 79
By Bahamut.Boposhopo 2024-04-23 00:40:18
Link | Quote | Reply
 
It's a Selindrile lua, just go to his Discord
Offline
Posts: 404
By drakefs 2024-04-23 00:57:42
Link | Quote | Reply
 
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.
Log in to post.