Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title> LUA Vehicle error #106

Open
1 task done
BaronSolace opened this issue Nov 30, 2024 · 0 comments
Open
1 task done

[BUG] <title> LUA Vehicle error #106

BaronSolace opened this issue Nov 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@BaronSolace
Copy link

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
@BaronSolace BaronSolace added the bug Something isn't working label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants