KLU (Kontakt Library Utility) - Version 2

Discussion in 'Kontakt' started by Fred Bloggs, Nov 17, 2023.

  1. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    Thank you :) … I appreciate appreciation :yes:
     
    • Like Like x 1
    • Winner Winner x 1
    • List
  2. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    Just try dropping your whole library folder in the KLU NICNT window. It should see it's not installed and activate the button. You will need your password. When installed, the button text will change to "Uninstall this library".
     
  3. m.sarti

    m.sarti Producer

    Joined:
    Sep 8, 2020
    Messages:
    106
    Likes Received:
    106
    Location:
    USA
    INFINITE THANKS
     
  4. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    You're welcome :)
     
  5. ESSWHY22

    ESSWHY22 Newbie

    Joined:
    Nov 25, 2023
    Messages:
    2
    Likes Received:
    0
    Thank you for the app! When I click "Just change the SNIPD" i get an error:
    Sorry I had a problem doing this - a permission problem maybe?

    my library is on an external drive - intel / monterey / imac
     
  6. clone

    clone Audiosexual

    Joined:
    Feb 5, 2021
    Messages:
    6,807
    Likes Received:
    2,976
    Why don't you reset the permissions and then try, since it seems like you already guess that it is? Use free Permissions Reset2 app and you won't screw anything up like someone might be able to in Terminal. It's even easier than BatChmod. https://ohanaware.com/permissionsreset/. Very helpful App.
     
  7. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    I can't seem to reproduce this behaviour :dunno: You didn't say what error you got exactly, but I'm not getting any at all.
    What I did notice on my Mac Intel running Sonoma, but I guess it must be doing (or rather not doing) it on other systems, is that the SNPID number doesn't change accordingly in the SNPID utilities window unless you hit "Refresh Libs" as it does elsewhere. This is a very minor bug (first one to come to my attention :wink:), that I'll fix in a future update.
    Any other info you could give me would be helpful.
     
  8. ESSWHY22

    ESSWHY22 Newbie

    Joined:
    Nov 25, 2023
    Messages:
    2
    Likes Received:
    0
    Action:
    Load library
    Change SNIPD and press "just change SNIPD"
    get this: https://ibb.co/QY94SdT

    Original SNIPD was 3 chars so wanted to just change that for safety
     
    Last edited: Nov 26, 2023
  9. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    KLU will detect duplicate SNPIDs and not duplicate them, so if it didn't report a problem with the original library SNPID, there was no need to replace it.
    I'm really not sure where your problem comes from. You could try temporarily installing the library on your start-up drive, in the Users/Shared/ folder where they are often stored by default, and try to install it there. If it installs OK, the problem is on your drive, if not, it's the library…
    You can always un-install it with KLU and install it elsewhere after.
     
  10. WasaBi76

    WasaBi76 Newbie

    Joined:
    Nov 28, 2023
    Messages:
    3
    Likes Received:
    0
    Hello,
    First of all thank you to have created this wonderfull tool that helped me so much in the past. Today I tried to install some new libraries.
    Everything went well. Everything is ok in KLU but not appearing in Kontakt 7 library. Cf attached pictures


    [​IMG]
    [​IMG]

    So I tried with the add_library terminal command. here is for one the error "sed: first RE may not be empty" twice then everything run ok.

    here the process :

    sed: first RE may not be empty

    sed: first RE may not be empty

    Password:

    <?xml version="1.0" encoding="UTF-8"?>

    <ProductHints spec="1.0.9">

    <Product version="1">

    <Name>Scarbee Vintage Keys</Name>

    <RegKey>Scarbee Vintage Keys</RegKey>

    <Company>Native Instruments GmbH</Company>

    <Type>Content</Type>

    <PoweredBy>Kontakt</PoweredBy>

    <Icon>kontakt</Icon>

    <Visibility>1</Visibility>

    <AuthSystem>RAS2</AuthSystem>

    <SNPID>H124</SNPID>

    <ProductSpecific>

    <HU>6C70AC13E02414D1A552685A1301D859</HU>

    <JDX>023733942B73318EAEAD914E3981EC68BE72519A2F5738F828A6A028C4E1DBAC</JDX>

    <Visibility type="Number">3</Visibility>

    </ProductSpecific>

    </Product>

    </ProductHints>

    {

    AuthSystem = RAS2;

    ContentDir = "Crucial X9:Kontakt:Scarbee Vintage Keys:";

    HU = 6C70AC13E02414D1A552685A1301D859;

    JDX = 023733942B73318EAEAD914E3981EC68BE72519A2F5738F828A6A028C4E1DBAC;

    Name = "Scarbee Vintage Keys";

    RegKey = "Scarbee Vintage Keys";

    SNPID = H124;

    Visibility = 3;

    }


    Have fun!

    Press Enter to continue...


    Can you help on this ? I don't understand why they don't appear where as scarbee Bass is ok as all the sessions guitarist ones and Chris Heinz are ok. Thank you !
     
  11. TekZ

    TekZ Noisemaker

    Joined:
    Sep 9, 2021
    Messages:
    27
    Likes Received:
    5
    Thanks. I don't know how I missed your v1..But I will look forward to trying this out.
     
  12. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    Errrrr maybe, maybe not ! I have no idea what I'm looking at ! Your "attached pictures are not showing. What terminal command ? What is producing the SED error ?
     
  13. WasaBi76

    WasaBi76 Newbie

    Joined:
    Nov 28, 2023
    Messages:
    3
    Likes Received:
    0
    Hello

    Yes sorry for that. I have noticed that images where missing but I could not edit anymore my post yesterday.

    • here are the links of the images :
    KLU screen 1 : https://ibb.co/PTH4fdN
    KLU Screen 2 : https://ibb.co/yhNTjd1

    • The command "add_library" is from the folder Kontakt Libray Tools (there is the KLU inside but I am not sure it comes form you : https://ibb.co/sJpfsrK
    Il will add the code lines at the end of this text.

    • Interesting : I Noticed that there is no plist files for the missing libraries under /library/preferences : https://ibb.co/vvMgRTm

    • here is the lines code from this command :
    #!/bin/bash
    function folder_dialog()
    {
    local result=$(osascript << EOT
    tell application "Finder"
    activate
    set fpath to POSIX path of (choose folder)
    return fpath
    end tell
    EOT)
    echo "$result"
    }
    # Ask for folder
    lib=$(folder_dialog)
    if [ ! -d "$lib" ]; then
    echo " Invalid Kontakt library path"
    read -p " Press Enter to continue..."
    exit 1
    fi
    # Path must begin with "/Volumes"
    if [[ "$lib" != /Volumes/* ]]; then
    vol=`ls -l /Volumes | grep ' -> /' | awk '{$1=""; $2=""; $3=""; $4=""; $5=""; $6=""; $7=""; $8=""; print $0}' | awk '{$1=$1};1'`
    vol=${vol/ -> \//}
    lib=/Volumes/$vol$lib
    fi
    xml=/var/tmp/kontaktLibraryHints.xml
    find "$lib" -iname "*.nicnt" -o -iname "*_info.nkx" -type f | while read file
    do
    # Extract library version (`.nicnt` only)
    cver=
    if [[ "$file" = *.nicnt ]]; then
    cver=`dd skip=66 count=10 bs=1 if="$file" 2> /dev/null | sed 's/\x00//g'`
    echo $cver | grep '\d\.\d\.\d' > /dev/null
    if [ $? -ne 0 ]; then
    cver=`dd skip=66 count=6 bs=1 if="$file" 2> /dev/null | sed 's/\x00//g'`
    echo $cver | grep '\d\.\d' > /dev/null
    fi
    [ $? -ne 0 ] && cver=
    else
    # Skip `_info.nkx` if `.nicnt` is present
    ldir=`dirname "$file"`
    hasnicnt=`ls "$ldir" | grep -i '.nicnt' | wc -l`
    if [ $hasnicnt -ne 0 ]; then
    continue
    fi
    fi
    # Extract library installation hints XML tree
    # and remove old `.plist` and `.xml` (if present) while getting its name
    awk '/<ProductHints[ >]/, $NF ~ /<\/ProductHints>/' "$file" | LC_ALL=C sed 's/<\/ProductHints>.*/<\/ProductHints>/' | xmllint --format --recover --encode "UTF-8" - > "$xml"
    name=$(xmllint --xpath "string(//Name)" "$xml")
    regkey=$(xmllint --xpath "string(//RegKey)" "$xml")
    plist="/Library/Preferences/com.native-instruments.$regkey.plist"
    xmldist="/Library/Application Support/Native Instruments/Service Center/$name.xml"
    # Check for bad `.nicnt` (improperly hand-made, unofficial)
    grep -i '<HU>' "$xml" > /dev/null
    nohu=$?
    grep -i '<JDX>' "$xml" > /dev/null
    nojdx=$?
    grep -i '<ProductSpecific>' "$xml" > /dev/null
    nops=$?
    # These encryption keys fool Kontakt into believing
    # that library is legit
    if [ $nohu -ne 0 ] && [ $nojdx -ne 0 ]; then
    cp "$xml" "$xml.tmp"
    if [ $nops -ne 0 ]; then
    cat "$xml.tmp" | sed 's/<\/SNPID>/<\/SNPID>| <ProductSpecific>| <HU>6C70AC13E02414D1A552685A1301D859<\/HU>| <JDX>023733942B73318EAEAD914E3981EC68BE72519A2F5738F828A6A028C4E1DBAC<\/JDX>| <Visibility type="Number">3<\/Visibility>| <\/ProductSpecific>/' | tr '|' '\n' > "$xml"
    else
    cat "$xml.tmp" | sed 's/ <Visibility type="Number">/ <HU>6C70AC13E02414D1A552685A1301D859<\/HU>| <JDX>023733942B73318EAEAD914E3981EC68BE72519A2F5738F828A6A028C4E1DBAC<\/JDX>| <Visibility type="Number">/' | tr '|' '\n' > "$xml"
    fi
    rm -f "$xml.tmp"
    fi
    # Integrate into Service Center
    sudo mkdir -p "/Library/Application Support/Native Instruments/Service Center"
    sudo chmod 755 "/Library/Application Support/Native Instruments/Service Center"
    sudo cp "$xml" "$xmldist"
    sudo chmod 755 "$xmldist"
    # Set `ContentDir`
    sudo rm -f "$plist"
    ContentDir=$(echo `dirname "$file"` | tr / :)
    ContentDir=${ContentDir//::/:}
    ContentDir=${ContentDir//::/:}
    sudo defaults write "$plist" ContentDir "${ContentDir#:*:}:"
    # Obtain rest of parameters from extracted XML
    for key in RegKey SNPID Name HU JDX UPID AuthSystem ; do
    val=$(xmllint --xpath "string(//$key)" "$xml")
    if [[ "$val" ]]
    then
    sudo defaults write "$plist" $key "$val"
    fi
    done
    # Write `ContentVersion`
    if [ "$cver" != "" ]; then
    sudo defaults write "$plist" ContentVersion $cver
    fi
    # Get `Visibility`
    vis=$(xmllint --xpath "string(//ProductSpecific/Visibility)" "$xml")
    sudo defaults write "$plist" Visibility -int $vis
    # Review
    cat "$xml"
    defaults read "$plist"
    rm -f "$xml"
    echo
    done
    echo " Have fun! "
    read -p " Press Enter to continue..."

    config :
    macbook pro M1 pro
    Logic pro x 10.8
    Kontakt 7.7.1



    Thank you,
    Lil
     
    Last edited: Nov 29, 2023
  14. Fred Bloggs

    Fred Bloggs Platinum Record

    Joined:
    Feb 19, 2013
    Messages:
    343
    Likes Received:
    199
    I am not responsible for what is in that folder, it's not from me but from "HCISO". The KLU 1.0.4 in there should not be used by ANYBODY ! It's buggy and is not even the last release of KLU 1 ! If you are going to use KLU, use the one posted here exclusively, unless specifically posted by ME. So before we start peeling plists and XML files, start by removing by the System Preferences plist and the service center XML file and eventually the user plist if there is one (your screen shot doesn't say), then try a new clean install with the KLU posted at the top of this thread. You can report back then. At least I'll have some idea of what you've done… OK ?
     
  15. vignmusic

    vignmusic Member

    Joined:
    Mar 27, 2016
    Messages:
    162
    Likes Received:
    10
    do we have a windows version of this?
     
  16. belalugosi

    belalugosi Producer

    Joined:
    Jun 6, 2011
    Messages:
    212
    Likes Received:
    76
    @WasaBi76:

    Scarbee Vintage keys is an Official NI library and, the genuine NICNT file, has SNPID 422.
    The NICNT also includes much more infos than a third party library and does contain the (embedded) walpaper.
    You can't substitute NICNT files from official libraries.
    BTW: RuTracker does have the right library...
     
  17. krameri

    krameri Platinum Record

    Joined:
    Jul 20, 2014
    Messages:
    439
    Likes Received:
    289
    He made it for MacOS only, and it seems that he doesn't intend to make a Windows version.
     
  18. krameri

    krameri Platinum Record

    Joined:
    Jul 20, 2014
    Messages:
    439
    Likes Received:
    289
    I have a library installed that I can't seem to change the name of, or anything of that nature. In the image below, it's the library in the middle "Kontakt". The library works fine, but if I add a bunch of other libraries I'll forget what that one is really called. I used KLU 1.0.4 first and that's what installed it, now I'm using the latest. I can't delete it or update it it seems. I am a n00b, so I'm probably missing something.

    upload_2023-11-29_15-46-36.png


    In the image below, I have two libraries showing in KLU at the bottom. I want to keep the library named "Frozen Piano". I want to delete the "Herman_Samples_Frozen_Piano library.

    upload_2023-11-29_16-9-24.png

    Thank you for this awesome tool!
     
  19. Reno87

    Reno87 Newbie

    Joined:
    Nov 4, 2023
    Messages:
    15
    Likes Received:
    2
    Hi there!

    I'm new on Macos and found this toold to load my Kontakt libraries but I'm finding it a bit complicated to make it work.

    On Windows I used a tool where I told the external SSD where I have all my libraries and it automatically load all of them on Kontakt, but don't know how to do that here. Need to be done one by one?

    When I launch the 2.0 Klu version I receive a prompt Window saying I don't have a Service Center folder amd that is going to be created, but I can't find anything but the NICNT tool to make libraries one by one as I understand.

    Thanks in advance and sorry for asking but I'm totally lost here.
     
  20. vivvo

    vivvo Newbie

    Joined:
    Feb 7, 2013
    Messages:
    9
    Likes Received:
    1
    Location:
    Spain
    Thank you very much for your work. It is really a great tool!!.

    Regards
     
Loading...
Similar Threads - (Kontakt Library Utility) Forum Date
KLU (Kontakt Library Utility) Kontakt Dec 19, 2022
Rast Sound releases Ice Element free sample library (Kontakt & Wav) Software News Dec 27, 2022
Adding 3rd Party Library's (Kontakt 7) Kontakt Oct 16, 2022
Trouble adding guitar library[(kontakt 5.8/6)mac] Software Jul 23, 2019
P E R C + (Kontakt 5.1) library for charity - trial version available NOW! Software News Sep 21, 2014
Loading...