FarmIt

Addons
315,791 Downloads Last Updated: Nov 1, 2016 Game Version: 7.1.0  

Errors found by bug grabber

#68 By  winterfairy80

Created Jun 11, 2019 Updated Dec 4, 2020

Open

Two separate errors

 

20x Couldn't find inherited node: ItemButtonTemplate

 

 

24x FarmIt2\FarmIt2_Core.lua:544: Usage: PlaySound(soundKitID, optional["SFX","Music","Ambience", "Dialog" or "Master"], [forceNoDuplicates, runFinishCallback])
[C]: in function `PlaySound'
FarmIt2\FarmIt2_Core.lua:544: in function `FI_Alert'
FarmIt2\FarmIt2_Core.lua:835: in function `FI_Progress'
FarmIt2\FarmIt2_Button.lua:343: in function `FI_Update_Button'
FarmIt2\FarmIt2_Core.lua:685: in function `FI_Update_All'
FarmIt2\FarmIt2_Core.lua:671: in function `FI_Update'
FarmIt2\FarmIt2.lua:133: in function `FI_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
(*temporary) = "QUESTCOMPLETED"

Jul 10, 2019

If you are comfortable editing lua code, there's just a few spots that need updated to fix these errors.

 

The first error only needs to be changed in one place. In FarmIt2_Button.xml on line 7, change:

<Frame name="FI_TPL_Button" inherits="ItemButtonTemplate, SecureActionButtonTemplate" virtual="true">

 

to:

<Frame name="FI_TPL_Button" inherits="SecureActionButtonTemplate" virtual="true">

 

The second error requires changes on several lines in FarmIt2_Core.lua.

 

Line 724, change:

sound = "igBackPackCoinSelect";

 

to:

sound = 864; -- igBackPackCoinSelect

 

Line 773, change:

sound = "QUESTCOMPLETED";

 

to:

sound = 619; -- QUESTCOMPLETED

 

Line 950, change:

sound = "QUESTCOMPLETED";

 

to:

sound = 619; -- QUESTCOMPLETED

 

Line 952, change:

sound = "QUESTADDED";

 

to:

sound = 618; -- QUESTADDED

 

Line 961, change:

sound = "igQuestLogAbandonQuest";

 

to:

sound = 846; --igQuestLogAbandonQuest

 

If you aren't comfortable making these changes, message me and I can send you a zip with the changes already made. Also, disclaimer: I am not the addon author and I can't guarantee this will solve every issue the addon may or may not have, but it got rid of the errors for me so far.

 

Jul 11, 2019

Hey Niketa, Thank You. You are Awesome!!!

 

Aug 1, 2019

Hey there,

 

Thanks a lot Niketa for thoses edits! They did some good!

 

I just applied them and still had sound related erros in FarmIt2_Button.lua,

To stop them I replaced those lines

 

 

124:

PlaySound("igAbilityIconDrop");

to

-- PlaySound("igAbilityIconDrop");

 

 

141:

PlaySound("igAbilityIconDrop");

to

-- PlaySound("igAbilityIconDrop");

 

 

249

PlaySound("gsTitleOptionOK");

to

-- PlaySound("gsTitleOptionOK");

 

 

532

PlaySound("TalentScreenClose");

to

-- PlaySound("TalentScreenClose");

 

 

There is a better way to solve this, I just don't know how to.

Meanwhile this is a workaround.

 

Cheers

Aug 14, 2019

I did the above, thanks @Niketa, but now I'm getting the following:

 

10x FarmIt2\FarmIt2_Core.lua:685: attempt to call global 'FI_Update_Button' (a nil value)
FarmIt2\FarmIt2_Core.lua:685: in function `FI_Update_All'
FarmIt2\FarmIt2_Core.lua:671: in function `FI_Update'
FarmIt2\FarmIt2.lua:133: in function `FI_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
1 = <table> {
}
2 = <table> {
}
3 = <table> {
}
4 = <table> {
}
5 = <table> {
}
6 = <table> {
}
7 = <table> {
}
8 = <table> {
}
9 = <table> {
}
10 = <table> {
}
11 = <table> {
}
12 = <table> {
}
}
(for control) = 1
i = 1
button = <table> {
objective = 0
success = false
count = 0
id = 1
group = 1
lastcount = 0
item = 4359
bank = false
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = <table> {
objective = 0
success = false
count = 0
id = 1
group = 1
lastcount = 0
item = 4359
bank = false
}
(*temporary) = "attempt to call global 'FI_Update_Button' (a nil value)"

Aug 15, 2019

Thank you so much Niketa and for adding the files! I have no clue when it comes to coding. I am not getting any errors so far.

Nov 3, 2019

Elunyos, instead of commenting them out completely, you can replace the string with the id. I used this link to look up the ids. Looks like they changed the names, so I kinda guessed at a couple. I'll attach a new edit.

 

Kelryth, what were you doing when you got the error?

Niketa  added an attachment  FarmIt2.zip  
Nov 3, 2019

Update

Changed the sound ids in the other file.

Dec 4, 2020

Message: Interface\AddOns\FarmIt2\FarmIt2_Currency.lua:85: attempt to call global 'GetBackpackCurrencyInfo' (a nil value)
Time: Fri Dec 4 07:08:05 2020
Count: 301
Stack: Interface\AddOns\FarmIt2\FarmIt2_Currency.lua:85: attempt to call global 'GetBackpackCurrencyInfo' (a nil value)
[string "=[C]"]: in function `GetBackpackCurrencyInfo'
[string "@Interface\AddOns\FarmIt2\FarmIt2_Currency.lua"]:85: in function `FI_Update_Currency'
[string "@Interface\AddOns\FarmIt2\FarmIt2_Core.lua"]:675: in function `FI_Update'
[string "@Interface\AddOns\FarmIt2\FarmIt2.lua"]:133: in function `FI_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:

 

I'm having this problem ...please help!!!


To post a comment, please login or register a new account.