dandruff / xCT

A light weight scrolling combat text implementation.
53 stars 22 forks source link

4.5.1beta4-9.0.1 Issues #167

Closed erendur81 closed 4 years ago

erendur81 commented 4 years ago

Hey,

thanks for the beta4 update but with this version I get following errors:

1x xCT+\modules\frames.lua:169: Usage: xCT_PlusclassFrame:SetWidth(width)
[string "=[C]"]: in function `SetWidth'
[string "@xCT+\modules\frames.lua"]:169: in function `UpdateFrames'
[string "@xCT+\core.lua"]:155: in function <xCT+\core.lua:153>

Locals:
(*temporary) = xCT_PlusclassFrame {
 0 = <userdata>
 RefreshIfNecessary = <function> defined =[C]:-1
 OnPostShow = <function> defined =[C]:-1
 CalculateLineAlphaValueFromTimestamp = <function> defined =[C]:-1
 GetInsertMode = <function> defined =[C]:-1
 SetTimeVisible = <function> defined =[C]:-1
 GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:443
 settings = <table> {
 }
 OnFontObjectUpdated = <function> defined =[C]:-1
 frameName = "class"
 ScrollByAmount = <function> defined =[C]:-1
 GetFading = <function> defined =[C]:-1
 IsTextCopyable = <function> defined =[C]:-1
 Clear = <function> defined =[C]:-1
 shouldFadeAfterInactivity = true
 SetIndentedWordWrap = <function> defined =[C]:-1
 GetTimeVisible = <function> defined =[C]:-1
 MarkLayoutDirty = <function> defined =[C]:-1
 SetFont = <function> defined =[C]:-1
 sizing = xCT_PlusclassSizingFrame {
 }
 GetMaxLines = <function> defined =[C]:-1
 isLayoutDirty = true
 BackFillMessage = <function> defined =[C]:-1
 hasOwnFontObject = true
 UnpackageEntry = <function> defined =[C]:-1
 FontStringContainer = <unnamed> {
 }
 visibleLines = <table> {
 }
 SetShadowOffset = <function> defined =[C]:-1
 textIsCopyable = false
 SetupPieceVisuals = <function> defined @SharedXML\Backdrop.lua:299
 GetFont = <function> defined =[C]:-1
 scrollOffset = 0
 SetMaxLines = <function> defined =[C]:-1
 CalculateSelectingCharacterIndicesForVisibleLine = <function> defined =[C]:-1
 PackageEntry = <function> defined =[C]:-1
 fadeDurationSecs = 3
 RefreshDisplay = <function> defined =[C]:-1
 SetFontObject = <function> defined =[C]:-1
 timeVisibleSecs = 10
 MakeFontObjectCustom = <function> defined =[C]:-1
 SetJustifyV = <function> defined =[C]:-1
 SetOnScrollChangedCallback = <function> defined =[C]:-1
 CalculateNumVisibleLines = <function> defined =[C]:-1
 SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:319
 fontObject = table: 000001E0B064D550 {
 }
 overrideFadeTimestamp = 0
 GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:241
 SetInsertMode = <function> defined =[C]:-1
 MarkDisplayDirty = <function> defined =[C]:-1
 SetBackdrop = <function> defined @SharedXML\Backdrop.lua:382
 SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:267
 HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:331
 GetMessageInfo = <function> defined =[C]:-1
 GetOnScrollChangedCallback = <function> defined =[C]:-1
 OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:235
 ScrollDown = <function> defined =[C]:-1
 AtTop = <function> defined =[C]:-1
 GetFontObject = <function> defined =[C]:-1
 SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:452
 SetScrollOffset = <function> defined =[C]:-1
 SetTextCopyable = <function> defined =[C]:-1
 ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:335
 OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:205
 ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:347
 CanEffectivelyFade = <function> defined =[C]:-1
 GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:462
 SetOnDisplayRefreshedCallback = <function> defined =[C]:-1
 insertMode = 2
 AddMessage = <function> defined =[C]:-1
 OnPreSizeChanged = <function> defined =[C]:-1
 GetScaledCursorPosition = <function> defined =[C]:-1
 OnPostMouseUp = <function> defined =[C]:-1
 ResetSelectingText = <function> defined =[C]:-1
 PageUp = <function> defined =[C]:-1
 SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:475
 GetNumMessages = <function> defined =[C]:-1
 UpdateSelectingText = <function> defined =[C]:-1
 GetTextColor = <function> defined =[C]:-1
 AtBottom = <function> defined =[C]:-1
 ResetAllFadeTimes = <function> defined =[C]:-1
 ScrollToBottom = <function> defined =[C]:-1
 GetScrollOffset = <function> defined =[C]:-1
 GetSpacing = <function> defined =[C]:-1
 OnPreLoad = <function> defined =[C]:-1
 ScrollUp = <function> defined =[C]:-1
 moving =

and

887x xCT+\modules\frames.lua:419: attempt to perform arithmetic on field 'alpha' (a nil value)
[string "@xCT+\modules\frames.lua"]:419: in function <xCT+\modules\frames.lua:416>

Locals:
now = 60245
alpha = nil
scale = nil
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 class = xCT_PlusclassFrame {
 }
 outgoing = xCT_PlusoutgoingFrame {
 }
 general = xCT_PlusgeneralFrame {
 }
 power = xCT_PluspowerFrame {
 }
 loot = xCT_PluslootFrame {
 }
 healing = xCT_PlushealingFrame {
 }
 procs = xCT_PlusprocsFrame {
 }
 critical = xCT_PluscriticalFrame {
 }
}
(for control) = "class"
name = "class"
frame = xCT_PlusclassFrame {
 0 = <userdata>
 RefreshIfNecessary = <function> defined =[C]:-1
 OnPostShow = <function> defined =[C]:-1
 isDisplayDirty = false
 CalculateLineAlphaValueFromTimestamp = <function> defined =[C]:-1
 GetInsertMode = <function> defined =[C]:-1
 SetTimeVisible = <function> defined =[C]:-1
 ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:335
 GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:443
 settings = <table> {
 }
 OnFontObjectUpdated = <function> defined =[C]:-1
 frameName = "class"
 ScrollByAmount = <function> defined =[C]:-1
 GetFading = <function> defined =[C]:-1
 IsTextCopyable = <function> defined =[C]:-1
 Clear = <function> defined =[C]:-1
 shouldFadeAfterInactivity = true
 SetIndentedWordWrap = <function> defined =[C]:-1
 GetTimeVisible = <function> defined =[C]:-1
 MarkLayoutDirty = <function> defined =[C]:-1
 SetFont = <function> defined =[C]:-1
 sizing = xCT_PlusclassSizingFrame {
 }
 GetMaxLines = <function> defined =[C]:-1
 isLayoutDirty = false
 BackFillMessage = <function> defined =[C]:-1
 hasOwnFontObject = true
 UnpackageEntry = <function> defined =[C]:-1
 FontStringContainer = <unnamed> {
 }
 visibleLines = <table> {
 }
 SetShadowOffset = <function> defined =[C]:-1
 textIsCopyable = false
 SetupPieceVisuals = <function> defined @SharedXML\Backdrop.lua:299
 GetFont = <function> defined =[C]:-1
 scrollOffset = 0
 SetMaxLines = <function> defined =[C]:-1
 CalculateSelectingCharacterIndicesForVisibleLine = <function> defined =[C]:-1
 PackageEntry = <function> defined =[C]:-1
 fadeDurationSecs = 3
 RefreshDisplay = <function> defined =[C]:-1
 SetFontObject = <function> defined =[C]:-1
 timeVisibleSecs = 10
 MakeFontObjectCustom = <function> defined =[C]:-1
 SetJustifyV = <function> defined =[C]:-1
 SetOnScrollChangedCallback = <function> defined =[C]:-1
 CalculateNumVisibleLines = <function> defined =[C]:-1
 SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:319
 fontObject = table: 000001E0B064D550 {
 }
 overrideFadeTimestamp = 0
 GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:241
 SetInsertMode = <function> defined =[C]:-1
 MarkDisplayDirty = <function> defined =[C]:-1
 SetBackdrop = <function> defined @SharedXML\Backdrop.lua:382
 SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:267
 HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:331
 GetMessageInfo = <function> defined =[C]:-1
 GetOnScrollChangedCallback = <function> defined =[C]:-1
 OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:235
 ScrollDown = <function> defined =[C]:-1
 AtTop = <function> defined =[C]:-1
 GetFontObject = <function> defined =[C]:-1
 SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:452
 SetScrollOffset = <function> defined =[C]:-1
 SetTextCopyable = <function> defined =[C]:-1
 fontStringPool = <table> {
 }
 OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:205
 ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:347
 CanEffectivelyFade = <function> defined =[C]:-1
 GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:462
 SetOnDisplayRefreshedCallback = <function> defined =[C]:-1
 insertMode = 2
 AddMessage = <function> defined =[C]:-1
 OnPreSizeChanged = <function> defined =[C]:-1
 GetScaledCursorPosition = <function> defined =[C]:-1
 OnPostMouseUp = <function> defined =[C]:-1
 ResetSelectingText = <function> defined =[C]:-1
 PageUp = <function> defined =[C]:-1
 SetBackdropBorderColor = <function> defined @Interf

Going back to Beta3 for now where it seemed to work.

Cimplex commented 4 years ago

Should be fixed with in Beta 5 (9139ecc). Thank you for the report.