AzeriteUI

AzeriteUI

591k Downloads

[BUG] <title> LUA Vehicle error

BaronSolace opened this issue ยท 0 comments

commented

Game Flavor

Dragonflight

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Any time you use a Vehicle that has its own skills/bar, the LUA error pops up, happens in every one I've come across so far. Example in the image provided would be the Thanksgiving feast table, but it also happens in other Vehicles one quick test would be at the intro tutorial where you have to hop into the gyro and spy on the other faction.

To reproduce

try to use a Vehicle that has its own skills/bar

Expected behavior

No response

Screenshots

ss+(2024-11-29+at+07 09 20)

Additional context

Message: ...bs/LibActionButton-1.0-GE/LibActionButton-1.0-GE.lua:2144: attempt to perform arithmetic on local 'start' (a nil value)
Time: Fri Nov 29 19:14:51 2024
Count: 1
Stack: ...bs/LibActionButton-1.0-GE/LibActionButton-1.0-GE.lua:2144: attempt to perform arithmetic on local 'start' (a nil value)
[string "@Interface/AddOns/Blizzard_FrameXML/SecureHandlers.lua"]:115: in function <...nterface/AddOns/Blizzard_FrameXML/SecureHandlers.lua:110>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua"]:114: in function <...rface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua:95>
[string "@Interface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua"]:127: in function <...rface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua:119>

Locals: self = AzeriteActionBar1 {
defaults =

{
}
anchor = Button {
}
enabled = true
buttons =
{
}
id = 1
buttonWidth = 64
config =
{
}
name = "AzeriteActionBar1"
hasVehicleBar = true
buttonHeight = 64
buttonConfig =
{
}
}
name = "state-page"
value = "possess"
stateid = "page"
body = "
local hasVehicleBar, hasOverrideBar, hasTempShapeshiftBar, hasPossessBar, isDragonRiding;

	if (newstate == "possess" or newstate == "dragon" or newstate == "11") then

		if HasVehicleActionBar() then
			newstate = GetVehicleBarIndex();
			hasVehicleBar = true;

		elseif HasOverrideActionBar() then
			newstate = GetOverrideBarIndex();
			hasOverrideBar = true;

		elseif HasTempShapeshiftActionBar() then
			newstate = GetTempShapeshiftBarIndex();
			hasTempShapeshiftBar = true;

		elseif HasBonusActionBar() then
			newstate = GetBonusBarIndex();
			if (GetBonusBarOffset() == 5) then
				hasPossessBar = true;
				if (IsMounted()) then
					isDragonRiding = true;
				end
			end
		else
			newstate = nil;
		end
		if (not newstate) then
			newstate = 12;
		end
	end

	self:SetAttribute("isdragonriding", isDragonRiding);
	self:SetAttribute("hasvehiclebar", hasVehicleBar);
	self:SetAttribute("hasoverridebar", hasOverrideBar);
	self:SetAttribute("hastempshapeshiftbar", hasTempSh

**_page 2_**

	Message: ...bs/LibActionButton-1.0-GE/LibActionButton-1.0-GE.lua:2144: attempt to perform arithmetic on local 'start' (a nil value)

Time: Fri Nov 29 19:14:51 2024
Count: 1
Stack: ...bs/LibActionButton-1.0-GE/LibActionButton-1.0-GE.lua:2144: attempt to perform arithmetic on local 'start' (a nil value)
[string "@Interface/AddOns/Blizzard_FrameXML/SecureHandlers.lua"]:115: in function <...nterface/AddOns/Blizzard_FrameXML/SecureHandlers.lua:110>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua"]:114: in function <...rface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua:95>
[string "@Interface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua"]:127: in function <...rface/AddOns/Blizzard_FrameXML/SecureStateDriver.lua:119>

Locals: self = AzeriteActionBar1 {
defaults =

{
}
anchor = Button {
}
enabled = true
buttons =
{
}
id = 1
buttonWidth = 64
config =
{
}
name = "AzeriteActionBar1"
hasVehicleBar = true
buttonHeight = 64
buttonConfig =
{
}
}
name = "state-page"
value = "possess"
stateid = "page"
body = "
local hasVehicleBar, hasOverrideBar, hasTempShapeshiftBar, hasPossessBar, isDragonRiding;

	if (newstate == "possess" or newstate == "dragon" or newstate == "11") then

		if HasVehicleActionBar() then
			newstate = GetVehicleBarIndex();
			hasVehicleBar = true;

		elseif HasOverrideActionBar() then
			newstate = GetOverrideBarIndex();
			hasOverrideBar = true;

		elseif HasTempShapeshiftActionBar() then
			newstate = GetTempShapeshiftBarIndex();
			hasTempShapeshiftBar = true;

		elseif HasBonusActionBar() then
			newstate = GetBonusBarIndex();
			if (GetBonusBarOffset() == 5) then
				hasPossessBar = true;
				if (IsMounted()) then
					isDragonRiding = true;
				end
			end
		else
			newstate = nil;
		end
		if (not newstate) then
			newstate = 12;
		end
	end

	self:SetAttribute("isdragonriding", isDragonRiding);
	self:SetAttribute("hasvehiclebar", hasVehicleBar);
	self:SetAttribute("hasoverridebar", hasOverrideBar);
	self:SetAttribute("hastempshapeshiftbar", hasTempSh