Thread: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

Results 1 to 10 of 10
  1. #1
    Registered User takedeppo.50cal's Avatar
    Join Date
    Jan 2016
    Location
    Japan
    Posts
    15

    Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    Hello.

    I'm in trouble after 5.17 updated.
    SteamCMD server has not been working with DLL error, as follows

    Code:
    Console initialized.
    Protocol version 48
    Engine version 5.0.1.0 (svencoop)
    Engine build: 00:15:05 Aug 14 2018 (7964)
    STEAM Auth Server
    Server IP address 192.168.1.4:27015
    LoadLibrary failed on i:\svends\.\svencoop\dlls\server.dll (1114)
    Host_Error: Couldn't get DLL API from i:\svends\.\svencoop\dlls\server.dll!
    FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from i:\svends\.\svencoop\dlls\server.dll!
    (Windows10 Pro 64bit 1803)
    Not using Metamod

    This worked well under ver 5.16.

    Things I tried are as follows,

    • Updated files using SteamCMD (app_update 276060)
    • Installed as new files from SteamCMD
    • Run by GUI mode
    • Copied files from SteamClient and run svends.exe.
    • Re-installed OS
    • Changed server dll path to full path in liblist.gam.
    • Using metamod and changed liblist.gam.


    but still not work. and it got same situation.

    And, I tried same server files in other operating environment, that's worked well.

    • Win7 Pro 64bit
    • Win10 Pro 32bit

    Do you know what causes this?
    Just problem of OS?

    Could you give me some advice?

  2. #2
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,479

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    Please reset liblist.gam to its absolute default. (You shouldn't be modifying this file.)

    Are you launching this from a script or command prompt? (If so, did you change the working directory to "I:\svends" first?)

    Is there likely to be any NTFS file/folder permission issues? (Not sure if your I: is removable or not.)
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  3. #3
    Registered User takedeppo.50cal's Avatar
    Join Date
    Jan 2016
    Location
    Japan
    Posts
    15

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    Sure, liblist.gam is default setting now.
    I modified it for testing after trouble occured.

    I'm launching by command prompt (running .bat at "I:\SvenDS" dir).
    command is
    Code:
    start svends.exe -console +map stadium4 +maxplayers 4
    "I:\SvenDS" is actually exists. and this is not removable drive.
    The drive letter and path are correct. this has worked fine on Ver 5.16.

    Also, I tried install to "C:\SvenDS" with this SteamCMD command,
    Code:
    steamcmd +login anonymous +force_install_dir "C:\SvenDS" +app_update 276060 validate +exit
    The result is same.

    Code:
    ・・・
    LoadLibrary failed on c:\svends\.\svencoop\dlls\server.dll (1114)
    Host_Error: Couldn't get DLL API from c:\svends\.\svencoop\dlls\server.dll!
    FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from c:\svends\.\svencoop\dlls\server.dll!
    (I confirmed this after re-installed Windows10 OS.)


    I don't know how to check NTFS permission.
    but, I think this path has full control permission for administrator user.
    I have not changed permissions on this drive for a long time.

  4. #4
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,479

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    +map stadium4 +maxplayers 4
    What happens if these are the other way around?
    +maxplayers 4 +map stadium4
    (Also not sure why you need the "start" command to launch the SvenDS exe.)
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  5. #5
    Registered User takedeppo.50cal's Avatar
    Join Date
    Jan 2016
    Location
    Japan
    Posts
    15

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    The situation has not changed.

    I tried the following, but every method has not worked.
    (Tested on "C:\SvenDS" path)
    Code:
    svends -console +maxplayers 4 +map stadium4
    Code:
    svends -console +map stadium4
    Code:
    C:\SvenDS\svends -console +maxplayers 4 +map stadium4
    From command prompt,
    Code:
    cd /d C:\SvenDS
    svends -console +maxplayers 4 +map stadium4
    Just double click SvenDS.exe -> Crashed after clicked "Start Server" button. and no log.


    I think, this is not problem of commands.

    It's API or compatibility of OS or something.
    Especially, something related to relative path and absolute path.

  6. #6
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,479

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    That's a good point... Which version of Windows are you running?
    Also you could try the "-condebug" switch, that'll produce a verbose debug log in your SvenDS folder.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  7. #7
    Registered User takedeppo.50cal's Avatar
    Join Date
    Jan 2016
    Location
    Japan
    Posts
    15

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    After running with "-condebug" option,
    console-2018-09-08.log has made in SvenDS folder.

    but, content is ...
    Code:
    Protocol version 48
    Engine version 5.0.1.0 (svencoop)
    Engine build: 00:15:05 Aug 14 2018 (7964)
    Server IP address 192.168.81.1:27015
    LoadLibrary failed on c:\svends\.\svencoop\dlls\server.dll (1114)
    Host_Error: Couldn't get DLL API from c:\svends\.\svencoop\dlls\server.dll!
    hmmm

    "winver" command shows, "Microsoft Windows Ver 1803 OS build 17134.254" (Windows 10 Pro 64bit)

  8. #8
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,479

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    I'll check further but my only remaining thought at the moment is that you may not have the Microsoft Visual C++ 2017 runtime installed. I can't remember if I compiled the latest binaries under our typical Visual Studio 2010 or if another programmer did with Visual Studio 2017.

    You can get them here: https://support.microsoft.com/en-gb/...al-c-downloads
    You'll need the x86 build under both Visual Studio 2017 and Visual Studio 2010 (vc_redist.x86.exe) -- Not the x64 builds.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  9. #9
    Registered User takedeppo.50cal's Avatar
    Join Date
    Jan 2016
    Location
    Japan
    Posts
    15

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    As you say, VC++2017 and VC++2010 runtime have not installed.

    First, I have installed only VC++2017 x86 runtime. But still not worked.
    After I installed VC++2010 runtime (x86), finally worked!!

    And it seems that only VC++2013 runtime (both x86 and x64) have installed on Win 10 1803 in the initial state.


    Thank you so much for your kind support.
    This problem is solved.

  10. #10
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,479

    Re: Host_Error: Couldn't get DLL API (Windows Dedicated Server)

    No problem.

    Unfortunately we can't include VC++2010 redist in the SvenDS package like we can with Steam, but thank you for your patience too -- we've learned from this.

    I'm highly surprised this worked in previous versions of SC for you. We've been using VC++2010 for around 8 years now.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

Posting Permissions

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