Giter VIP home page Giter VIP logo

customtutorials-2.1's Introduction

Website Patreon Community Paypal

Welcome!

I'm the author of addons like Bagnon, Scrap and PetTracker. If you're here because of something else and don't know what that means, don't worry about it ๐Ÿ˜‰, just dodge the MMO gamers, I won't tell ๐Ÿ™ˆ.

About Me

๐ŸŽฎ I've been a gamer and software developer for two decates now. My professsional journey started quite unexpectedly when I was just 12 years old, and created some of the most popular third-party software for World of Warcraft.

๐ŸŽ“ On the academic front, I hold a PhD in computer graphics and machine learning. My research has primarily focused on developing learning-based solutions to computer graphics problems, such as optimizing rendering performance and enhancing skin simulation, or improving hand-drawn animation.

customtutorials-2.1's People

Contributors

jaliborc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gurligebis

customtutorials-2.1's Issues

Lua error when registering tutorials

After the latest changes, I get a Lua error when registering a tutorial, caused by these four lines starting at line 138 in file CustomTutorials-2.1.lua.

frame.TopRightCorner:Hide()
frame.TopLeftCorner:Hide()
frame.PortraitFrame:Hide()
frame.TopBorder:Hide()

Those fields are nil and I couldn't find any reference to them anywhere else in the code.

Fix for Backdrop error

change line 149 from:

local shine = CreateFrame('Frame')

to

local shine = CreateFrame('Frame', nil, UIParent, BackdropTemplateMixin and "BackdropTemplate")

Minor graphical issue with borders

I noticed a minor graphical issue with the border when implementing CustomTutorials (on Retail), with the top left corner.

image

(Thanks for sharing this library, it will help me a lot having tutorials in my add-ons โค๏ธ )

Lua Error on every Login/Reload

Using pet tracker addon, every time that i log in or make a reload this lua error pops up.

I've tried only with pet tracker active as addons, it still shows up:

Message: ...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:55: attempt to index field 'TitleText' (a nil value)
Time: Mon Nov  7 16:48:47 2022
Count: 1
Stack: ...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:55: attempt to index field 'TitleText' (a nil value)
[string "@Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua"]:55: in function <...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36>
[string "@Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua"]:199: in function `TriggerTutorial'
[string "@Interface/AddOns/PetTracker/addons/config/tutorials.lua"]:36: in function `Start'
[string "@Interface/AddOns/PetTracker/addons/config/tutorials.lua"]:28: in function `?'
[string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:18>
[string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:53>
[string "=[C]"]: ?
[string "@Interface/AddOns/PetTracker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...ker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/PetTracker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/PetTracker/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/PetTracker/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function `LoadAddOn'
[string "@Interface/AddOns/PetTracker/addons/main/main.lua"]:46: in function `?'
[string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:18>
[string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:53>
[string "=[C]"]: ?
[string "@Interface/AddOns/PetTracker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...ker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/PetTracker/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/PetTracker/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/PetTracker/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function `LoadAddOn'
[string "@Interface/FrameXML/UIParent.lua"]:530: in function `UIParentLoadAddOn'
[string "@Interface/FrameXML/UIParent.lua"]:665: in function `TimeManager_LoadUI'
[string "@Interface/FrameXML/UIParent.lua"]:1466: in function <Interface/FrameXML/UIParent.lua:1350>

Locals: <none>

If I try to advance in the tutorial a second error shows up:

Message: ...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:115: attempt to perform arithmetic on field 'i' (a nil value)
Time: Mon Nov  7 16:50:28 2022
Count: 1
Stack: ...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:115: attempt to perform arithmetic on field 'i' (a nil value)
[string "@Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua"]:115: in function <...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:114>

Locals: (*temporary) = <function> defined @Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36
(*temporary) = CustomTutorials1 {
 0 = <userdata>
 images = <table> {
 }
 SetPortraitShown = <function> defined @Interface/SharedXML/PortraitFrame.lua:91
 GetTitleText = <function> defined @Interface/SharedXML/PortraitFrame.lua:28
 Inset = CustomTutorials1Inset {
 }
 SetPortraitTextureRaw = <function> defined @Interface/SharedXML/PortraitFrame.lua:79
 next = Button {
 }
 text = FontString {
 }
 TitleContainer = Frame {
 }
 SetTitleMaxLinesAndHeight = <function> defined @Interface/SharedXML/PortraitFrame.lua:49
 SetTitleColor = <function> defined @Interface/SharedXML/PortraitFrame.lua:32
 prev = Button {
 }
 shine = Frame {
 }
 DefaultPortraitTextureSizeAndOffset = <function> defined @Interface/SharedXML/PortraitFrame.lua:101
 SetTitle = <function> defined @Interface/SharedXML/PortraitFrame.lua:36
 SetBorder = <function> defined @Interface/SharedXML/PortraitFrame.lua:62
 layoutType = "PortraitFrameTemplate"
 flash = AnimationGroup {
 }
 SetPortraitToBag = <function> defined @Interface/SharedXML/PortraitFrame.lua:75
 PortraitContainer = Frame {
 }
 SetPortraitToUnit = <function> defined @Interface/SharedXML/PortraitFrame.lua:71
 Bg = CustomTutorials1Bg {
 }
 GetPortrait = <function> defined @Interface/SharedXML/PortraitFrame.lua:58
 SetTitleFormatted = <function> defined @Interface/SharedXML/PortraitFrame.lua:40
 NineSlice = Frame {
 }
 TopTileStreaks = Texture {
 }
 SetPortraitToAsset = <function> defined @Interface/SharedXML/PortraitFrame.lua:67
 SetPortraitTextureSizeAndOffset = <function> defined @Interface/SharedXML/PortraitFrame.lua:95
 CloseButton = CustomTutorials1CloseButton {
 }
 unlocked = 4
 data = <table> {
 }
 SetPortraitAtlasRaw = <function> defined @Interface/SharedXML/PortraitFrame.lua:83
 SetPortraitTexCoord = <function> defined @Interface/SharedXML/PortraitFrame.lua:87
}
(*temporary) = nil
(*temporary) = 1
(*temporary) = "attempt to perform arithmetic on field 'i' (a nil value)"
UpdateFrame = <function> defined @Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36
frame = CustomTutorials1 {
 0 = <userdata>
 images = <table> {
 }
 SetPortraitShown = <function> defined @Interface/SharedXML/PortraitFrame.lua:91
 GetTitleText = <function> defined @Interface/SharedXML/PortraitFrame.lua:28
 Inset = CustomTutorials1Inset {
 }
 SetPortraitTextureRaw = <function> defined @Interface/SharedXML/PortraitFrame.lua:79
 next = Button {
 }
 text = FontString {
 }
 TitleContainer = Frame {
 }
 SetTitleMaxLinesAndHeight = <function> defined @Interface/SharedXML/PortraitFrame.lua:49
 SetTitleColor = <function> defined @Interface/SharedXML/PortraitFrame.lua:32
 prev = Button {
 }
 shine = Frame {
 }
 DefaultPortraitTextureSizeAndOffset = <function> defined @Interface/SharedXML/PortraitFrame.lua:101
 SetTitle = <function> defined @Interface/SharedXML/PortraitFrame.lua:36
 SetBorder = <function> defined @Interface/SharedXML/PortraitFrame.lua:62
 layoutType = "PortraitFrameTemplate"
 flash = AnimationGroup {
 }
 SetPortraitToBag = <function> defined @Interface/SharedXML/PortraitFrame.lua:75
 PortraitContainer = Frame {
 }
 SetPortraitToUnit = <function> defined @Interface/SharedXML/PortraitFrame.lua:71
 Bg = CustomTutorials1Bg {
 }
 GetPortrait = <function> defined @Interface/SharedXML/PortraitFrame.lua:58
 SetTitleFormatted = <function> defined @Interface/SharedXML/PortraitFrame.lua:40
 NineSlice = Frame {
 }
 TopTileStreaks = Textur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.