HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: regor on 2021-05-13 11:52:34

Title: World-Map-SMP
Post by: regor on 2021-05-13 11:52:34
World-Map-SMP (https://github.com/regorxxx/World-Map-SMP)
(https://img.shields.io/github/release/regorxxx/World-Map-SMP.svg?include_prereleases) (https://github.com/regorxxx/World-Map-SMP/blob/main/CHANGELOG.md)(https://www.codefactor.io/repository/github/regorxxx/World-Map-SMP/badge/main) (https://www.codefactor.io/repository/github/regorxxx/World-Map-SMP/overview/main)(https://api.codacy.com/project/badge/Grade/d68ef528f77646bca546fd206d28e8a1) (https://www.codacy.com/gh/regorxxx/World-Map-SMP/dashboard?utm_source=github.com&utm_medium=referral&utm_content=regorxxx/World-Map-SMP&utm_campaign=Badge_Grade)(https://img.shields.io/github/license/regorxxx/World-Map-SMP) (https://github.com/regorxxx/World-Map-SMP/blob/main/LICENSE)
A foobar2000 UI Spider Monkey Panel (https://theqwertiest.github.io/foo_spider_monkey_panel) which displays current artist's country on the world map and lets you generate autoplaylists based on selection and locale tag saving when integrated along WilB's Biography Script (https://hydrogenaud.io/index.php?topic=112914.0).

(https://user-images.githubusercontent.com/83307074/116752367-002d9100-a9f5-11eb-8a03-0ee323634742.gif)

Features

(https://user-images.githubusercontent.com/83307074/116752374-01f75480-a9f5-11eb-9d30-a9958079b1ee.gif)

(https://user-images.githubusercontent.com/83307074/116752378-03c11800-a9f5-11eb-9971-b3eff6e8d0fa.gif)

Also integrates
 1. Menu-Framework-SMP (https://github.com/regorxxx/Menu-Framework-SMP): Helper which allows to easily create customizable and dynamic menus.

Installation
Copy all files from the zip into YOUR_FOOBAR_PROFILE_PATH\scripts\SMP\xxx-scripts
Any other path WILL NOT work without editing the scripts. (see images_Installation_*jpg)
For ex: mine is c:\Users\xxx\AppData\Roaming\foobar2000\scripts\SMP\xxx-scripts...
For portable installations >= 1.6: .\foobar2000\profile\scripts\SMP\xxx-scripts...
For portable installations <= 1.5: .\foobar2000\scripts\SMP\xxx-scripts...
Then load 'world_map.js' into a SMP panel within foobar.

Download latest release (or nightly releases) at github:
https://github.com/regorxxx/World-Map-SMP[/list]
Title: Re: World-Map-SMP
Post by: rolf1955 on 2021-05-13 20:57:22
deleted - accidentally posted in the wrong place.

Title: Re: World-Map-SMP
Post by: mjm716 on 2021-05-15 01:44:59
This is pretty cool, but one recommendation.

The map it uses is a bit odd, given that probably 70%+ of recorded music is from about 8% of the map area (US/EU) and I'm not aware of any recordings from Antarctica which is generously represented on the projection.

You put a lot of good work into this, it would be nice to see it better. :)
Title: Re: World-Map-SMP
Post by: Sergey77 on 2021-05-15 14:07:58
Hi there.
interesting projects!
@regor ,Is it possible to set the background color of the window to match the color of the main theme? (see picture).
Many thanks.

But the pointer does not appear on the map. WilB's script is integrated.
Can't figure out what's wrong?
Title: Re: World-Map-SMP
Post by: regor on 2021-05-17 23:45:10
This is pretty cool, but one recommendation.

The map it uses is a bit odd, given that probably 70%+ of recorded music is from about 8% of the map area (US/EU) and I'm not aware of any recordings from Antarctica which is generously represented on the projection.

You put a lot of good work into this, it would be nice to see it better. :)
I already offer a possibility to change the image to whatever you like, so... feel free to change it if you don't like it (?).
Cutting the map to not show Antarctica would break Mercator coordinates and make it incompatible with other standard maps, which also breaks the design decision to let users to change the image.

Not going that route unless I can support both, standard maps and maps without Antarctica, without needing to use different coordinates. Will take a look at it.
Title: Re: World-Map-SMP
Post by: regor on 2021-05-17 23:48:20
Hi there.
interesting projects!
@regor ,Is it possible to set the background color of the window to match the color of the main theme? (see picture).
Many thanks.

But the pointer does not appear on the map. WilB's script is integrated.
Can't figure out what's wrong?
As far as I know that's as easy as setting your panel right at appearance (transparency). Let me know if that works.

The other problem... I don't understand it without more data. Integration must be installed AND enabled. And obviously, the artists must have that data on last fm (or on the track's tag)... otherwise it does nothing.
Title: Re: World-Map-SMP
Post by: regor on 2021-05-18 17:19:34
I found a relatively easy way to adjust the coordinates according to a factor and it works.
So I cut the original map to not show Antarctica and put both options in a menu, along entries to edit the image path and factors.

X

The factors should work as long as the image is a mercator map (no matter if it's cut at any axis). For other projections, the entire coordinates table should be replaced.
Title: Re: World-Map-SMP
Post by: regor on 2021-05-26 20:55:01
## [1.1.0] - 2021-05-26 (https://github.com/regorxxx/World-Map-SMP)
### Added
- Menu: Map image can be set via menus.
- Menu: 2 different map images are not offered by default, full and No Antarctica. Coordinates are re-scaled according to the crop when choosing the later.
- Map framework: Coordinates transformation has been added, allowing to use custom map images while using the default coordinates (plus a factor).
### Changed
- Map framework: updated with last changes.
- Menu framework: updated with last changes.
- Readme: updated some tips.
### Removed
### Fixed
Title: Re: World-Map-SMP
Post by: regor on 2021-05-28 21:51:51
## [1.1.1] - 2021-05-28 (https://github.com/regorxxx/World-Map-SMP)
### Added
### Changed
- Menu framework: updated.
### Removed
### Fixed
- Changing image map did not ask automatically for X and Y coordinates factors.
Title: Re: World-Map-SMP
Post by: regor on 2021-06-07 19:34:18
v1.2.0 - File restructuring and cleanup (https://github.com/regorxxx/World-Map-SMP)
File restructuring update for compatibility with the other repositories.

## [1.2.0] - 2021-06-07
### Added
### Changed
- Helpers: Split 'helpers_xxx.js' file into multiple ones for easier future maintenance.
### Removed
### Fixed
Title: Re: World-Map-SMP
Post by: Sergey77 on 2021-06-13 14:26:10
As far as I know that's as easy as setting your panel right at appearance (transparency). Let me know if that works.
regor,
The background of the world map panel is still white.
And I hope you and WilB will be able to develop a version of the World-Map script that works without modifying the Bio script.
Thanks.
Title: Re: World-Map-SMP
Post by: regor on 2021-06-13 15:38:04
As far as I know that's as easy as setting your panel right at appearance (transparency). Let me know if that works.
regor,
The background of the world map panel is still white.
And I hope you and WilB will be able to develop a version of the World-Map script that works without modifying the Bio script.
Thanks.
The last bio version works fine BUT without a mod the selection can not be synchronized between the panels (therefore I add my own mod to solve that "limitation"). Without sel sync, if you change the selection mode in one panel, the other requires to be set manually too or things break.

It's on his side to change that, sorry (I mean.. I posted him the required changes, but people should ask for it, not me). Anyway I don't see it as a "problem"... my script installs the mod automatically and gives 0 problems. Manual installation is a matter of adding 1 line.
Next release will add latest bio integration and some readme tips about it.

About the background, If I set transparency, then it matches the background. I could obviously add a setting to change the color, but that still doesn't answer why it doesn't work for you. So check your config (columns UI or default UI?), since it has nothing to do with the script itself. I have zero idea about how the transparency setting works and it relates to UI, better to ask about it in SMP thread. I only know I use Columns UI and it works with the background color I have set.

X
X
Title: Re: World-Map-SMP
Post by: marc2k3 on 2021-06-13 15:58:19
If you want UI colours, you have to retrieve them using window.GetColourDUI / window.GetColourCUI. You'd want this as the first lines inside on_paint

Code: [Select]
var bg = window.InstanceType ? window.GetColourDUI(1): window.GetColourCUI(3);
gr.FillSolidRect(0, 0, window.Width, window.Height, bg);

Typically you'd want them to update whenever the user changes the settings too so you'd need this callback as well...

Code: [Select]
function on_colours_changed() {
window.Repaint();
}
Title: Re: World-Map-SMP
Post by: regor on 2021-06-13 16:00:40
If you want UI colours, you have to retrieve them using window.GetColourDUI / window.GetColourCUI. You'd want this as the first lines inside on_paint

Code: [Select]
var bg = window.InstanceType ? window.GetColourDUI(1): window.GetColourCUI(3);
gr.FillSolidRect(0, 0, window.Width, window.Height, bg);

Typically you'd want them to update whenever the user changes the settings too so you'd need this callback as well...

Code: [Select]
function on_colours_changed() {
window.Repaint();
}
My doubt is more why the transparency doesn't work for him? Since it works fine on my side (which makes all that unnecessary). Otherwise, yep, I would do that and also add a custom color option
Title: Re: World-Map-SMP
Post by: marc2k3 on 2021-06-13 16:08:15
Transparency has no effect in default UI. It will always be white unless you use FillSolidRect to draw your own colour.

The same goes inside a normal CUI splitter. It would be white too. Pretty sure only reason yours is grey is because its inside a tab stack.

The real purpose of pseudo transparent mode is for laying panels on top of Panel Stack Splitters which may have some image/text/colours you want to show through your own panels on top. Also, it's needed if you add SMP as a CUI toolbar.

JSP actually disables items that aren't available in DUI so there is no confusion.

(https://i.imgur.com/RD5FMgB.png)
Title: Re: World-Map-SMP
Post by: regor on 2021-06-13 16:13:46
Thanks! I had no idea at all how it worked, and yes.. as you have noted I use my script within a tab stack.

Then I will add the colors option and use UI/DUI as default and done.

EDIT: done for the next release.
Title: Re: World-Map-SMP
Post by: regor on 2021-06-15 17:31:27
v1.2.1 - Biograpy 1.2.X integration (https://github.com/regorxxx/World-Map-SMP)
Biograpy 1.2.X integration. Customizable background color. Minor improvements.
(*) Recommended to update all other scripts (Playlist Tools, Search by Distance, Playlist Manager) too. There have been major changes on those.


## [1.2.1] - 2021-06-15
### Added
- Biography Integration: Now works with Biograpy 1.2.X version too. 'Notify tags' must be enabled on Bio's config panel, the script will do it automatically when installing the mod. Appart from that, installation and selection mode sync works the same than 1.1.X series.
- Image: Added 2 map versions with black border (now the default ones).
- Colors: Option to change background color.
### Changed
- Portable: When properties are set for the first time, now use relative paths on profile folder for portable installations (>= 1.6).
- Data: json file for tags is now formatted to be readable.
- Biography Integration: Manually reloading Biography panel after installing the mod is no longer required, since it's done auttomatically after installing the mod.
- Image: 'No Antarctica map' (black border) is now the default one.
### Removed
### Fixed
- Menu: After setting a custom map image, panel was not being redrawn (requiring a manual update).
- Avoid possible crashes when tags json file get corrupted. Warns about it whit a popup.
Title: Re: World-Map-SMP
Post by: Sergey77 on 2021-06-16 15:28:12
 :)
Thanks regor and snotlicker!
The new version of the script looks great!
See picture MC_WorldMap1.jpg

A few points that would be great to consider for the next releases:
1. The country is marked on the map only if English is selected in the Bio. Is it possible for other languages?
2. I think the marker should be smaller. It is better if the type and color of the marker could be changed (for example, the option as in the picture map1.png)
3. Add the ability to display the name of the country (as an option in the picture).
4. Is the country marker not displayed for internet radio tracks?

Other than that, what does this message in the console mean?
World Map - Portable installation: replacing path 'wm_09.JSON filename (for tags)' with '.\profile\js_data\worldMap.json'
Title: Re: World-Map-SMP
Post by: regor on 2021-06-21 00:01:56
:)
Thanks regor and snotlicker!
The new version of the script looks great!
See picture MC_WorldMap1.jpg

A few points that would be great to consider for the next releases:
1. The country is marked on the map only if English is selected in the Bio. Is it possible for other languages?
2. I think the marker should be smaller. It is better if the type and color of the marker could be changed (for example, the option as in the picture map1.png)
3. Add the ability to display the name of the country (as an option in the picture).
4. Is the country marker not displayed for internet radio tracks?

Other than that, what does this message in the console mean?
World Map - Portable installation: replacing path 'wm_09.JSON filename (for tags)' with '.\profile\js_data\worldMap.json'
1. Bio gives you translated tags when using other languages, so instead of getting United Kingdom you get the translated name for the language set... and I have 0 plans to offer a table of all possible translations of every country name back to a coordinates table. If you want both, English tags and another displayed language, then... first retrieve tags in English mode, write those tags to the files and then change the language to yours. Both bio and this script offers tools to write the tags to the tracks or json. Or have 2 bio panels... one -hidden- in English for tags and another in your language for display. (or ask at the bio thread to add an option to configure separately tag language and displayed language)

2. It could be somewhat configurable on next release. But have in mind the point is clickable, a point too small would not be usable at all for that purpose.

3. The country name is on the tooltip. Also the map shows multiple points at the same time if you select multiple tracks, therefore showing the country name for all tracks selected at the same time would be horrible, cluttering all the map with text. If added, it has to be limited in some way, since it only makes sense when you select one track / follow now playing.

4. The map is using your file tags or data provided by Bio script. If your radio track does not provide a local tag, nope. The script is not retrieving tags from any other thing, so any problem with tracks not showing points... it's not the script fault. Obviously I would not expect a radio track to have a locale tag at all. Even bio integration is just an "addon". I created it to display tags already saved on tracks, it's the user's work to add those tags to their tracks or use bio as a workaround.

About your last question... thats a change added some releases ago, check the change-logs. You are using a portable installation, multiple warnings are given with popups about it when installing the script. If you have absolute paths set at properties, things will break when changing drive letters. So the script warns you about it to use relative paths. Change it to the proposed value or forget about it if you don't care or are using a portable installation on a fixed drive.
Title: Re: World-Map-SMP
Post by: regor on 2021-06-21 00:11:13
v1.2.2 - Bio Integration hotfix (https://github.com/regorxxx/World-Map-SMP)
Solved crash when bio 1.2.X package was not present. No more changes.


## [1.2.2] - 2021-06-21
### Added
### Changed
### Removed
### Fixed
- Biography Integration: crash when trying to install mod and 1.2.X  package was not present.
Title: Re: World-Map-SMP
Post by: regor on 2021-07-12 20:18:18
Quote
2. I think the marker should be smaller. It is better if the type and color of the marker could be changed (for example, the option as in the picture map1.png)
3. Add the ability to display the name of the country (as an option in the picture).
Next release will have these (3. only when selecting one track).

And also the possibility to set the locale tag by clicking on the map when the files have no tags. Much faster than typing country names on a tag editor, for sure... Tag may be saved directly to files or to the json database, as always. (*)

X

The map framework has been updated accordingly, so at some point you can expect something similar for cloud tags.

(*) The locale database could be shared in the future between users as a collaborative effort to fill the holes on last.fm database. Instead of requiring the bio panel, the offline database could be used once it contains all artists on your library. Merging databases from a few users would easily cover most popular artists in some time.
Title: Re: World-Map-SMP
Post by: Sergey77 on 2021-07-13 16:19:28
1. Bio gives you translated tags when using other languages, so instead of getting United Kingdom you get the translated name for the language set... and I have 0 plans to offer a table of all possible translations of every country name back to a coordinates table. If you want both, English tags and another displayed language, then... first retrieve tags in English mode, write those tags to the files and then change the language to yours. Both bio and this script offers tools to write the tags to the tracks or json. Or have 2 bio panels... one -hidden- in English for tags and another in your language for display. (or ask at the bio thread to add an option to configure separately tag language and displayed language)
I just noticed it.
Quote
2. It could be somewhat configurable on next release. But have in mind the point is clickable, a point too small would not be usable at all for that purpose.
Probably the transparent area of sensitivity to mouse click can be made larger than the point size.
Quote
3. The country name is on the tooltip. Also the map shows multiple points at the same time if you select multiple tracks, therefore showing the country name for all tracks selected at the same time would be horrible, cluttering all the map with text. If added, it has to be limited in some way, since it only makes sense when you select one track / follow now playing.
yes, probably limited to only one selected track.
Quote
4. The map is using your file tags or data provided by Bio script. If your radio track does not provide a local tag, nope. The script is not retrieving tags from any other thing, so any problem with tracks not showing points... it's not the script fault. Obviously I would not expect a radio track to have a locale tag at all. Even bio integration is just an "addon". I created it to display tags already saved on tracks, it's the user's work to add those tags to their tracks or use bio as a workaround.
I have the Bio script installed. But the World-Map-SMP script does not map the artist country for songs from radio streams. Additional verification may be needed.
Quote
About your last question... thats a change added some releases ago, check the change-logs. You are using a portable installation, multiple warnings are given with popups about it when installing the script. If you have absolute paths set at properties, things will break when changing drive letters. So the script warns you about it to use relative paths. Change it to the proposed value or forget about it if you don't care or are using a portable installation on a fixed drive.
Another way is a feature in the script for disabling the output of messages to the console.

regor,
Thank You for your work. And I wish you inspiration.
Title: Re: World-Map-SMP
Post by: regor on 2021-07-13 20:16:01
Quote
Probably the transparent area of sensitivity to mouse click can be made larger than the point size.
That would break things when points overlap and is non-intuitive ("why clicking outside the point does something?").

Quote
I have the Bio script installed. But the World-Map-SMP script does not map the artist country for songs from radio streams. Additional verification may be needed.
As noted that's a "problem" of Bio script. Report it there. I simply use the tags it provides, if it does not provide tags for some tracks (or radio streams) there is nothing to do on my side.

Quote
Another way is a feature in the script for disabling the output of messages to the console.
I'm not gonna disable it since it's relevant information for most users. The "proper fix" is setting relative paths as the warning notes, if it's a portable install, relative paths should be used. You can comment that line if it annoys you.

Comment this line at helpers_xxx_properties.js
Code: [Select]
console.log(window.Name + ' - Portable installation: property \  ....
Title: Re: World-Map-SMP
Post by: regor on 2021-07-15 21:53:10
Have updated the repository with all the latest changes to the UI customization (points, colors, etc.). If anyone want to test it, download the files directly from the repository not the releases.

X

X

(it's recommended to also download the latest files from the rest of my scripts, since I have changed all with major changes in Playlist Tools)

Changelog is up to date on github. Check unreleased.
Title: Re: World-Map-SMP
Post by: dreampillet on 2021-07-17 00:35:37
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?
Title: Re: World-Map-SMP
Post by: regor on 2021-07-17 10:02:22
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).
Title: Re: World-Map-SMP
Post by: regor on 2021-07-17 11:54:50
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.
Title: Re: World-Map-SMP
Post by: regor on 2021-07-19 18:37:11
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.
Title: Re: World-Map-SMP
Post by: regor on 2021-07-24 20:56:04
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)
Title: Re: World-Map-SMP
Post by: Koshingg on 2021-07-25 12:13:44
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)
Title: Re: World-Map-SMP
Post by: regor on 2021-07-25 16:13:45
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.
Title: Re: World-Map-SMP
Post by: Koshingg on 2021-07-25 21:30:53
"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)
Title: Re: World-Map-SMP
Post by: regor on 2021-07-26 15:12:55
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
Title: Re: World-Map-SMP
Post by: regor on 2021-07-27 10:37:37
Got it.

X
Title: Re: World-Map-SMP
Post by: Koshingg on 2021-07-28 22:11:20
Looks great, thanks. Library mode, awesome too
Title: Re: World-Map-SMP
Post by: regor on 2021-08-02 18:46:41
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
Title: Re: World-Map-SMP
Post by: regor on 2021-09-19 14:41:21
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.
Title: Re: World-Map-SMP
Post by: mjm716 on 2021-09-26 14:56:46
Similarly interesting?! (based on scrobbles) https://mold.github.io/explr
Title: Re: World-Map-SMP
Post by: regor on 2021-10-08 21:46: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)
Title: Re: World-Map-SMP
Post by: regor on 2021-12-24 09:14:27
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
Title: Re: World-Map-SMP
Post by: regor on 2021-12-30 14:57:57
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.
Title: Re: World-Map-SMP
Post by: regor on 2022-03-02 20:55:25
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
Title: Re: World-Map-SMP
Post by: regor on 2022-05-04 19:36:38
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
Title: Re: World-Map-SMP
Post by: regor on 2022-05-23 20:49:20
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.
Title: Re: World-Map-SMP
Post by: regor on 2022-06-07 19:25:41
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).
Title: Re: World-Map-SMP
Post by: regor on 2022-08-05 18:24:36
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
(https://user-images.githubusercontent.com/83307074/183129059-6e7babcb-50f8-4dd1-8c3d-e181e0d47d83.png)
(https://user-images.githubusercontent.com/83307074/183128872-f292e91f-98bb-43da-84b1-f873b2a89ba0.png)
Title: Re: World-Map-SMP
Post by: regor on 2022-08-09 16:26:07
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
Title: Re: World-Map-SMP
Post by: regor on 2022-08-12 19:24:27
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
Title: Re: World-Map-SMP
Post by: regor on 2022-08-21 20:46:19
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
Title: Re: World-Map-SMP
Post by: paregistrase on 2022-10-05 11:32:14
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
Title: Re: World-Map-SMP
Post by: regor on 2022-10-05 12:53:34
Need more info, like the configuration you are using.

EDIT: In particular country highlighting option. Shapes option is not for every system...

EDIT2: Anyway, fixed it. There was an infinite painting loop of country shapes XD Sorry.
Shapes should not be used on resource constrained systems, but that was not the problem anyway.
Replace the file. (will update it on github today too)
Title: Re: World-Map-SMP
Post by: paregistrase on 2022-10-05 13:34:22
Back to normal now.

Thanks
Title: Re: World-Map-SMP
Post by: paregistrase on 2023-02-02 19:20:38
Hi @regor

Are there any options to make the "informative pop-up"  between Prefer nowplaying and Follow selected track (playlist) only show up the first time.

Is a bit annoying close it every time I change the display mode in Bio
Title: Re: World-Map-SMP
Post by: regor on 2023-02-02 20:02:04
Hi @regor

Are there any options to make the "informative pop-up"  between Prefer nowplaying and Follow selected track (playlist) only show up the first time.

Is a bit annoying close it every time I change the display mode in Bio
Nope, but makes sense. Will add an option to hide such messages.
Title: Re: World-Map-SMP
Post by: regor on 2023-02-03 10:23:08
Added, look for it in some hours on github. There is a setting to disable it, both popups, the informative one when changing it on BIO and the input popup when doing it on World Map.

(you will probably need to update all my scripts to the latest on github, and since Wine always give so much problems with SMP... better you make backups!)
Title: Re: World-Map-SMP
Post by: paregistrase on 2023-02-03 16:45:14
Added, look for it in some hours on github. There is a setting to disable it, both popups, the informative one when changing it on BIO and the input popup when doing it on World Map.

(you will probably need to update all my scripts to the latest on github, and since Wine always give so much problems with SMP... better you make backups!)

I update them often. You code a lot  :P . Happily, I have not had new problems (fingers crossed)

Thanks.
Title: Re: World-Map-SMP
Post by: regor on 2023-02-03 17:25:26
Added, look for it in some hours on github. There is a setting to disable it, both popups, the informative one when changing it on BIO and the input popup when doing it on World Map.

(you will probably need to update all my scripts to the latest on github, and since Wine always give so much problems with SMP... better you make backups!)

I update them often. You code a lot  :P . Happily, I have not had new problems (fingers crossed)

Thanks.
Great :) Will have it in mind, to not upload partial updates then!
Title: Re: World-Map-SMP
Post by: paregistrase on 2023-02-03 18:38:06
Great :) Will have it in mind, to not upload partial updates then!

Touché.
Title: Re: World-Map-SMP
Post by: regor on 2023-02-15 19:47:46
New release:
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.4.0
Title: Re: World-Map-SMP
Post by: regor on 2023-02-22 19:47:28
New release:
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.5.0

Fixes all instances of weird chars on Wine. Fonts are now configurable globally.
Title: Re: World-Map-SMP
Post by: regor on 2023-03-04 11:02:19
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.6.0

Quote
## [2.6.0] - 2023-03-04
### Added
### Changed
- UI: disabling the panel now shows the world map background (instead of just the filling color).
- Internal code cleanup of menus.
### Removed
### Fixed
- Console: logging of null value not working properly (totally irrelevant except for debug purposes).
Title: Re: World-Map-SMP
Post by: regor on 2023-05-08 14:36:46
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.8.0

v2.8.0 - Package installation
Quote
## [2.8.0] - 2023-05-08
### Added
- UI: new option to set the frequency at which the panel is refreshed after tracks change. Now set to 1000 ms by default. This avoids refreshing the panel when selection changes faster than such value (for ex. while scrolling the library), only updating the panel once afterwards.
- Package: new installation method as package.
### Changed
- Console: multiple improvements when logging to file for FbMetadbHandle, FbMetadbHandleList, Error and unknown instances (totally irrelevant except for debug purposes).
- Console: menu entries are no longer logged to console after clicking.
- Helpers: updated helpers.
### Removed
### Fixed

Script should be installed as package, using the package manager at the Spider Monkey Panel Configuration window. Old method is still supported anyway.
Title: Re: World-Map-SMP
Post by: regor on 2023-06-29 13:55:59
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.8.2

Quote
[2.8.2] - 2023-06-27
Added
Changed

    Tags: improved country names display in some cases (with shorter names).
    Data: updated default database.
    Helpers: updated helpers.

Removed
Fixed

    Tags: fix alternate country names in some cases.
    Biography Integration: fix locale tag not updating properly in some cases since 2.8.1.
    UI: script version number.

[2.8.1] - 2023-05-16
Added
Changed

    Biography Integration: optimized processing when Bio Panel notifies tags multiple times, updating just the first time per track.

Removed
Fixed
Title: Re: World-Map-SMP
Post by: regor on 2023-06-29 21:45:01
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.8.3
Title: Re: World-Map-SMP
Post by: regor on 2023-07-28 22:39:54
https://github.com/regorxxx/World-Map-SMP/releases/tag/v2.9.0
Quote
[2.9.0] - 2023-07-28
Added
Changed

    Configuration: database now uses album artist by default instead of artist (file translation is done automatically).
    UI: improvements to panel updating when changing selection or updating tags, ensuring panel does not update unnecessarily.
    UI: locale values are cache during the session, to be reused in case tags, Bio or JSON don't have a match.
    Helpers: updated helpers.

Removed
Fixed

    Fix for non standard hyphen chars on path names.
Title: Re: World-Map-SMP
Post by: regor on 2023-09-13 18:51:14
v3.0.0 - Statistics mode
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.0.0

Quote
[3.0.0] - 2023-09-13
Added

    Statistics: added statistics mode which can display multiple stats according to the library and database in charts. See Statistics-Framework-SMP.

Changed

    Helpers: updated helpers

Removed
Fixed

    Name replacers not being used at some stages of the code (it probably did not affect anything though).

(https://github.com/regorxxx/World-Map-SMP/assets/83307074/1535cc57-320d-49b0-a987-90132d16bd4c) (https://github.com/regorxxx/World-Map-SMP/assets/83307074/0d1d2fb0-8940-4b79-b48f-00c12f983286)
Title: Re: World-Map-SMP
Post by: Koshingg on 2023-09-18 18:57:49
I have this error:

Error: Spider Monkey Panel v1.6.1-mod (World Map: World Map v3.0.0 by XXX)
getCountryISO is not defined

File: world_map.js
Line: 274, Column: 19
Stack trace:
  @world_map.js:274:19
  @world_map.js:271:24
  fireEvents/</<@callbacks_xxx.js:149:37
  fireEvents/<@callbacks_xxx.js:145:30
Everything was ok until now (this error appears since the last update, it seems). I noticed that it happens when I select a track that has the LOCALE LAST.FM tag. If the file doesn't have the LOCALE LAST.FM tag, the error doesn't appear :)
Title: Re: World-Map-SMP
Post by: regor on 2023-09-18 22:03:20
I have this error:

Error: Spider Monkey Panel v1.6.1-mod (World Map: World Map v3.0.0 by XXX)
getCountryISO is not defined

File: world_map.js
Line: 274, Column: 19
Stack trace:
  @world_map.js:274:19
  @world_map.js:271:24
  fireEvents/</<@callbacks_xxx.js:149:37
  fireEvents/<@callbacks_xxx.js:145:30
Everything was ok until now (this error appears since the last update, it seems). I noticed that it happens when I select a track that has the LOCALE LAST.FM tag. If the file doesn't have the LOCALE LAST.FM tag, the error doesn't appear :)

Your error is technically impossible. Since it says a function doesn't exist, but it exists xd

Is it installed as package or as script file?
Then, in both cases, check where the script/package is, and look for ".\main\world_map\world_map_tables.js". At line 54 there should be:
Code: [Select]
function getCountryISO(country) {
Title: Re: World-Map-SMP
Post by: Koshingg on 2023-09-18 22:27:33
It's installed as a script file. I'll come back in 10-12 hours when I'll have access to my laptop and I'll let you know how things are working also with the playlist manager
Title: Re: World-Map-SMP
Post by: Koshingg on 2023-09-19 11:38:53
Eventually everything is ok. I installed it again as package and then as script file, 3 or 4 times and then that error has disappeared :)
I don't know if it's still useful but I'll answer your question, anyway. In world_map_tables.js I had this:
Title: Re: World-Map-SMP
Post by: regor on 2023-09-19 11:52:52
Eventually everything is ok. I installed it again as package and then as script file, 3 or 4 times and then that error has disappeared :)
I don't know if it's still useful but I'll answer your question, anyway. In world_map_tables.js I had this:
Somehow you had an old file version, as I expected. The reinstall fixed it.
Title: Re: World-Map-SMP
Post by: regor on 2023-09-25 21:56:49
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.1.0
Quote
[3.1.0] - 2023-09-25
Added
Changed

    UI: tooltip now shows region and continent for the selected country.
    Helpers: updated helpers.

Removed
Fixed
Title: Re: World-Map-SMP
Post by: Montchenot on 2023-10-08 16:31:27
Hi almighty Regor!

May I ask for some kind of management of multiple values (1st) and layers (2nd), please?
I tag %origin-artist% and %origin-composer%, which includes some historical values such as "Constantinople; Byzantine Empire" or "Kingdom of Bohemia", and also %iso3166-composer% with the 3-letter code for the present day country that's in place. I'd be happy with a toggle for artists/composers. Or maybe I'd just try two panels within tabs?

BTW, I can't seem to properly config your script to read my tags. I'm trying different editions in your javascript. Can you point me to the right line, please? (3rd request!)

Regards!
M.
Title: Re: World-Map-SMP
Post by: Montchenot on 2023-10-12 04:49:29
While I'm still trying to properly set up your map, I'm already wishing a timeline script. Maybe an elastic one, which would show greater detail for shorter scales, maybe always showing the five or so composers most represented (by tracks) in each library for the shown period of time - thus you would have a time-navigation thingy along with this space-navigation means
Title: Re: World-Map-SMP
Post by: regor on 2023-10-15 11:45:42
Quote
May I ask for some kind of management of multiple values (1st) and layers (2nd), please?
I tag %origin-artist% and %origin-composer%, which includes some historical values such as "Constantinople; Byzantine Empire" or "Kingdom of Bohemia", and also %iso3166-composer% with the 3-letter code for the present day country that's in place. I'd be happy with a toggle for artists/composers. Or maybe I'd just try two panels within tabs?
That can be solved with multiple panels, each one pointing to different tags. See below. Adding layers would be unnecessarily complex.

Hi almighty Regor!
TW, I can't seem to properly config your script to read my tags. I'm trying different editions in your javascript. Can you point me to the right line, please? (3rd request!)

Regards!
M.
Historical values are not supported, since they don't have a coordinate associated on the world map. Unless they happen to match the current country name (your ISO code).

X

Open the properties panel and change the first tag to:
Code: [Select]
$meta(locale last.fm,$sub($meta_num(locale last.fm),1))
->
Code: [Select]
%iso3166-composer%

The second one is for writing, which you may leave as is, since you don't want your manually added tags to be overwritten.

As an example, I have copied a bob marley track and added the default locale tag with a ISO code for Spain. You can see that's used on the map fine. If you put there Spain, it would work the same. Both ISO codes and country names are supported.

X

Note current version will display the ISO code on the header (instead of the associated country name like my image), it will be changed on next version. Didn't noticed it since I didn't use ISO codes directly before.

Will also add a direct menu entry to edit the tags for reading/writing.

Quote
While I'm still trying to properly set up your map, I'm already wishing a timeline script. Maybe an elastic one, which would show greater detail for shorter scales, maybe always showing the five or so composers most represented (by tracks) in each library for the shown period of time - thus you would have a time-navigation thingy along with this space-navigation means
That sounds interesting, for sure.
Title: Re: World-Map-SMP
Post by: regor on 2023-10-15 12:25:41
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.3.0
Quote
[3.3.0] - 2023-10-15
Added

    UI: menu entries to edit locale tags for writing and reading from files. Old properties will be lost on updating.

Changed

    UI: better compatibility when locale tag contains the ISO 3166 3-letter code, instead of a country name. Header now displays the country name associated instead of the ISO code.
    UI: reworked menus associated to file tags, now merged on the same submenu.

Removed
Fixed
Title: Re: World-Map-SMP
Post by: regor on 2023-10-21 12:42:06
While I'm still trying to properly set up your map, I'm already wishing a timeline script. Maybe an elastic one, which would show greater detail for shorter scales, maybe always showing the five or so composers most represented (by tracks) in each library for the shown period of time - thus you would have a time-navigation thingy along with this space-navigation means
See this:
https://hydrogenaud.io/index.php/topic,124935.msg1034372.html#msg1034372
Title: Re: World-Map-SMP
Post by: Montchenot on 2023-10-22 19:05:35
Thanks, Regor!

I'd like to ask you to handle multiple values for a single track, such as DEU & GBR for Händel, SVN & AUT for Hugo Wolf, DZA & FRA for Hector Zazou. (I do see that you show multiple values for a selection of multiple tracks.)

Also, please allow ENG, SCT, NIR and WLS.

Still trying your timeline, for which I also have values for birth and death, for a view like https://en.wikipedia.org/wiki/List_of_classical_music_composers_by_era

Regards,
M.
Title: Re: World-Map-SMP
Post by: regor on 2023-10-22 23:31:52
Quote
I'd like to ask you to handle multiple values for a single track, such as DEU & GBR for Händel, SVN & AUT for Hugo Wolf, DZA & FRA for Hector Zazou. (I do see that you show multiple values for a selection of multiple tracks.)
This is not a trivial change, the JSON database should also save multiple values.Tagging would not work properly in such case (which would overwrite 2 values). Finally it goes against the current design where only a single value of the locale tag is used, since it may be filled with city, region, etc. What you ask would require a code logic to differentiate between having multiple ISO codes or country names and just garbage. Or hardcoding some kind of separator like '|' (thus multivalue tags must be converted to DEU|GBR). Will look into it but don't expect it.

Thanks, Regor!
Also, please allow ENG, SCT, NIR and WLS.
Regards,
M.
I will not add any ISO 3 value, the table used is the official one and will not start adding values just because someone wants them, because that would have no end for me.

But feel free to do it by yourself at 'world_map_tables.js' file. You need to add the regions at isoMap, isoCoordinates and alpha3toAlpha2 variables. Or if you provide me the data, I can do it on next update (I just don't want to do the work looking for the coordinates). Example: (give this to me for every region)

Code: [Select]
['afghanistan','AFG']
['AFG', [33,65]] // latitude, longitude
['AFG','AF']

EDIT: well hardcoding a separator like '|' works fine and was somewhat trivial. It can then be enabled/disabled easily with a new setting.
X
Title: Re: World-Map-SMP
Post by: regor on 2023-11-15 15:45:53
v3.4.0 - Multi-value tags support + country shapes customization
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.4.0

Quote
[3.4.0] - 2023-11-15
Added

    UI: country shapes are now configurable: color and transparency. Setting a custom color uses masking under the hood, which may have a different performance impact than the 'default' mode (which just loads the country shapes with a fixed color).
    UI: option to only show the flag at header (without requiring the country name).
    Tags: setting to enable multi-value tags support, when there are multiple ISO values within the same tag separated by '|'. For ex. 'FRA|GBR'.
    Auto-update: added -optional- automatic checks for updates on script load; enabled by default. Compares version of current file against GitHub repository. Manual checking can also be found at the settings menu. Setting may also be globally switched at '[FOOBAR PROFILE FOLDER]\js_data\presets\global\globSettings.json', by changing 'bAutoUpdateCheck'. It will apply by default to any new installed script (previous scripts will still need to be manually configured to change them).
    Added setting to disable popups related to features not being supported by the OS (at startup). Found at '[FOOBAR PROFILE FOLDER]\js_data\presets\global\globSettings.json', by changing 'bPopupOnCheckSOFeatures'. By default popups are always shown. This setting will never be exposed within foobar, only at this file.

Changed

    UI: color menu entries now show the color name along the menu entry.
    Helpers: updated statistics mode with new graphs and features from the latest Statistics-Framework-SMP version.
    Helpers: replaced library chroma.js with own version.
    Helpers: updated helpers.

Removed
Fixed

    UI: country layer not painted at right position after changing map type in some cases; it was only updated properly after playback/selection changed. Now is also reset after the setting is changed.


Spoiler (click to show/hide)
Title: Re: World-Map-SMP
Post by: regor on 2023-11-24 19:21:16
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.5.0
Quote
[3.5.0] - 2023-11-24
Added

    Statistics: click on point to create playlists by selected key and data mode
    Statistics: added point statistics.
    Statistics: added buttons to statistics mode. Menus are now opened via buttons, no longer with R. click. There is also a button to directly exit statistics mode.
    Statistics: added sorting options according to Y axis.
    Statistics: colors are now forced with a scheme based on panel colors.
    UI: transparency input menu entries now have a hint about which value is opaque and which transparent.

Changed

    Statistics: after changing data type, number of values shown is kept if possible.
    UI: Improved responsiveness of repaint in some instances after changing settings or exiting statistics mode.
    Helpers: updated helpers.
    Console: reduced max log file size to 1 MB.

Removed
Fixed

    Crash on some cases using country masks.

X
Title: Re: World-Map-SMP
Post by: regor on 2023-12-11 16:45:13
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.8.0
Quote
3.8.0 - 2023-12-11
Added
Changed

    UI: replaced all background settings with a new implementation, equal to the one found at Timeline-SMP, which allows to use covers, colors, gradients, etc.
    Helpers: updated helpers.

Removed

    UI: old background settings (no longer working).

Fixed

    UI: panel not being refreshed when globally disabling/enabling the panel.
    Crash due to missing helpers.

Spoiler (click to show/hide)
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-23 13:55:51
I don't know if I did something wrong but I have a problem.

I merged the locale file tags to the JSON database like we talked in the wrapped post, and put the write tags to write to json.

The problem is that now every new artist that didn't have locale tag is from Spain. Even when the biography panel load world map continues to show Spain.

I checked and the locale last.fm tags are well assigned, and the new artist doesn't have any.

I delete the world map data from js_data and tried again and the same happened.

X
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-23 14:28:39
Once corrected that with shift+L click in map now France is stuck for new artists
Title: Re: World-Map-SMP
Post by: regor on 2024-02-23 23:43:41
That's probably an error on your config, related to bio integration or the selection mode.

I mean, that's the most basic part of the package and it has been working fine for years.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 06:14:29
That's probably an error on your config, related to bio integration or the selection mode.

I mean, that's the most basic part of the package and it has been working fine for years.

And until now for me too. All scripts are from yesterday (for wrapped test), the bio panel is the same, omly thing new is that I vheck write in json instead of in the files and make use of db meging the file tags in it.

Ah, the world map is from the zip, not the package in release
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 09:39:06
I delete all scripts, all data in js_data and package data for bio. Installed all again, and make sure that notify tags is enabled. Even recreate the library but nothing, no longer works like before.

There is another data stored besides in package-data and js_data?

What is necessary to start fresh with all scripts?
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 09:40:29
Check the things I have pointed to, neither json database nor merging tags affect it.

There is no other data.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 11:31:10
Check the things I have pointed to, neither json database nor merging tags affect it.

There is no other data.

In the UI all seems to be fine The integration said that with the bio version works, the menu is selected, notify tags is true in bio, but world map still doesn't change.. Only change when there is a locale tag. How can I check if  it is installed correctly?

If I select write to file when playing, at play time update the tag and show the country. Without playing the same as write as json, only with files with locale Update the tag too in select mode when founded in is present. If not default to US.
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 12:09:55
Do you have the same selection mode on both panels?

It doesn't default to anything, is just displaying and old value.

EDIT: and please write me in spanish too -within a spoiler tag- because I don't really understand some of your phrases.
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 12:24:56
It's a bio bug. I have told you multiple times to check the selection mode matches, just tested it and it doesn't match.

The bio panel is just changing the selection mode randomly while playing tracks, which is not my fault.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 12:44:53
It's a bio bug. I have told you multiple times to check the selection mode matches, just tested it and it doesn't match.

The bio panel is just changing the selection mode randomly while playing tracks, which is not my fault.

It is the same in both. And change in both when it is changed in bio or world
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 12:45:48
It's a bio bug. I have told you multiple times to check the selection mode matches, just tested it and it doesn't match.

The bio panel is just changing the selection mode randomly while playing tracks, which is not my fault.

It is the same in both. And change in both when it is changed
No. Have tested it. No. Enable the warnings when it changes and you will see it changes randomly when playing tracks.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 13:21:28
It's a bio bug. I have told you multiple times to check the selection mode matches, just tested it and it doesn't match.

The bio panel is just changing the selection mode randomly while playing tracks, which is not my fault.

It is the same in both. And change in both when it is changed
No. Have tested it. No. Enable the warnings when it changes and you will see it changes randomly when playing tracks.

I don't have any pop-up when playing, it show up when ichanged the display mode but not at playing

I made a video.
when Ichanged the display mode show the pop-up
But playing doesn't change, as you see the panels follow the selection,

Another short video showing the configuration of both panels playing. Both stay at follow selected.

Maybe you test with lyrics mode on, that only allow prefer playing in bio?

I have it off

The long video show too how the panel default to US when there is locale or the bio panel doesn't have founded or born.

And this is in write to file tag in world map.

Changing to write to json world map only change when there is a locale tag.
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 14:03:20
There is no fallback country. Never has been.
I have been using the JSON for years without a problem.

You show a problem with United states being used, but in fact bio reports Beyond Horizons as an USA band. The panel can only show whatever you have at the tag, by bio or on JSON. There is no way it shows a default country.

Also what you report is simply impossible to be related to JSON usage, since setting it to "write tags to JSON" only writes tags to JSON. Only that. There are only 2 places in all the code related to that setting, and it only writes whatever the panel gets to the JSON.

So your tag problem , if any, comes from other place. If you set it to not save tags, nothing changes. If you have problems displaying a track without country, then it should be the same in any of the modes.

I have tested it and bio did change the selection mode many times in 1.4.2, see its thread. Reverted the commit Wil-b did, and works fine.
Title: Re: World-Map-SMP
Post by: regor on 2024-02-24 14:12:32
And here you got another example of BIO reporting Rush as an USA band, when they are from Canada (which is what I got on my JSON).

Whatever it's going on there, has nothing to do with my script.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-02-24 14:43:50
There is no fallback country. Never has been.
I have been using the JSON for years without a problem.

You show a problem with United states being used, but in fact bio reports Beyond Horizons as an USA band. The panel can only show whatever you have at the tag, by bio or on JSON. There is no way it shows a default country.

Also what you report is simply impossible to be related to JSON usage, since setting it to "write tags to JSON" only writes tags to JSON. Only that. There are only 2 places in all the code related to that setting, and it only writes whatever the panel gets to the JSON.

So your tag problem , if any, comes from other place. If you set it to not save tags, nothing changes. If you have problems displaying a track without country, then it should be the same in any of the modes.

I have tested it and bio did change the selection mode many times in 1.4.2, see its thread. Reverted the commit Wil-b did, and works fine.

To avoid interference, I deleted all locale tags in the files to test. One of the artist is from US (coincidence) but the others not, and all show US.

But anyway, I have Spider Monkey Panel v1.6.1-mod ({3A8A11D5-EAB3-4F0A-BFC0-5BB4CF450A7E}: Biography v1.4.2 by WilB): initialized in 347 ms.

This version have the changes that you said?
Title: Re: World-Map-SMP
Post by: regor on 2024-02-29 00:51:27
https://github.com/regorxxx/World-Map-SMP/releases/tag/v3.10.0

Quote
3.10.0 - 2024-02-28
Added

    Configuration: added COMPOSER to the list of global tags.
    Configuration: added LOCALE LAST.FM to the list of global tags.
    Configuration: added integrity checks to global user settings files, found at '[FOOBAR PROFILE FOLDER]\js_data\presets\global[...].json'. In particular queries are now check to ensure they are valid and will throw a popup at init otherwise. Other settings are check to ensure they contain valid values too.
    Configuration: expanded user configurable file at '[FOOBAR PROFILE FOLDER]\js_data\presets\global\globSettings.json' with a new setting to output to console profiling logs at script init. They work globally. Disabled by default.

Changed

    Configuration: changed the remove duplicates bias to prefer tracks with higher play-counts and positive feedback tag (love/hate).
    UI: optimized repainting to use less resources on statistics mode.
    UI: highly optimized map images (which should now use less resources).
    Helpers: updated helpers.
    Console: improved log file formatting on windows text editors which parse new lines only with CR+LF instead of LF.
    Code cleanup.

Removed
Fixed

    Biography Integration: crash applying integration in some cases.
    Minor fixes
Title: Re: World-Map-SMP
Post by: regor on 2024-03-04 11:06:45
Next version will have an easily configurable 'Memory mode' which changes different settings to adjust RAM usage.
Title: Re: World-Map-SMP
Post by: paregistrase on 2024-03-04 11:23:02
Next version will have an easily configurable 'Memory mode' which changes different settings to adjust RAM usage.

With the background options in none and only circles, I hadn't had any error today. Fingers cross