Recent Topics

Ads

[SOLVED] Fix: missing tactics after login

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
ropuch
Posts: 91

Re: [SOLVED] Fix: missing tactics after login

Post#21 » Sat Dec 05, 2015 11:19 am

Sorry for overreacting and gz on your F5 CA ;)
A Pounce Too Far: http://imgur.com/KeSt8WL

Ads
User avatar
Nishka
Suspended
Posts: 1057

Re: [SOLVED] Fix: missing tactics after login

Post#22 » Sat Dec 05, 2015 11:24 am

So... do we need to use both addons to make it work? Or choose any?
Image
"Well, once there was only chaos. You ask me, order's winning". - Grandmaster Siegfried Trappenfeld

User avatar
ropuch
Posts: 91

Re: [SOLVED] Fix: missing tactics after login

Post#23 » Sat Dec 05, 2015 11:50 am

The one taccr provided is enough, just be aware it will set your tactics to default after zoning/reloadui. No problem if you're using one tactis set.
A Pounce Too Far: http://imgur.com/KeSt8WL

User avatar
ropuch
Posts: 91

Re: [SOLVED] Fix: missing tactics after login

Post#24 » Mon Dec 07, 2015 9:08 am

Small change to load default tactic set only after login.
Change tactic.lua to:

Code: Select all

tactic = {}

-- Global
setTactic = 3
justlogged = true

function tactic.update()
	if (justlogged)
	then
		TextLogAddEntry("Chat", 0, L"Settings tactic set to: " .. setTactic)
		TacticsEditor.OnSetMenuSelectionChanged(setTactic)
		justlogged = false	
	end
end

function tactic.init()
	RegisterEventHandler(SystemData.Events.RELOAD_INTERFACE, "tactic.update")
	RegisterEventHandler(SystemData.Events.LOADING_END, "tactic.update")
end
A Pounce Too Far: http://imgur.com/KeSt8WL

User avatar
Nishka
Suspended
Posts: 1057

Re: [SOLVED] Fix: missing tactics after login

Post#25 » Mon Dec 07, 2015 9:24 am

Thanks :) Very needed change for those who have more than 1 set of tactics, like for pvp and pve.
Image
"Well, once there was only chaos. You ask me, order's winning". - Grandmaster Siegfried Trappenfeld

Who is online

Users browsing this forum: leeroyer and 72 guests