Forum

Results 1 to 7 of 7
  1. #1
    Join Date
    April 2016
    Posts
    18

    .ts3_plugin not extracting dlls at the root level

    According to the TeamSpeak 3 package installer readme:

    http://forum.teamspeak.com/threads/6...kage-Installer
    The root level of this package will be extracted into the TeamSpeak 3 Client
    root folder, excluding package.ini.
    I have four DLLs in the root directory of my .ts3_plugin file. To use the format from the readme, they are:

    Code:
    [ts3websitepreview.ts3_plugin]
    package.ini
    iconv.dll
    libcurl.dll
    libxml2.dll
    zlib1.dll
    plugins
      ts3websitepreview.dll
    But it's only copying ts3websitepreview.dll. Am I doing something wrong?
    Last edited by NobleUplift; May 7th, 2016 at 10:49 PM.

  2. #2
    Join Date
    June 2008
    Posts
    17,809
    It's right the content the root get's extracted. But you need to extract it so, that the files are extracted into the plugins folder.

    Only the plugins folder and package.ini belong into the root level.
    DLLs and sub folder belong into the plugins folder.

    As an example download this addon and then open it with winrar, winzip or 7zip.
    http://addons.teamspeak.com/director...ul-Plugin.html
    Last edited by dante696; May 4th, 2016 at 01:03 PM.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    September 2012
    Posts
    6,076
    In reality only the following folders will be extracted, any other content is ignored:
    • gfx
    • plugins
    • sound
    • styles
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  4. #4
    Join Date
    April 2016
    Posts
    18
    Where do I put DLL dependencies for the plugin then? I tried the structure:

    Code:
    [ts3websitepreview.ts3_plugin]
    package.ini
    plugins
      ts3websitepreview
        iconv.dll
        libcurl.dll
        libxml2.dll
        zlib1.dll
      ts3websitepreview.dll
    But it says the DLLs are missing. Can I specify a search path for the DLL in the plugin?

    I also tried:

    Code:
    [ts3websitepreview.ts3_plugin]
    package.ini
    plugins
      iconv.dll
      libcurl.dll
      libxml2.dll
      zlib1.dll
      ts3websitepreview.dll
    But then the four dependencies show up as plugins that TeamSpeak was unable to load, and it still doesn't load the plugin.

  5. #5
    Join Date
    September 2012
    Posts
    6,076
    You could statically link them into your DLL, or delay load your dependencies.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  6. #6
    Join Date
    April 2016
    Posts
    18
    This is my attempt at delay-loading dependencies as of yesterday:

    https://github.com/NobleUplift/TeamS...eview/plugin.c

    I made my ts3websitepreview.ts3_plugin extract the DLLs to plugins/ts3websitepreview/ and I removed the DLLs from the root folder of my TeamSpeak 3 installation, but now I'm getting:

    Code:
    ts3client_win32.exe - System Error
    The program can't start because libcurl.dll is missing from your computer. Try reinstalling the program to fix this problem.
    Am I delay-loading wrong? Is there another plugin/plugin developer who has delay-loaded DLLs in his/her plugin that I can view the source of or ask for advice on this?

  7. #7
    Join Date
    May 2016
    Location
    Idar-Oberstein
    Posts
    156
    Check the return value of SetDllDirectory. I think it might just be taking windows style paths ("\\").
    Is the linker option also set? (https://msdn.microsoft.com/en-us/library/yx9zd12s.aspx)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to install .ts3_plugin file?
    By rusztmas in forum Windows
    Replies: 1
    Last Post: March 30th, 2016, 07:17 AM
  2. Replies: 8
    Last Post: March 9th, 2015, 09:58 PM
  3. Replies: 0
    Last Post: May 4th, 2011, 01:22 AM
  4. Extracting icons
    By Randomage in forum General Questions
    Replies: 1
    Last Post: August 26th, 2010, 08:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •