|
Gearswap visualizer
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 08:55:37
Has anyone attempted to make a not in game gearswap review tool
Like let's say I wanted to review someone's lua they asked me to look at.
Having the code scoop up basic namings doesn't need to be fancy
Sets.midcast.enhancing
Sets.engaged
Have these act like folders
Ideally this would just be attached to something we already have
Which it would generate a visual you can hover over for each piece of gear like on the itemsets or whatever the wiki ones are called.
With the code {} next to it
Sets combine might be tricky
But with this potential mistakes can be caught as well.
By Lili 2025-07-16 09:02:09
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 09:09:58
This is a bit more complicated than what I was looking for
While I really like this idea this would be for building as well as reviewing
Just looking for something that would let me quickly review someone's current setup per say
Like if I wanted to help a newer player and rather than asking them a million questions I can look with them and be like this is where you need improvement we can go get this for you for x set
By Kaffy 2025-07-16 09:36:19
this sounds cool.
what if you could gs export and create an itemset in ffxiah format too?
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 09:45:03
Can you rawdawg a item set in bb script?
Ideally I would have it run in a local browser after it does it's thing
Paste the data it scraped for the visual under said visual
sets["Max pdt"] = {
ammo="Brigantia Pebble",
head="Null Masque",
neck="Loricate Torque +1",
ear1="Odnowa Earring +1",
ear2="Tuisto Earring",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Gelatinous Ring +1",
ring2="Defending Ring",
back="Moonlight Cape",
waist="Plat. Mog. Belt",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
https://www.ffxiah.com/item-sets/400100
By Kaffy 2025-07-16 09:48:23
i think the sets here use the id # and then generate the macro and gearswap code with the item name, just need to reverse the process?
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 09:57:25
That is something that would need to be built into the website I believe
Would be very useful for sharing and reviewing sets
Which also why I want it to show the {} data while using the visual
Server: Fenrir
Game: FFXI
Posts: 260
By Fenrir.Brimstonefox 2025-07-16 10:04:41
How close is what you want to "//gs export sets"? (it creates files in gearswap/export folder I think)
https://docs.windower.net/addons/gearswap/
I think this is a bit orthogonal to what you're asking for but it could be helpful:
FWIW closetCleaner can find typos with gear names (as it cross checks resources) and reports everything in any inventory not in a gearswap sets (and anything your gearswap sets not in any inventory). 2 disclaimers with this:
1. back up your macros (locally or to server) before running it, it almost always zonks one of mine, i have no idea why :(
2. depending on how your gearswap is constructed it might barf, I always wanted to revisit this, the known restrictions are in the thread below (I did fix some of them in the initial post though)
Its built in already: "//gs cc"
https://www.ffxiah.com/forum/topic/49796/introducing-closetcleaner-new-addon
(I can attempt updates to it if people give me feedback)
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 10:12:00
So at the simplest
Paste in code from someone such as
sets["Max pdt"] = {
ammo="Brigantia Pebble",
head="Null Masque",
neck="Loricate Torque +1",
ear1="Odnowa Earring +1",
ear2="Tuisto Earring",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Gelatinous Ring +1",
ring2="Defending Ring",
back="Moonlight Cape",
waist="Plat. Mog. Belt",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
And turn it into
ItemSet 400100
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 13:52:03
I went with what was already available but
I am outa ai gas and also outa gas
Got pretty close to get something that dumps a blob to input to a bgwiki user page
Breaks sometimes because I am not versed in the expected wiki format
Prompt needs further refining
But it accepts a lua and spits out all the sets it encounters and their names in wiki itemset format
Still needs to be pasted into a page like
https://www.bg-wiki.com/ffxi/User:Jinxs
Anytime bg encounters something like |Head=gear.herculean_fc_head
It gets upset which was on a few of the random luas I downloaded
It refined the prompt when I told it about ammo names with "" or capes
And added them to the end making a new prompt in the process
It wrote the prompt itself for itself Code
Enhanced Prompt: Gearswap Lua to BG Wiki Conversion Specialist
You are an expert at converting FFXI Gearswap Lua code into BG Wiki WikiText for gear set pages. Your task is to take the content of an uploaded jobgear.lua file, and output only the formatted WikiText, ready for direct copy-pasting onto a BG Wiki page's edit window (e.g., https://www.bg-wiki.com/index.php?title=All_Jobs_Gear_Sets/Warrior&action=edit). You will provide no conversational text, no explanations, no Python code, and no JSON in your output.
Strict Conversion Rules:
* Input Acquisition:
* The Gearswap Lua code will be provided from an uploaded jobgear.lua file.
* Output Structure - Section 1: Guide Equipment Set Table:
* Start the entire output with {{Guide Equipment Set Table and |Header Notes=.
* Follow with |Guide Equipment Sets=.
* For each distinct gear set found in the Lua code, generate a {{Guide Equipment Set}} template call.
* {{Guide Equipment Set}} Template Details:
* Standard Styling: Apply the following static parameters for each set:
* |Set Name Background=#604028
* |Set Name Text Color=
* |Set Name Text Shadow=#000080
* |Set Border Color=#51414F
* |Set Name=: Derive this from the final part of the Lua set path.
* Example: sets.precast.JA['Triple Shot'] -> Triple Shot[[Triple Shot|*]]
* Example: sets.engaged.DW.Acc -> Acc[[Acc|*]]
* Example: sets.idle.PDT -> PDT[[PDT|*]]
* |Equipment Set= Block: This parameter will contain a nested {{Equipment Set}} template.
* |CaptionTop=: Use the full, literal Lua set path exactly as it appears in the sets table definition (e.g., sets.precast.JA['Triple Shot'], sets.idle.PDT), with no modifications to spacing, dots, capitalization, or array indexing format.
* |CaptionBottom=: This parameter will always be left empty.
* Gear Slot Parameters:
* Include only gear slots explicitly defined in the Lua set.
* Map Lua keys to WikiText parameters directly (e.g., head -> |Head, ring1 -> |Ring1, range or ranged -> |Ranged).
* Remove all quotation marks from the values.
* Lua variables (e.g., gear.QDbullet, gear.ranger_wsd_jse_back) should be included exactly as they appear in the Lua, without quotation marks.
* Order of Gear Slots: Maintain a consistent order if possible: main, sub, ranged, ammo, head, neck, ear1, ear2, body, hands, ring1, ring2, back, waist, legs, feet. Only include slots present in the set.
* Standard Equipment Set Fields:
* |List = Y
* |Background =
* Set-Specific Notes (Equipment Set Notes and Plain Text):
* |Equipment Set Notes=: This parameter will always be left empty.
* Any descriptive text found in Lua comments directly associated with a set (e.g., -- Standard TP Generating Shot) should be extracted and placed as plain text immediately after the inner Equipment Set's closing }} and before the outer Guide Equipment Set's closing }}. Each such note should be on its own line.
* Empty Sets: If a Lua set is defined as empty (sets.xxx = {}), the Equipment Set block inside {{Guide Equipment Set}} will only contain |CaptionTop=, |CaptionBottom=, |List = Y, and |Background =, with no gear slot parameters.
* End of Section 1:
* After the last {{Guide Equipment Set}} block, close the Guide Equipment Set Table with }}.
* Output Structure - Section 2: Raw Lua Code:
* After the {{Guide Equipment Set Table}} closure, add a new line.
* Include a heading: === Raw Gearswap Lua Code ===
* Wrap the original Gearswap Lua code from the uploaded file within a {{CodeBox}} template, specifically setting the language to lua.
* Example: {{CodeBox|lang=lua| <CONTENT_OF_UPLOADED_LUA_FILE_HERE> }}. Ensure the content is exactly the raw Lua code as provided.
Gearswap Lua Code: (Please upload your jobgear.lua file directly with this prompt.)
Shiva.Thorny
Server: Shiva
Game: FFXI
Posts: 3382
By Shiva.Thorny 2025-07-16 14:09:07
your prompt is more text than the code it'd take to write a lua function to dump it
never mind that the lua function *can* resolve dependent variables since it's in the actual environment
at least you told the AI that it's an expert at the task, that'll definitely help
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 14:14:33
The ai told the ai it's an expert
I honestly do not have enough experience to create from scratch only enough for mimicry
That is a good point but I was hoping to find a way outside of the ffxi environment as it won't be my luas, but maybe I don't understand.
I was hoping to help a few returning friends with their gear
Shiva.Thorny
Server: Shiva
Game: FFXI
Posts: 3382
By Shiva.Thorny 2025-07-16 14:39:13
i'd still say the best approach is to start from within the ffxi environment, because that gives you access to things like the item resource table for data validation, unless the issue is that you want to do it somewhere away from PC or ask someone else to do it
a ffxi addon can use that data validation and access to print a much cleaner version of that blurb you're looking to use if the end goal is to paste it into wiki and view it through a browser
i don't really think the problem and attempted solution are being described clearly though, since your initial description sounds like it could be solved by just collapsing/expanding sections of a file in vscode
Fenrir.Jinxs
Server: Fenrir
Game: FFXI
Posts: 791
By Fenrir.Jinxs 2025-07-16 14:49:02
I really like the format of the all jobs bg wiki pages as well as our legacy nodes on this forum
Sometimes people post straight gearswap sets in the code format and I gotta break it down in my head.
So I was imagining a way to take a gearswap lua, not my own, scrape it for everything labeled
Like sets.precast.ws
And create a visual box for it
Has anyone attempted to make a not in game gearswap review tool
Like let's say I wanted to review someone's lua they asked me to look at.
Having the code scoop up basic namings doesn't need to be fancy
Sets.midcast.enhancing
Sets.engaged
Have these act like folders
Ideally this would just be attached to something we already have
Which it would generate a visual you can hover over for each piece of gear like on the itemsets or whatever the wiki ones are called.
With the code {} next to it
Sets combine might be tricky
But with this potential mistakes can be caught as well.
|
|