Gearswap Support Thread

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Support » Gearswap Support Thread
Gearswap Support Thread
First Page 2 3 ... 13 14 15 ... 183 184 185
 Asura.Aikchan
Offline
サーバ: Asura
Game: FFXI
user: Aikawa
Posts: 373
By Asura.Aikchan 2014-05-26 13:26:19  
Asura.Pasi said: »
What's the code to show swaps as a default?
not sure if GS have that option coz there isnt a setting file on the folder..
 Lakshmi.Byrth
VIP
Offline
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6191
By Lakshmi.Byrth 2014-05-26 13:38:39  
You can just put show_swaps() in your get_sets function.
 Asura.Aikchan
Offline
サーバ: Asura
Game: FFXI
user: Aikawa
Posts: 373
By Asura.Aikchan 2014-05-26 13:41:33  
Lakshmi.Byrth said: »
You can just put show_swaps() in your get_sets function.
just tried to see, and error...
lua error [runtime]... /flow.lua:276:
...attempt to call global 'show_swaps' [a nil value]

tried w/ "showswaps() and same just in case
 Lakshmi.Byrth
VIP
Offline
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6191
By Lakshmi.Byrth 2014-05-26 13:43:19  
Hmm... It looks like I never enabled the function. I can fix it later.
 Fenrir.Thandar
Offline
サーバ: Fenrir
Game: FFXI
user: Thandar
Posts: 405
By Fenrir.Thandar 2014-05-26 14:08:45  
Fenrir.Thandar said: »
Asking for my brother, so some of the details may be off, but he was THF/NIN when he cast Utsusemi, it started trying to spam the spell. He's logged out, shut down, deleted and re-downloaded GearSwap and it still happens. He changed to MNK/NIN walked out of his Mog House and it kept trying to spam it, any idea what could cause that?

It was the Itemizer addon messing it up.
 Asura.Aikchan
Offline
サーバ: Asura
Game: FFXI
user: Aikawa
Posts: 373
By Asura.Aikchan 2014-05-26 14:14:37  
Fenrir.Thandar said: »
Fenrir.Thandar said: »
Asking for my brother, so some of the details may be off, but he was THF/NIN when he cast Utsusemi, it started trying to spam the spell. He's logged out, shut down, deleted and re-downloaded GearSwap and it still happens. He changed to MNK/NIN walked out of his Mog House and it kept trying to spam it, any idea what could cause that?

It was the Itemizer addon messing it up.
still... unless was fixed in the last 2 days..
 Lakshmi.Byrth
VIP
Offline
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6191
By Lakshmi.Byrth 2014-05-26 14:25:11  
I enabled the function (and debug_mode) a little bit ago. Also made it so that player data will update before user registered events.
 Asura.Tamoa
Offline
サーバ: Asura
Game: FFXI
user: Tamoa
Posts: 1341
By Asura.Tamoa 2014-05-26 15:17:53  
How do you set it up so you can toggle your gearsets with a controller? Thinking key binds, and asking for someone else - personally I use keyboard only, but it seems very inconvenient to use F9 etc if you play using controller.

Apologies if this has been asked and answered before (searched and couldn't find anything).
 Quetzalcoatl.Orestes
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Orestes78
Posts: 430
By Quetzalcoatl.Orestes 2014-05-26 15:20:05  
Asura.Tamoa said: »
How do you set it up so you can toggle your gearsets with a controller? Thinking key binds, and asking for someone else - personally I use keyboard only, but it seems very inconvenient to use F9 etc if you play using controller.

Apologies if this has been asked and answered before (searched and couldn't find anything).

If you use Mote's includes for toggles, this is the general syntax for a macro.
Code
/console gs c set OffenseMode Acc
 Asura.Tamoa
Offline
サーバ: Asura
Game: FFXI
user: Tamoa
Posts: 1341
By Asura.Tamoa 2014-05-26 15:23:45  
Quetzalcoatl.Orestes said: »
Asura.Tamoa said: »
How do you set it up so you can toggle your gearsets with a controller? Thinking key binds, and asking for someone else - personally I use keyboard only, but it seems very inconvenient to use F9 etc if you play using controller.

Apologies if this has been asked and answered before (searched and couldn't find anything).

If you use Mote's includes for toggles, this is the general syntax for a macro.
Code
/console gs c set OffenseMode Acc

Ooooh I see, thanks! :)
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-26 18:40:41  

I think I've done something really Basically dumb on this but I can not for the life of me figure out why the weather rule for elemental nukes isn't working.
 Bismarck.Inference
Offline
サーバ: Bismarck
Game: FFXI
user: Inference
Posts: 417
By Bismarck.Inference 2014-05-26 19:03:51  
Cerberus.Conagh said: »
I think I've done something really Basically dumb on this but I can not for the life of me figure out why the weather rule for elemental nukes isn't working.

I didn't look very indepth at the code for any other errors, but it should be spell.element all around(a few are spell_element).
Offline
Posts: 324
By Xavierr 2014-05-27 09:50:55  
having trouble getting my sch to cast spells in my nuking set. Not too great with gearswap yet so I'm sure I am doing something wrong. Maybe someone can put an example command here, would be great. ty
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-27 11:37:17  
Xavierr said: »
having trouble getting my sch to cast spells in my nuking set. Not too great with gearswap yet so I'm sure I am doing something wrong. Maybe someone can put an example command here, would be great. ty
Code
    If spell.skill=="Elemental Magic" then
        if string.find(spell.english,'helix') then
            equip(sets['midcast_Helix'])
        else
            equip(sets.midcast_ElementalMagic)
end
            
Offline
Posts: 8
By Aoushi 2014-05-27 13:31:05  
Hello again, I'm trying to convert my dnc xml into lua and don't know how to write the following into lua. Any and all help would be appreciated, thanks in advanced.
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-27 14:31:05  
Aoushi said: »
Hello again, I'm trying to convert my dnc xml into lua and don't know how to write the following into lua. Any and all help would be appreciated, thanks in advanced.


Mote's covered this pretty well in his Utility Lua for DNC,might be bettter using it but I'll paste the part about Dnc and hopefully you can find what you want in it.
Code
local waltz_tp_cost = {['Curing Waltz'] = 20, ['Curing Waltz II'] = 35, ['Curing Waltz III'] = 50, ['Curing Waltz IV'] = 65, ['Curing Waltz V'] = 80}

-- Utility function for automatically adjusting the waltz spell being used to match HP needs and TP limits.
-- Handle spell changes before attempting any precast stuff.
function refine_waltz(spell, action, spellMap, eventArgs)
	if spell.type ~= 'Waltz' then
		return
	end
	
	-- Don't modify anything for Healing Waltz or Divine Waltzes
	if spell.english == "Healing Waltz" or spell.english == "Divine Waltz" or spell.english == "Divine Waltz II" then
		return
	end

	local newWaltz = spell.english
	local waltzID
	
	local missingHP
	
	-- If curing ourself, get our exact missing HP
	if spell.target.type == "SELF" then
		missingHP = player.max_hp - player.hp
	-- If curing someone in our alliance, we can estimate their missing HP
	elseif spell.target.isallymember then
		local target = find_player_in_alliance(spell.target.name)
		local est_max_hp = target.hp / (target.hpp/100)
		missingHP = math.floor(est_max_hp - target.hp)
	end
	
	-- If we have an estimated missing HP value, we can adjust the preferred tier used.
	if missingHP ~= nil then
		if player.main_job == 'DNC' then
			if missingHP < 40 and spell.target.name == player.name then
				-- Not worth curing yourself for so little.
				-- Don't block when curing others to allow for waking them up.
				add_to_chat(122,'Full HP!')
				eventArgs.cancel = true
				return
			elseif missingHP < 200 then
				newWaltz = 'Curing Waltz'
				waltzID = 190
			elseif missingHP < 600 then
				newWaltz = 'Curing Waltz II'
				waltzID = 191
			elseif missingHP < 1100 then
				newWaltz = 'Curing Waltz III'
				waltzID = 192
			elseif missingHP < 1500 then
				newWaltz = 'Curing Waltz IV'
				waltzID = 193
			else
				newWaltz = 'Curing Waltz V'
				waltzID = 311
			end
		elseif player.sub_job == 'DNC' then
			if missingHP < 40 and spell.target.name == player.name then
				-- Not worth curing yourself for so little.
				-- Don't block when curing others to allow for waking them up.
				add_to_chat(122,'Full HP!')
				eventArgs.cancel = true
				return
			elseif missingHP < 150 then
				newWaltz = 'Curing Waltz'
				waltzID = 190
			elseif missingHP < 300 then
				newWaltz = 'Curing Waltz II'
				waltzID = 191
			else
				newWaltz = 'Curing Waltz III'
				waltzID = 192
			end
		else
			-- Not dnc main or sub; bail out
			return
		end
	end

	local tpCost = waltz_tp_cost[newWaltz]

	local downgrade
	
	-- Downgrade the spell to what we can afford
	if player.tp < tpCost and not buffactive.trance then
		--[[ Costs:
			Curing Waltz:     20 TP
			Curing Waltz II:  35 TP
			Curing Waltz III: 50 TP
			Curing Waltz IV:  65 TP
			Curing Waltz V:   80 TP
			Divine Waltz:     40 TP
			Divine Waltz II:  80 TP
		--]]
		
		if player.tp < 20 then
			add_to_chat(122, 'Insufficient TP ['..tostring(player.tp)..']. Cancelling.')
			eventArgs.cancel = true
			return
		elseif player.tp < 35 then
			newWaltz = 'Curing Waltz'
		elseif player.tp < 50 then
			newWaltz = 'Curing Waltz II'
		elseif player.tp < 65 then
			newWaltz = 'Curing Waltz III'
		elseif player.tp < 80 then
			newWaltz = 'Curing Waltz IV'
		end
		
		downgrade = 'Insufficient TP ['..tostring(player.tp)..']. Downgrading to '..newWaltz..'.'
	end

	
	if newWaltz ~= spell.english then
		send_command('@input /ja "'..newWaltz..'" '..tostring(spell.target.raw))
		if downgrade then
			add_to_chat(122, downgrade)
		end
		eventArgs.cancel = true
		return
	end

	if missingHP > 0 then
		add_to_chat(122,'Trying to cure '..tostring(missingHP)..' HP using '..newWaltz..'.')
	end
end


-- Function to allow for automatic adjustment of the spell target type based on preferences.
function auto_change_target(spell, action, spellMap)
	-- Don't adjust targetting for explicitly named targets
	if not spell.target.raw:startswith('<') then
		return
	end

	-- Do not modify target for spells where we get <lastst> or <me>.
	if spell.target.raw == ('<lastst>') or spell.target.raw == ('<me>') then
		return
	end
	
	-- init a new eventArgs with current values
	local eventArgs = {handled = false, PCTargetMode = state.PCTargetMode, SelectNPCTargets = state.SelectNPCTargets}

	-- Allow the job to do custom handling, or override the default values.
	-- They can completely handle it, or set one of the secondary eventArgs vars to selectively
	-- override the default state vars.
	if job_auto_change_target then
		job_auto_change_target(spell, action, spellMap, eventArgs)
	end
	
	-- If the job handled it, we're done.
	if eventArgs.handled then
		return
	end
	
	local pcTargetMode = eventArgs.PCTargetMode
	local selectNPCTargets = eventArgs.SelectNPCTargets

	
	local validPlayers = S{'Self', 'Player', 'Party', 'Ally', 'NPC'}

	local intersection = spell.targets * validPlayers
	local canUseOnPlayer = not intersection:empty()
	
	local newTarget
	
	-- For spells that we can cast on players:
	if canUseOnPlayer and pcTargetMode ~= 'default' then
		-- Do not adjust targetting for player-targettable spells where the target was <t>
		if spell.target.raw ~= ('<t>') then
			if pcTargetMode == 'stal' then
				-- Use <stal> if possible, otherwise fall back to <stpt>.
				if spell.targets.Ally then
					newTarget = '<stal>'
				elseif spell.targets.Party then
					newTarget = '<stpt>'
				end
			elseif pcTargetMode == 'stpt' then
				-- Even ally-possible spells are limited to the current party.
				if spell.targets.Ally or spell.targets.Party then
					newTarget = '<stpt>'
				end
			elseif pcTargetMode == 'stpc' then
				-- If it's anything other than a self-only spell, can change to <stpc>.
				if spell.targets.Player or spell.targets.Party or spell.targets.Ally or spell.targets.NPC then
					newTarget = '<stpc>'
				end
			end
		end
	-- For spells that can be used on enemies:
	elseif spell.targets and spell.targets.Enemy and selectNPCTargets then
		-- Note: this means macros should be written for <t>, and it will change to <stnpc>
		-- if the flag is set.  It won't change <stnpc> back to <t>.
		newTarget = '<stnpc>'
	end
	
	-- If a new target was selected and is different from the original, call the change function.
	if newTarget and newTarget ~= spell.target.raw then
		change_target(newTarget)
	end
end
 
Offline
Posts:
By 2014-05-27 15:43:49
 Undelete | Edit  | Link | 引用 | 返事
 
Post deleted by User.
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-27 18:14:13  
Code
function job_midcast(spell, action, spellMap, eventArgs)
        if spell.action_type == 'Magic' then
                -- Default base equipment layer is fast recast.
                equip(sets.midcast.FastRecast)
 
                if spell.skill == 'Elemental Magic' and state.CastingMode == 'Proc' then
                        add_to_chat(15,'Proc mode, no damage gear for midcast.')
                        eventArgs.handled = true
				end
				if spell.skill == 'Elemental Magic' and player.hpp <= 74 then
                equip({ring1="Sorcerer's Ring"})
                end
        end
end


This should work.
 
Offline
Posts:
By 2014-05-27 18:44:19
 Undelete | Edit  | Link | 引用 | 返事
 
Post deleted by User.
 Odin.Rues
Offline
サーバ: Odin
Game: FFXI
user: Rues
Posts: 67
By Odin.Rues 2014-05-27 19:13:04  
Cerberus.Conagh said: »
Code
function job_midcast(spell, action, spellMap, eventArgs)
        if spell.action_type == 'Magic' then
                -- Default base equipment layer is fast recast.
                equip(sets.midcast.FastRecast)
 
                if spell.skill == 'Elemental Magic' and state.CastingMode == 'Proc' then
                        add_to_chat(15,'Proc mode, no damage gear for midcast.')
                        eventArgs.handled = true
				end
				if spell.skill == 'Elemental Magic' and player.hpp <= 74 then
                equip({ring1="Sorcerer's Ring"})
                end
        end
end


This should work.

I'd recommend putting the scorer's ring in the set variable somewhere so that it gets accounted for by the verify command and other things that use it.
 Sylph.Cyc
Offline
サーバ: Sylph
Game: FFXI
user: Cycloptux
Posts: 24
By Sylph.Cyc 2014-05-28 04:05:36  
Odin.Vasche said: »

happens randomly when zoning on any job.
I keep getting this error even though I re-run the launcher on a daily basis usually. It's been going on for a few... Even on jobs that have no .lua files.
 Asura.Chiaia
VIP
Offline
サーバ: Asura
Game: FFXI
user: Demmis
Posts: 1656
By Asura.Chiaia 2014-05-28 05:05:46  
Ok having some issues with my SCH GS lately. If lets say Light(Dark) Arts is up but not Add: White(Black) hitting it again does put it up. But it's not doing anything for any of the other spells switches. Example: I hit my manifestion macro with light arts up/add: white. Its not swapping it to Accession.


EDIT: Ok after messing around more I noticed it pretty much will work with anything(the trigger) I actually have access to "cast(ja/spells)"(at that point in time).
Code
function pretarget(spell,action)
	if buffactive['Light Arts'] or buffactive['Addendum: White'] then
		if spell.english == "Light Arts" and not buffactive['Addendum: White'] then
			cancel_spell()
			send_command('input /ja Addendum: White <me>')
		elseif spell.english == "Manifestation" then
			cancel_spell()
			send_command('input /ja Accession <me>')
		elseif spell.english == "Alacrity" then
			cancel_spell()
			send_command('input /ja Celerity <me>')
		elseif spell.english == "Parsimony" then
			cancel_spell()
			send_command('input /ja Penury <me>')
		end
	elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
		if spell.english == "Dark Arts" and not buffactive['Addendum: Black'] then
			cancel_spell()
			send_command('input /ja Addendum: Black <me>')
		elseif spell.english == "Accession" then
			cancel_spell()
			send_command('input /ja Manifestation <me>')
		elseif spell.english == "Celerity" then
			cancel_spell()
			send_command('input /ja Alacrity <me>')
		elseif spell.english == "Penury" then
			cancel_spell()
			send_command('input /ja Parsimony <me>')
		end
	end
end
 Odin.Calipso
Offline
サーバ: Odin
Game: FFXI
user: Calipso
Posts: 943
By Odin.Calipso 2014-05-28 06:08:10  
Odin.Calipso said: »
Also, I've been constantly getting this error while zoning into town:

Sorry to be a pest. Still getting this error when I zone sometimes :(

Edit: doh, just realized someone posted the exact same thing like 1 post ago. Sorry!
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-28 13:21:21  
Sylph.Cyc said: »
Odin.Vasche said: »

happens randomly when zoning on any job.
I keep getting this error even though I re-run the launcher on a daily basis usually. It's been going on for a few... Even on jobs that have no .lua files.

This error stopped for me a couple days ago so I don't know what to tell you...
 Cerberus.Conagh
Offline
サーバ: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-05-28 13:34:07  
Odin.Rues said: »
Cerberus.Conagh said: »
Code
function job_midcast(spell, action, spellMap, eventArgs)
        if spell.action_type == 'Magic' then
                -- Default base equipment layer is fast recast.
                equip(sets.midcast.FastRecast)
 
                if spell.skill == 'Elemental Magic' and state.CastingMode == 'Proc' then
                        add_to_chat(15,'Proc mode, no damage gear for midcast.')
                        eventArgs.handled = true
				end
				if spell.skill == 'Elemental Magic' and player.hpp <= 74 then
                equip({ring1="Sorcerer's Ring"})
                end
        end
end


This should work.

I'd recommend putting the scorer's ring in the set variable somewhere so that it gets accounted for by the verify command and other things that use it.

Looks like he copied and pasted the Mote BLM file, rather than give him something which might be beyond his skill (No Offense) I figured the simplest solution for his immediate problem would provide the following:
  • A better base understanding of how to stack gear swaps within a single cast under different variables IE HP %

  • Allow him to potentially add more complex lines without editing Motes spell mapping



On a side note, the Obi rule is a nice touch in Motes rule, I believe it would be very simple to add a rule for that also based on that.

Plus on BLM when else would you need Sorc Ring when not casting anything that counts as Elemental Magic?
Offline
Posts: 8
By Aoushi 2014-05-28 20:39:25  
Hey again, I'm having a hard time trying to figure out how to make my automaton cure and have myself switch into the AF1 pup pants for added cure potency, also having the same issue with switching into the sheltered ring. Any help would be appreciated, thanks in advanced
 Bismarck.Chaosprime
Offline
サーバ: Bismarck
Game: FFXI
Posts: 314
By Bismarck.Chaosprime 2014-05-29 06:47:32  
Hi All

So I'm returning to FFXI after almost a 2 year break. However I've noticed that my beloved spellcast no longer works/is supoorted. I hear the new rage is gearswap.

My main jobs are MNK, THF, SMN and WHM in pretty much that order.

Can someone direct me to gearswap files that already are complete and I can just edit my gear to them?

This would be really helpful and appreciative. I know hoping for a converter to convert the SC file to a GS file is asking a bit much lol so this is the next best alternative :P

Many thanks in advance!
Cp
 Sylph.Xodia
Offline
サーバ: Sylph
Game: FFXI
user: Xodia
By Sylph.Xodia 2014-05-29 07:28:13  
Hi all for some reason gear wont equip from my wardrobe ;/ and also nitro/SV isnt putting on the augment armor before it uses any help would be greatly appreciated. Can ignore the cycles I got this GS from a friend and adjusted it heh ya he dboxes.

New to gearswap not sure what way im to post the lua here so il use spoiler not to take up space.
First Page 2 3 ... 13 14 15 ... 183 184 185