Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: World-Map-SMP (Read 15014 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: World-Map-SMP

Reply #25
I'm really liking this script!
I've already been keeping country tags for my library so I have no need to fetch them from the Biography script. How could I make the script read those? I store them in %country% using ISO 3166-1 alpha-2 codes.

Additionally, is there a way to choose the color of the spot indicating the location?
Download the latest files as noted on the previous reply. Have not created a release yet, but the latest version already allows that (see images blu-orange!).

About tags, right now it uses locale tag. Just put "country" on the properties panel, its configurable. I think it's the first entry (read the descriptions).

Re: World-Map-SMP

Reply #26
Updated again the repository.

Now locale tag may be rewritten by pressing Shift + L. Click on the map (when it already has a tag) -on JSON or Tags- (*). Previously it was only allowed when tag was missing. Therefore the map now has full tagging capabilities, allowing to rectify whatever Bio script provides (sometimes artist names have multiple matches and wrong tags are provided, this fixes it).

X

(*) Saves the country names, not ISO codes. I may add a config to switch between both.

EDIT: @dreampillet note that you may have to use "$meta(country,$sub($meta_num(country),1))" instead of just "country" if you have multiple values on the same tag. Right now the locale tag does not only store the country name, but city, province, etc. and It simply takes the last value as country.

Re: World-Map-SMP

Reply #27
Updated again the repository:
- Tools to report all artist without a locale tag on JSON database/tags for easy tagging, manually or automatically. Meant to be used along macros -autohotkey, etc.- and BIO script, to get the bio for every artist automatically.
Code: [Select]
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#Persistent
SetTimer, foobar2000Preview, 15000
return

foobar2000Preview:
WinActivate foobar2000
Send {Down}
return
- Possibility to merge an external json file with current database.
- A database example is now shared on the repository. The idea is it may be merged with other user's databases and at some point it may be enough to get locale tags for most popular artists without bio script or online collection.
- Possibility to write all locale tags from current library tracks to the current database.
- Possibility to write all locale tags from database back to library tracks.
- Header text size configurable.
- Minor bugfixes.

Re: World-Map-SMP

Reply #28
Have updated the repository with minor bugfixes. Added an AutoHotekey script to get locale country tags.

If anyone want to test it, download the files directly from the repository not the releases. Please have in mind the relative path bug on SMP has not been solved yet, so I have no idea if it will work for you!
(it's recommended to also download the latest files from the rest of my scripts in that case, since I have changed all with major changes)

Re: World-Map-SMP

Reply #29
regor, can we have this little flag (like in the Georgia Reborn theme) ?
I assume it's a SMP script? We can put that little flag anywhere in our foobar config  We already have the tags with the countries, we already have the flags (png images)

Re: World-Map-SMP

Reply #30
Where do you suggest to add it on the panel?
X

Not fan of flags but wIll look at the theme, if the png are there associated to ISO codes it would be trivial to add them.

Re: World-Map-SMP

Reply #31
"Where do you suggest to add it on the panel?"

I don't know...maybe somewhere up, to the right? And maybe a setting, to activate this option or not ( for those that don't like the flags)
Or, if it doesn't look good in this script with the map, maybe a separate little script? This way we can put that little SMP panel with the flag wherever we want in our theme (near the little red heart for Lastfm, or in a toolbar, or in other places)

Re: World-Map-SMP

Reply #32
A separate script would be a no since it would also require some way to retrieve tracks from BIO or the map panel database, so it would be a plugin of a plugin... and I find it unnecessarily complex.

Btw just finished implementing a new mode for the panel: library mode, which displays all the countries from the entire library artists database  instead of following selection/playback. Clicking on a point creates playlists from that country (+genre, styles, etc.  according to keys pressed). Tooltip shows all artist on library from that country.

This is an easy way to see the current statistics for every country, instead of selecting the entire library and setting display mode to selection. Which also doesn't work as expected since I imposed a selection limit due to performance reasons (it checks tags by tracks one by one). The library database is cached and not updated on real time, so it works without performance penalties. (may be updated on demand)

X


Re: World-Map-SMP

Reply #34
Looks great, thanks. Library mode, awesome too

Re: World-Map-SMP

Reply #35
Have updated the repository with the new features (flags and library mode). The latest SMP dev build fixes the relative paths bug too, so it should be safe to update to the new version from now on.
https://ci.appveyor.com/api/projects/theqwertiest/foo-spider-monkey-panel/artifacts/_result%2FWin32_Release%2Ffoo_spider_monkey_panel.fb2k-component?branch=master&job=Configuration%3A%20Release

Re: World-Map-SMP

Reply #36
Just pushed a new update. Please read the new installation instructions. This update is required if you also update any of my other scripts due to the UTF-8 file saving/reading changes. Clone the repository to get the latest changes (Code/Download zip) instead of using the releases page.
Quote
### CHANGED
- All json files are now saved as UTF-8 without BOM. All json files are now read as UTF-8 (forced).
- Updated installation instructions.


Re: World-Map-SMP

Reply #38
Similarly interesting?! (based on scrobbles) https://mold.github.io/explr
Currently the number is only shown when you hover over a point. And I'm not using legend colors since the countries are not being drawn according to frontiers. It could be possible to darken\lighten the point according to the artist count though, which would be equivalent. It's also possible to get the total numbers by processing the library json (counting how many artists are in USA key for ex).

Just pushed a new update. Permanent console log to bypass foobar limitation of 'saving log to file' getting reset on every startup. obviously limited to the script output. Clone the repository to get the latest changes (Code/Download zip) instead of using the releases page.
Quote
   ### Added
   - Helpers: added full script console logging to file at foobar profile folder ('console.log'). File is reset when reaching 5 MB. Logging is also sent to foobar2000's console (along other components logging).
   ### Changed
   ### Removed
   ### Fixed

Spoiler (click to show/hide)

Re: World-Map-SMP

Reply #39
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.0-beta.1
Quote
v2.0.0-beta.1 - Library mode, bio integration and UI improvements
Considered a beta due to a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.5.2.

    Added Library Mode: displaying all the countries from the entire library artists database instead of following selection/playback. Clicking on a point creates playlists from that country (+genre, styles, etc. according to keys pressed). Tooltip shows artist count from that country. The library database is cached and not updated on real time, so it works without performance penalties. (may be updated on demand)
    Tracks can be tagged by clicking directly on the map.
    Flags can be shown along the country name at the header. Configurable at UI menu.
    Tools to find all artists from the library without a locale tag (either on tags or on JSON). Meant to be used along some automation tool to preview all tracks (foo_scheduler, AutoHotkey, etc.) while using Biography script to automatically tag them or to do it manually.
    Added a few AutoHotkey scripts meant to be used for automated locale tag scrapping along Bio script. (at presets)
    Database tools to merge files, etc. Added a database file that is ready to be used with common artists for offline systems. (at presets)
    More UI customization.
    Added full script console logging to file at foobar profile folder ('console.log').
    Reworked Biography integration (for latest versions).
    Added some common variations for a few country names to enhance matching (points and flags) even if they are not the standard iso names or have swapped prefixes.
    Multiple minor fixes.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

Re: World-Map-SMP

Reply #40
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.0-beta.2
Quote
- Updated Bio integration for 1.2.0 (requires no file mods now so it will work even after updating the Bio package on the future).
- Database file from presets is now used as initial default file on first installation (or if the user's file gets deleted). This simplifies copying it manually on offline systems.

Should work now with latest BIO package (and future ones) seamlessly without requiring reinstall on BIO updates. Just enable it on the menus.

Re: World-Map-SMP

Reply #41
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.0-beta.3

Quote
v2.0.0-beta.3 - Cultural regions (wip) and cleanup of code Latest

Considered a beta due to a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1.

    Cultural Regions: tooltip now shows the cultural region associated to the country point.
    Improved UNIX compatibility.
    Minor menu improvements.
    Some bugfixes.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

Re: World-Map-SMP

Reply #42
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.2

Quote
v2.0.2 - Update for compatibility with other scripts Latest

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    Changed behavior of file recycling logic to check for network drives, the file will be automatically deleted without popups.
    Logging: playlist query is cut to 300 chars (to speed up UI responsiveness on console logging).
    Updated helpers.
    Fixed multiple bugs due to missing fonts, query checking, reading locked files and tooltip.
    Updated helpers.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

Re: World-Map-SMP

Reply #43
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.3
Quote
v2.0.3 - Accesibility Changes and compatibility with other scripts Latest

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    UI presets to easily switch all the colors on the UI at the same time to pre-defined sets.
    Improved accesibility with presets for Color Blindness (deuteranopia) and Grey Scale.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.m

Have also updated the wiki on github.

Re: World-Map-SMP

Reply #44
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.0.4

Quote
v2.0.4 - Bugfix

- Enforced SMP version checking via popups.
- Fixed capitalization (bug introduced on 2.0.1). Did affect to manually set country tags (files and database), tooltips and playlists (just cosmetic).

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.m

PLEASE UPDATE TO THIS RELEASE ASAP,  2.0.1+ releases had broken capitalization (which may affect tags or database when manually setting country).

Re: World-Map-SMP

Reply #45
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.1.0

Quote
v2.1.0 - Shapes
@regorxxx regorxxx released this in 1 minute
v2.1.0
261c098

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    Possibility to highlight entire country with shapes instead of points.
    Improved map images with Countries-Shapes-Generator: natural and shapes. Full/no Antarctica versions for both.
    Improvements to readmes, helpers, etc.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.m


Re: World-Map-SMP

Reply #46
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.1.1
Quote
v2.1.1 - Compatibility update
@regorxxx regorxxx released this 5 minutes ago
v2.1.1
c74c6c6

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    Updated helpers to match my other scripts.

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

 

Re: World-Map-SMP

Reply #47
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.2.0
Quote
v2.2.0 - Compatibility update
@regorxxx regorxxx released this in 2 minutes
v2.2.0
6d0808f

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    Updated helpers to match my other scripts.
    Switched all callbacks to event listeners.
    Workaround for some instances where the scripts would warn about some feature not being supported by the OS (due to an OS or SMP bug).

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

Re: World-Map-SMP

Reply #48
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.2.1
Quote
v2.2.1 - Logging fix
@regorxxx regorxxx released this in 12 hours
v2.2.1
fb14033

There may be a SMP's bug on installation. See _TIPS and INSTALLATION.txt
REQUIRES SMP 1.6.1

    Updated helpers to match my other scripts.
    Fixed console logging to file (lines were not being split properly).

See changelog for a full list: https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md

Re: World-Map-SMP

Reply #49
Hi @regor

I'm experimenting a high CPU usage with the last update in github. The simple activation of the map make foobar CPU usage climb up and make the player enable to scroll playlists, update panels, etc. The CPU usage drop down to normal when the panel is not visible in the UI (changing to another tab in the same tab panel) or disabling world map.

Edit:

I'm still in foobar2000 1.6.12 version