GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

7M Downloads

Problems create new macro

LNPV opened this issue · 4 comments

commented

Hi,

I cant create a new macro.
when i create macro, addon alwasy creating with Livetest name. I change this, bud addon not change, and I can't change icon to.
Can u check this?

commented

Ty,

Now I have other problema. I play in portuguese.
Lang PTBR
Skill: Martelo Abençoado (2º talent lvl 12) Not skill, I need write manually.
I dont know if this make a problem. Bud using my macro, my paladin are stay, dont making nothing, when I use u'r macro, it's ok. (u'r database)
I copy u'r macro, exatly, using gs-e, my paladin was stay again.
In archiv u'r macro r in english, when I used to make my macro and, my skills are translated, I have a problem.

I have translate pach.

My macro 4 adds HFC Myt. (I'll use ring, bud manually.)

Sequences['Palla Adds'] = {
author="LNPV",
specID=66,
helpTxt = 'Talents: 2233232',
StepFunction = GSStaticPriority,
icon=1450995,
lang="ptBR",
PreMacro=[[
/targetenemy [noharm][dead] ]],
"/cast Escudo do Vingador",
"/cast Julgamento",
"/cast Consagração",
"/cast Martelo Abençoado",
PostMacro=[[
/cast [Bastião da Luz]
/cast [Ira Vingativa]
/cast [Serafim]
/startattack
]],
}

U'r sequence some translated

Sequences['Palla Test'] = {
author="LNPV",
specID=66,
helpTxt = 'Talents: 2233232',
icon=236264,
lang="ptBR",
PreMacro=[[
/targetenemy [noharm][dead] ]],
"/cast Escudo do Vingador",
"/cast Julgamento",
"/cast Martelo do Íntegro",
"/cast Ira Sagrada",
"/cast Escudo do Vingador",
"/cast Martelo da Ira",
"/cast Consagração",
PostMacro=[[
/cast Escudo do Íntegro
]],
}

commented

Debug archiv:

local GNOME, _ = ...
-- Default error handler seems to be _ERRORMESSAGE defined in BasicControls.xml
local Errors = {
["^attempt to index global 'Sequences'"] = 'Missing mandatory first line in Sequences file: "local _, Sequences = ..."',
--["[��]"] = 'Invalid quotes detected, replace all quote symbols in the file with normal double or single-quotes.',
}

local function isempty(s)
return s == nil or s == ''
end

StaticPopupDialogs["GS-DebugOutput"] = {
text = "Dump of GS Debug messages",
button1 = "Update",
button2 = "Close",
OnAccept = function(self, data)
self.editBox:SetText(GSDebugOutput)
end,
OnShow = function (self, data)
self.editBox:SetText(GSDebugOutput)
end,
timeout = 0,
whileDead = true,
hideOnEscape = true,
preferredIndex = 3, -- avoid some UI taint, see http://www.wowace.com/announcements/how-to-avoid-some-ui-taint/
hasEditBox = true,
}

seterrorhandler(function(message)
local line, err = message:match('GS-%.lua:(%d+): (.+)')
if err then
for pattern, response in pairs(Errors) do
if err:match(pattern) then
err = response
break
end
end
C_Timer.After(2, function()
print(format('|cffff0000[GNOME] syntax error on line %d of Sequences.lua:|r %s', line, err, debuglocals(4)))
end)
wipe(Sequences)
--Sequences[GNOME .. 'DEFAULT'] = ''
end
end)

local function determinationOutputDestination(message)
if GSMasterOptions.sendDebugOutputGSDebugOutput then
GSDebugOutput = GSDebugOutput .. message .. "\n"
end
if GSMasterOptions.sendDebugOutputToChat then
print(message)
end
end

function GSPrintDebugMessage(message, module)
if GSMasterOptions.debugSequence == true and module == GSStaticSequenceDebug then
determinationOutputDestination('|cffff0000' .. GNOME .. ':|r |cFF00FF00 |r ' .. message )
elseif GSMasterOptions.debug and module ~= GSStaticSequenceDebug then
determinationOutputDestination('|cffff0000' .. (isempty(module) and GNOME or module) .. ':|r |cFF00FF00 |r ' .. message )
end

end

GSCore = true

commented

Ok two problems

Take the space out of ['Palla Adds']

I haven't finished the translator stuff. The editor doesn't know about it yet. Once that parts done you will be able to translate a sequence back to enUS and I will be able to see stuff. Having said that could you have a look at #10 and use the GSE-Language extractor and email me the file I can troubleshoot better.

TimothyLuke

On 29 Jul 2016, at 9:43 AM, LNPV [email protected] wrote:

Ty,

Now I have other problema. I play in portuguese.
Lang PTBR
Skill: Martelo Abençoado (2º talent lvl 12) Not skill, I need write manually.
I dont know if this make a problem. Bud using my macro, my paladin are stay, dont making nothing, when I use u'r macro, it's ok. (u'r database)
I copy u'r macro, exatly, using gs-e, my paladin was stay again.
In archiv u'r macro r in english, when I used to make my macro and, my skills are translated, I have a problem.

I have translate pach.

My macro 4 adds HFC Myt. (I'll use ring, bud manually.)

Sequences['Palla Adds'] = {
author="LNPV",
specID=66,
helpTxt = 'Talents: 2233232',
StepFunction = GSStaticPriority,
icon=1450995,
lang="ptBR",
PreMacro=[[
/targetenemy [noharm][dead] ]],
"/cast Escudo do Vingador",
"/cast Julgamento",
"/cast Consagração",
"/cast Martelo Abençoado",
PostMacro=[[
/cast [Bastião da Luz]
/cast [Ira Vingativa]
/cast [Serafim]
/startattack
]],
}

U'r sequence some translated

Sequences['Palla Test'] = {
author="LNPV",
specID=66,
helpTxt = 'Talents: 2233232',
icon=236264,
lang="ptBR",
PreMacro=[[
/targetenemy [noharm][dead] ]],
"/cast Escudo do Vingador",
"/cast Julgamento",
"/cast Martelo do Íntegro",
"/cast Ira Sagrada",
"/cast Escudo do Vingador",
"/cast Martelo da Ira",
"/cast Consagração",
PostMacro=[[
/cast Escudo do Íntegro
]],
}


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

commented

Hi,

This is not a problem with the mod. It's working how it is meant to.

When you load the mod this is from LUA files located in the C:\path\to\world of warcraft\interface\addons. There is no ingame way to edit these files. They are protected by Blizzard. Now while a mod can write to C:\path\to\world of warcraft\WTF there is the risk of the game crashing and this not being updated properly.

What the editor does is allows you to create a new sequence of edit an existing one but if you want to save that you need to copy the sequence of of the viewer and and manually edit the Class.lua files in the C:\path\to\world of warcraft\interface\gs-myMacros to save the sequence. This way you know what is happening and if GS-E is updated or the game crashes you still have your stuff.

As part of that you need to give the sequence a new name so you have to rename LiveTest to something else.

This video explains and shows how this works https://youtu.be/zXMNuHDx3H0

TimothyLuke

On 29 Jul 2016, at 5:58 AM, LNPV [email protected] wrote:

Hi,

I cant create a new macro.
when i create macro, addon alwasy creating with Livetest name. I change this, bud addon not change, and I can't change icon to.
Can u check this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.