How to view the add-on assets that are used in a duf file?

hi I want to send a duf file to a friend. I have quite a few daz assets installed and I think I used bits of this and that in my duf scene file. How do I view all of the add-on assets I used so I can tell my friend what she needs to have installed?  Thanks

Comments

  • Faeryl WomynFaeryl Womyn Posts: 3,747

    Good question, I wouild like to know that as well.

  • Richard HaseltineRichard Haseltine Posts: 109,732

    If the content comes from the Daz store and if your friend's copy of DS has been online (Connect>Log In) then DS will tell them which products they own but don't have isntalled are needed and will offer to install them.

    If the contetn used has metadata then you can download this script (using the link above the code, the script name) and open it in the ScriptIDE pane, click Execute, and get a list of the products used: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products_used/start

  • TaozTaoz Posts: 10,307

    If the content comes from the Daz store and if your friend's copy of DS has been online (Connect>Log In) then DS will tell them which products they own but don't have isntalled are needed and will offer to install them.

    If the contetn used has metadata then you can download this script (using the link above the code, the script name) and open it in the ScriptIDE pane, click Execute, and get a list of the products used: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products_used/start

    Is that the one which scans the Scene in DS? I've tried it before and didn't find it very reliable. Just gave it another try and this time I got an error message at line 931:

    // Initialize; capture the title
    oProductInfo = { "title" : oProduct.title };

    I've been experimenting with a simple .duf scanner which picks up all references to the /data/ and /runtime/ paths (don't know if there are other relevant paths to scan for), and filters to get rid of file names and other unecessary clutter. If anyone wants to try it (Windows, NET 4) it can be downloaded here:

    https://taosoft.dk/temp/dufsc-a501.zip

    Note that the .duf files currently need to be uncompressed otherwise you get nothing when scanning. I've tried several compression libraries but not found any way yet to decompress the .duf files automatically (looks like .duf files have a unique header which they can't handle by default). WinRAR can uncompress them, other zip programs can probably too but I don't know which ones.

     

    2019-07-24_02-01-14.png
    697 x 700 - 100K
  • Richard HaseltineRichard Haseltine Posts: 109,732
    Taoz said:

    If the content comes from the Daz store and if your friend's copy of DS has been online (Connect>Log In) then DS will tell them which products they own but don't have isntalled are needed and will offer to install them.

    If the contetn used has metadata then you can download this script (using the link above the code, the script name) and open it in the ScriptIDE pane, click Execute, and get a list of the products used: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products_used/start

    Is that the one which scans the Scene in DS? I've tried it before and didn't find it very reliable. Just gave it another try and this time I got an error message at line 931:

    // Initialize; capture the title
    oProductInfo = { "title" : oProduct.title };

    I've been experimenting with a simple .duf scanner which picks up all references to the /data/ and /runtime/ paths (don't know if there are other relevant paths to scan for), and filters to get rid of file names and other unecessary clutter. If anyone wants to try it (Windows, NET 4) it can be downloaded here:

    https://taosoft.dk/temp/dufsc-a501.zip

    Note that the .duf files currently need to be uncompressed otherwise you get nothing when scanning. I've tried several compression libraries but not found any way yet to decompress the .duf files automatically (looks like .duf files have a unique header which they can't handle by default). WinRAR can uncompress them, other zip programs can probably too but I don't know which ones.

    Do you have the CMS running or do you get the complaint about a valid PostgreSQL connection on launching DS?

  • TaozTaoz Posts: 10,307
    Taoz said:

    If the content comes from the Daz store and if your friend's copy of DS has been online (Connect>Log In) then DS will tell them which products they own but don't have isntalled are needed and will offer to install them.

    If the contetn used has metadata then you can download this script (using the link above the code, the script name) and open it in the ScriptIDE pane, click Execute, and get a list of the products used: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products_used/start

    Is that the one which scans the Scene in DS? I've tried it before and didn't find it very reliable. Just gave it another try and this time I got an error message at line 931:

    // Initialize; capture the title
    oProductInfo = { "title" : oProduct.title };

    I've been experimenting with a simple .duf scanner which picks up all references to the /data/ and /runtime/ paths (don't know if there are other relevant paths to scan for), and filters to get rid of file names and other unecessary clutter. If anyone wants to try it (Windows, NET 4) it can be downloaded here:

    https://taosoft.dk/temp/dufsc-a501.zip

    Note that the .duf files currently need to be uncompressed otherwise you get nothing when scanning. I've tried several compression libraries but not found any way yet to decompress the .duf files automatically (looks like .duf files have a unique header which they can't handle by default). WinRAR can uncompress them, other zip programs can probably too but I don't know which ones.

    Do you have the CMS running or do you get the complaint about a valid PostgreSQL connection on launching DS?

    Everything else is working normally, never have problems with the CMS or PostgreSQL. 

  • TaozTaoz Posts: 10,307
    edited July 2019

    BTW, I had have it working before but it didn't seem to report the scene content correctly (things were missing AFAIR) which is what I meant by unreliable.   

    Just tried it on another scene (DS 4.10.0.123), same problem. But it actually works on 4.11.0.171 Beta on another PC, and seems to report correctly, at least with that scene. Will do some more tests.

    Post edited by Taoz on
  • PraxisPraxis Posts: 276
    edited July 2019
    Taoz said:

    ... I've tried several compression libraries but not found any way yet to decompress the .duf files automatically (looks like .duf files have a unique header which they can't handle by default). WinRAR can uncompress them, other zip programs can probably too but I don't know which ones.

    The header signature in a compressed .duf is 0x1F 0x8B which identifies it as gzip format.

    These functions from zlib v127 work well for me:

    • zlibVersion
    • gzopen
    • gzread
    • gzeof
    • gzclose
    • gzerror
    • uncompress

     

    Post edited by Praxis on
  • TaozTaoz Posts: 10,307
    Praxis said:
    Taoz said:

    ... I've tried several compression libraries but not found any way yet to decompress the .duf files automatically (looks like .duf files have a unique header which they can't handle by default). WinRAR can uncompress them, other zip programs can probably too but I don't know which ones.

    The header signature in a compressed .duf is 0x1F 0x8B which identifies it as gzip format.

    These functions from zlib v127 work well for me:

    • zlibVersion
    • gzopen
    • gzread
    • gzeof
    • gzclose
    • gzerror
    • uncompress

     

    Great, I'll take a look at that. Thanks!

Sign In or Register to comment.