You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now findAll dumps inventory data into findAll/data/${character_name}.lua. However, it is possible for players to have the same character name on two servers.
It should instead use both server_name and character_name in the path or filename.
Pretty trivial change (windower.ffxi.get_info()['server'] + resources.servers to translate it), but it would invalidate existing files for people.
You could add a fall back to the original path, in the event findAll/data/${server_name}_${character_name}.lua does not exist look for findAll/data/${character_name}.lua and then only save to the new path.
Pretty trivial change (windower.ffxi.get_info()['server'] + resources.servers to translate it), but it would invalidate existing files for people.
This approach will cause errors on private servers without additional consideration (specifically that, on a private server, windower.ffxi.get_info()['server'] would typically return nil, so make sure to handle that case)
Keeping it private-server friendly, and backwards compatible, would just be a matter of making it fallback to Charactername.lua if Server_Charactername.lua is not found.
Activity
Nifim commentedon Aug 28, 2023
You could add a fall back to the original path, in the event
findAll/data/${server_name}_${character_name}.luadoes not exist look forfindAll/data/${character_name}.luaand then only save to the new path.RubenatorX commentedon Aug 28, 2023
This approach will cause errors on private servers without additional consideration (specifically that, on a private server,
windower.ffxi.get_info()['server']would typically returnnil, so make sure to handle that case)lili-ffxi commentedon Sep 5, 2023
Keeping it private-server friendly, and backwards compatible, would just be a matter of making it fallback to
Charactername.luaifServer_Charactername.luais not found.