Nercus / MapPinEnhanced

Map Pin Enhanced is a World of Warcraft addon to enhance the ingame waypoint system.
Other
2 stars 1 forks source link

import problem again #25

Closed Raddosik closed 2 months ago

Raddosik commented 2 months ago

23 it again stop importing, when i paste example /way #2215 55.1 55.1 this is not work, but /way #2215 55 55 works fine

so bug whith any imports with .X i delete setting from wtf and reinstall addon from zero and only imports with .X dont work

Raddosik commented 2 months ago

and now i find out that it work on some of my character. i use same addons on all of them. have no idea what the problem

Raddosik commented 2 months ago

now i test version 2.8.2 and looks like everything work. but when i install 3.04 and turn off every other addon it show this errors

Message: ...nhanced/libs/LibDataBroker-1.1/LibDataBroker-1.1.lua:3: LibDataBroker-1.1 requires CallbackHandler-1.0
Time: Mon Aug 26 21:56:47 2024
Count: 1
Stack: ...nhanced/libs/LibDataBroker-1.1/LibDataBroker-1.1.lua:3: LibDataBroker-1.1 requires CallbackHandler-1.0

Locals: 
Message: .../MapPinEnhanced/libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:12: LibDBIcon-1.0 requires LibDataBroker-1.1.
Time: Mon Aug 26 21:56:47 2024
Count: 1
Stack: .../MapPinEnhanced/libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:12: LibDBIcon-1.0 requires LibDataBroker-1.1.

Locals: 
Message: Interface/AddOns/MapPinEnhanced/MapPinEnhanced.lua:19: Cannot find a library instance of "LibDBIcon-1.0".
Time: Mon Aug 26 21:56:47 2024
Count: 1
Stack: Interface/AddOns/MapPinEnhanced/MapPinEnhanced.lua:19: Cannot find a library instance of "LibDBIcon-1.0".
[string "@Interface/AddOns/MapPinEnhanced/libs/LibStub/LibStub.lua"]:38: in function `LibStub'
[string "@Interface/AddOns/MapPinEnhanced/MapPinEnhanced.lua"]:19: in main chunk

Locals: self = <table> {
 minors = <table> {
 }
 minor = 2
 libs = <table> {
 }
}
major = "LibDBIcon-1.0"
silent = nil
Message: Interface/AddOns/MapPinEnhanced/modules/core.lua:70: Cannot find a library instance of "LibDataBroker-1.1".
Time: Mon Aug 26 21:56:47 2024
Count: 1
Stack: Interface/AddOns/MapPinEnhanced/modules/core.lua:70: Cannot find a library instance of "LibDataBroker-1.1".
[string "@Interface/AddOns/MapPinEnhanced/libs/LibStub/LibStub.lua"]:38: in function `LibStub'
[string "@Interface/AddOns/MapPinEnhanced/modules/core.lua"]:70: in function `ToggleMinimapButton'
[string "@Interface/AddOns/MapPinEnhanced/modules/core.lua"]:146: in function `func'
[string "@Interface/AddOns/MapPinEnhanced/utils/events.lua"]:58: in function <Interface/AddOns/MapPinEnhanced/utils/events.lua:55>

Locals: self = <table> {
 minors = <table> {
 }
 minor = 2
 libs = <table> {
 }
}
major = "LibDataBroker-1.1"
silent = nil
Message: ...dOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua:97: attempt to call field 'UnregisterCallback' (a nil value)
Time: Mon Aug 26 21:56:47 2024
Count: 1
Stack: ...dOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua:97: attempt to call field 'UnregisterCallback' (a nil value)
[string "@Interface/AddOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua"]:97: in function `SetPinView'
[string "@Interface/AddOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua"]:315: in function <...dOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua:302>
[string "=[C]"]: in function `CreateFrame'
[string "@Interface/AddOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua"]:484: in function `TogglePinTracker'
[string "@Interface/AddOns/MapPinEnhanced/modules/tracker/TrackerFrame.lua"]:454: in function `func'
[string "@Interface/AddOns/MapPinEnhanced/utils/events.lua"]:58: in function <Interface/AddOns/MapPinEnhanced/utils/events.lua:55>

Locals: self = MapPinEnhancedTracker {
 scrollFrame = ScrollFrame {
 }
 header = Frame {
 }
 blackBackground = Texture {
 }
 entries = <table> {
 }
}
forceUpdate = nil
(*temporary) = nil
(*temporary) = MapPinEnhancedTracker {
 scrollFrame = ScrollFrame {
 }
 header = Frame {
 }
 blackBackground = Texture {
 }
 entries = <table> {
 }
}
(*temporary) = "UpdateSetList"
(*temporary) = "attempt to call field 'UnregisterCallback' (a nil value)"
MapPinEnhanced = <table> {
 modules = <table> {
 }
 CONSTANTS = <table> {
 }
 version = 303
 isRetail = true
 nameVersionString = "MapPinEnhanced v3.0.3"
 locale = "ruRU"
 isClassic = false
 L = <table> {
 }
 HBD = <table> {
 }
 addonName = "MapPinEnhanced"
 HBDP = <table> {
 }
}
SET_VIEW_ICON = "Interface/AddOns/MapPinEnhanced/assets/icons/IconSets_Yellow.png"
L = <table> {
 Cancel = "Cancel"
 Toggle Minimap Button = "Toggle Minimap Button"
 Minimap = "Minimap"
 Import a Set = "Import a Set"
 Toggle Editor = "Toggle Editor"
 Show This Help Message = "Show This Help Message"
 Load Set = "Load Set"
 Toggle Tracker = "Toggle Tracker"
 Clear = "Clear"
 Clear All Pins = "Clear All Pins"
 Map Pin = "Map Pin"
 Open Options = "Open Options"
 Import = "Import"
 Tracker = "Tracker"
 Options = "Options"
 Editor = "Editor"
 Accept = "Accept"
 Back = "Back"
 Create a Pin at Your Current Location = "Create a Pin at Your Current Location"
 Help = "Help"
 Hide Minimap Button = "Hide Minimap Button"
}
Raddosik commented 2 months ago
Message: ...Enhanced/modules/editor/setView/SetEditorSidebar.lua:218: attempt to call field 'RegisterCallback' (a nil value)
Time: Mon Aug 26 22:14:35 2024
Count: 1
Stack: ...Enhanced/modules/editor/setView/SetEditorSidebar.lua:218: attempt to call field 'RegisterCallback' (a nil value)
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/setView/SetEditorSidebar.lua"]:218: in function <...Enhanced/modules/editor/setView/SetEditorSidebar.lua:216>
[string "=[C]"]: in function `Show'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:68: in function `ConfigureViewVisibility'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:82: in function `SetActiveView'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:106: in function <...ddOns/MapPinEnhanced/modules/editor/EditorWindow.lua:102>
[string "=[C]"]: in function `CreateFrame'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:153: in function `GetEditorWindow'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:140: in function `ToggleEditorWindow'
[string "@Interface/AddOns/MapPinEnhanced/modules/editor/EditorWindow.lua"]:160: in function <...ddOns/MapPinEnhanced/modules/editor/EditorWindow.lua:159>
[string "=[C]"]: in function `pcall'
[string "@Interface/AddOns/MapPinEnhanced/utils/slash.lua"]:33: in function `?'
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5468: in function `ChatEdit_ParseText'
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5120: in function `ChatEdit_SendText'
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5156: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:140_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:140_OnEnterPressed"]:1>

Locals: self = Frame {
 importButton = Button {
 }
 switchViewButton = Button {
 }
 body = Frame {
 }
 searchInput = EditBox {
 }
 createSetButton = Button {
 }
 header = Frame {
 }
 scrollFrame = ScrollFrame {
 }
}
(*temporary) = nil
(*temporary) = Frame {
 importButton = Button {
 }
 switchViewButton = Button {
 }
 body = Frame {
 }
 searchInput = EditBox {
 }
 createSetButton = Button {
 }
 header = Frame {
 }
 scrollFrame = ScrollFrame {
 }
}
(*temporary) = "UpdateSetList"
(*temporary) = "attempt to call field 'RegisterCallback' (a nil value)"
MapPinEnhanced = <table> {
 modules = <table> {
 }
 pinTracker = MapPinEnhancedTracker {
 }
 CONSTANTS = <table> {
 }
 version = 303
 isRetail = true
 nameVersionString = "MapPinEnhanced v3.0.3"
 locale = "ruRU"
 isClassic = false
 L = <table> {
 }
 HBD = <table> {
 }
 addonName = "MapPinEnhanced"
 HBDP = <table> {
 }
}
Raddosik commented 2 months ago

https://youtu.be/rAB92YN14pE

Nercus commented 2 months ago

Sorry to hear, that it stopped working again. Please try the following things:

  1. Use "," instead of "." as a delimiter. So /way #2215 55,1 55,1
  2. Use /dump IsEuropeanNumbers(). What is printed in the chat "true" or "false"?
  3. Use /run print(tonumber("0.5"), tonumber("0,5")). What is printed in the chat?
  4. On the previous issue (#23) you stated, that the error disappeared after deleting the MapPinEnhanced.lua file in the WTF folder. Please provide the file. That could be very helpful.

Regarding the errors you are posting: they indicate that you are missing multiple libraries. Normally they should be installed with the normal install through CurseForge or any addon manager. These would indicate a faulty installation. Please try again by manually downloading it from the CurseForge page (here).

Raddosik commented 2 months ago
  1. Didnt work because addon not responding (v3.04)
  2. true
  3. 0.5 nil
  4. file there in last message, im added .txt

Delete all interface, wtf and cache folders. So just one addon installed. Manual install addon show same errors, then install from curseforge app and it also download LibDeflate, same errors, wowup download only MapPinEnhanced and show same errors. new one MapPinEnhanced.lua.txt

manual install 2.8.2 version show 0 errors and work with both /way #2215 55,1 55,1 and /way #2215 55.1 55.1

Raddosik commented 2 months ago

restore all addons back and v3.04 work only with /way #2215 55 55 and no other that contain delimiter

Nercus commented 2 months ago

I'm pretty sure that there is a bug from Blizz happening here. IsEuropeanNumbers() and the tonumber check should return the same thing, but it seems like for the Russian version of the game client it's inconsistent. I'm gonna try to provide a fix soon.