Lua Error

Dodatek odpowiedzialny za spolszczenie wypowiedzi NPC (dymki)
Awatar użytkownika
Administrator
Gary
Posty: 200
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Gary#2402

Re: Lua Error

Post autor: Gary »

natis pisze: 18 lip 2018, 12:40 Jak włączyć Lua Error?
/console scriptErrors 1 aby wyświetlić błędy LUA
/console scriptErrors 0 aby ukryć błędy LUA
Awatar użytkownika
Knight-Champion | Centurion
natis
Posty: 199
Lokalizacja: Choszczno
Frakcja: Horda
Rasa: Ork
Klasa: Łowca
BattleTag: Natis#2655

Re: Lua Error

Post autor: natis »

Dziękuję :)
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Lua Error

Post autor: Platine »

Borygo pisze: 18 lip 2018, 10:00 W jednym z dungeonów znalazłem taki błąd
Dodatkowo powiem, że w linijce Count wartość liczbowa rośnie bardzo szybko i niemożna zamknąć okienka Lua Error.
Spróbuję coś zaradzić i zabezpieczyć pracę dodatku w takim miejscu.
Wygląda na to, że nie wykonuje się komenda: child = select(i, WorldFrame:GetChildren());

Komunikat błędu lua wskazuje, że ramka child ma status "zabroniony"
i będę musiał to w dodatku stale sprawdzać i pomijać takie ramki.
Awatar użytkownika
Administrator
Gary
Posty: 200
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Gary#2402

Re: Lua Error

Post autor: Gary »

Moje błędy z dzisiaj:

Kod: Zaznacz cały

Message: Interface\AddOns\WoWpoPolsku_Books\Book_PL.lua:244: unfinished string near '"Ferren Marcus#1#Ferren Marcus'
Time: Wed Jul 18 20:58:20 2018
Count: 1
Stack: Interface\AddOns\WoWpoPolsku_Books\Book_PL.lua:244: unfinished string near '"Ferren Marcus#1#Ferren Marcus'

Locals: 

Kod: Zaznacz cały

Message: ...rface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:177: attempt to concatenate global 'BT_base' (a nil value)
Time: Wed Jul 18 20:58:20 2018
Count: 1
Stack: ...rface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:177: attempt to concatenate global 'BT_base' (a nil value)
...rface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:177: in function `BookTranslator_BlizzardOptions'
...rface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:335: in main chunk

Locals: BookTranslatorOptions = BookTranslatorOptions {
 0 = <userdata>
 cancel = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:623
 name = "WoWpoPolsku-Books"
 refresh = <function> defined @Interface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:167
 okay = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:622
 default = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:624
}
BookTranslatorOptionsHeader = <unnamed> {
 0 = <userdata>
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = <unnamed> {
 0 = <userdata>
}
(*temporary) = "WoWpoPolsku-Books, ver. "
(*temporary) = "1.02"
(*temporary) = " ("
(*temporary) = nil
(*temporary) = ") by Platine © 2017-2018"
(*temporary) = <table> {
 1 = <unnamed> {
 }
 2 = <unnamed> {
 }
 3 = <unnamed> {
 }
 4 = <unnamed> {
 }
 5 = BookTranslatorOptions {
 }
}
(*temporary) = nil
(*temporary) = BookTranslatorOptions {
 0 = <userdata>
 cancel = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:623
 name = "WoWpoPolsku-Books"
 refresh = <function> defined @Interface\AddOns\WoWpoPolsku_Books\WoWpoPolsku_Books.lua:167
 okay = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:622
 default = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:624
}
(*temporary) = <function> defined @Interface\FrameXML\InterfaceOptionsFrame.lua:83
(*temporary) = 0
(*temporary) = <table> {
 1 = InterfaceOptionsFrameCategoriesButton1 {
 }
 2 = InterfaceOptionsFrameCategoriesButton2 {
 }
 3 = InterfaceOptionsFrameCategoriesButton3 {
 }
 4 = InterfaceOptionsFrameCategoriesButton4 {
 }
 5 = InterfaceOptionsFrameCategoriesButton5 {
 }
 6 = InterfaceOptionsFrameCategoriesButton6 {
 }
 7 = InterfaceOptionsFrameCategoriesButton7 {
 }
 8 = InterfaceOptionsFrameCategoriesButton8 {
 }
 9 = InterfaceOptionsFrameCategoriesButton9 {
 }
 10 = InterfaceOptionsFrameCategoriesButton10 {
 }
 11 = InterfaceOptionsFrameCategoriesButton11 {
 }
 12 = InterfaceOptionsFrameCategoriesButton12 {
 }
 13 = InterfaceOptionsFrameCategoriesButton13 {
 }
 14 = InterfaceOptionsFrameCategoriesButton14 {
 }
 15 = InterfaceOptionsFrameCategoriesButton15 {
 }
 16 = InterfaceOptionsFrameCategoriesButton16 {
 }
 17 = InterfaceOptionsFrameCategoriesButton17 {
 }
 18 = InterfaceOptionsFrameCategoriesButton18 {
 }
 19 = InterfaceOptionsFrameCategoriesButton19 {
 }
 20 = InterfaceOptionsFrameCategoriesButton20 {
 }
 21 = InterfaceOptionsFrameCategoriesButton21 {
 }
 22 = InterfaceOptionsFrameCategoriesButton22 {
 }
 23 = InterfaceOptionsFrameCategoriesButton23 {
 }
 24 = InterfaceOptionsFrameCategoriesButton24 {
 }
 25 = InterfaceOptionsFrameCategoriesButton25 {
 }
 26 = InterfaceOptionsFrameCategoriesButton26 {
 }
 27 = InterfaceOptionsFrameCategoriesButton27 {
 }
 28 = InterfaceOptionsFrameCategoriesButton28 {
 }
 29 = InterfaceOptionsFrameCategoriesButton29 {
 }
 30 = InterfaceOptionsFrameCategoriesButton30 {
 }
 31 = InterfaceOptionsFrameCategoriesButton31 {
 }
}
(*temporary) = nil
(*temporary) = 31
(*temporary) = 10
(*temporary) = nil
(*temporary) = 31
(*temporary) = "attempt to concatenate global 'BT_base' (a nil value)"
BT_version = "1.02"
BT_Font = "Interface\AddOns\WoWpoPolsku_Books\Fonts\frizquadratatt_pl.ttf"

Kod: Zaznacz cały

Message: Interface\AddOns\WoWpoPolsku_Books\Book_PL.lua:244: unfinished string near '"Ferren Marcus#1#Ferren Marcus'
Time: Wed Jul 18 20:58:22 2018
Count: 3

Kod: Zaznacz cały

Message: ...e\AddOns\WoWpoPolsku_Bubbles\WoWpoPolsku_Bubbles.lua:78: Attempt to access forbidden object from code tainted by an AddOn
Time: Wed Jul 18 22:03:32 2018
Count: 47172
Stack: ...e\AddOns\WoWpoPolsku_Bubbles\WoWpoPolsku_Bubbles.lua:78: Attempt to access forbidden object from code tainted by an AddOn
[C]: in function `GetNumRegions'
...e\AddOns\WoWpoPolsku_Bubbles\WoWpoPolsku_Bubbles.lua:78: in function <...e\AddOns\WoWpoPolsku_Bubbles\WoWpoPolsku_Bubbles.lua:75>

Locals: (*temporary) = <unnamed> {
 0 = <userdata>
}
Z czego w tym ostatnim Count leci w nieskończoność, tak jak by się coś zapętliło.

Oczywiście patch najnowszy.
Awatar użytkownika
WoWpoPolsku Team
Borygo
Posty: 960
Lokalizacja: Świnoujście
Frakcja: Horda
Rasa: Tauren
Klasa: Paladyn

Re: Lua Error

Post autor: Borygo »

Gary pisze: 18 lip 2018, 22:04
Z czego w tym ostatnim Count leci w nieskończoność, tak jak by się coś zapętliło.

Oczywiście patch najnowszy.
To co opisujesz na samym końcu już naprawione, testowałem poprawki i już nie wyświetla tego błędu, niedługo Platine powinien zaktualizować addon.
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Lua Error

Post autor: Platine »

Dodatku Books jeszcze nie testowałem na najnowszym patchu.

A Bubbles, tak ja pisze Borygo, już naprawiałem wczoraj.
Do pobrania z naszej strony z dodatkami.
Awatar użytkownika
Knight-Champion | Centurion
natis
Posty: 199
Lokalizacja: Choszczno
Frakcja: Horda
Rasa: Ork
Klasa: Łowca
BattleTag: Natis#2655

Re: Lua Error

Post autor: natis »

Po aktualizacji addona przetłumaczone dymki nie wyświetlają się nad postaciami, pozostają po angielsku, polski tekst jest jedynie widoczny i podmieniony w czacie
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Lua Error

Post autor: Platine »

Coś czarujesz kolego.
Właśnie wgrałem najnowszą paczkę ZIP (358208 bajtów) i odpaliłem grę. Wszystko działa, jak na zdjęciu.
Załączniki
wprost z gry
wprost z gry
WoWScrnShot_081618_165831.jpg (367.96 KiB) Przejrzano 14705 razy
Awatar użytkownika
Knight-Champion | Centurion
natis
Posty: 199
Lokalizacja: Choszczno
Frakcja: Horda
Rasa: Ork
Klasa: Łowca
BattleTag: Natis#2655

Re: Lua Error

Post autor: natis »

Masz rację @Platine niektóre działają prawidłowo, chyba jedynie w instacjach(dungeonach) był ten błąd, zamieszczę screena jak uda mi się dostać na instancję
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Lua Error

Post autor: Platine »

Problem z instancjami był już wcześniej zgłaszany.
Dymki nie będą tam wyświetlane po polsku, bo jest to obszar nieobsługiwany standardowymi funkcjami lokacji.
ODPOWIEDZ