JLyne / LiveAtlas

A Dynmap, Squaremap, Pl3xmap and Overviewer frontend for the modern web
Apache License 2.0
341 stars 37 forks source link

Pl3xmap "Dynmap configuration object missing" #255

Closed untuned closed 2 years ago

untuned commented 2 years ago

I have followed the installation guide, however LiveAtlas still gives me the following error:

error

My liveAtlasConfig:

    <script>
        window.liveAtlasConfig = {
            servers: {
                pl3xmap: {
                    pl3xmap: window.location.pathname
                }
            },

            messages: {
                chatNoMessages: 'No chat messages yet...',
                chatTitle: 'Chat',
                chatLogin: 'Please {{link}} to send chat messages',
                chatLoginLink: 'login',
                chatSend: 'Send',
                chatPlaceholder: 'Type your chat message here...',
                chatErrorUnknown: 'Unexpected error while sending chat message',
                chatErrorDisabled: 'Chat is not enabled',
                serversHeading: 'Servers',
                worldsSkeleton: 'No maps have been configured',
                playersSkeleton: 'No players are currently online',
                playersTitle: 'Click to center on player\nDouble-click to follow player',
                playersTitleHidden: 'This player is currently hidden from the map\nDouble-click to follow player when they become visible',
                playersTitleOtherWorld: 'This player is in another world.\nClick to center on player\nDouble-click to follow player',
                playersSearchPlaceholder: 'Search players...',
                playersSearchSkeleton: 'No matching players found',
                followingHeading: 'Following',
                followingUnfollow: 'Unfollow',
                followingTitleUnfollow: 'Stop following this player',
                followingHidden: 'Currently hidden',
                linkTitle: 'Copy link to current location',
                loadingTitle: 'Loading...',
                locationRegion: 'Region',
                locationChunk: 'Chunk',
                contextMenuCopyLink: 'Copy link to here',
                contextMenuCenterHere: 'Center here',
                toggleTitle: 'Click to toggle this section',
                mapTitle: 'Map - Use the arrow keys to pan the map',
                layersTitle: 'Layers',
                copyToClipboardSuccess: 'Copied to clipboard',
                copyToClipboardError: 'Unable to copy to clipboard',
            },

            ui: {
                playersAboveMarkers: true,
                playersSearch: true
            }
        };
    </script>
ptrap commented 2 years ago

Was facing the same. For anyone strumbling on this Issue: Support for pl3xmap was only introduced in the 2.0 beta that is available on spigotmc or in github as a prerelease: https://github.com/JLyne/LiveAtlas/releases/tag/v2.0.0-beta.4. The default release that github points to is NOT compatible with pl3xmap as of time of writing.

JLyne commented 2 years ago

Yeah the above comment is correct. Will try and get a 2.0 release out soon to avoid the confusion.