Jump to content

I can't locate dll files for references


Recommended Posts

I'm trying to write my first plugin based on the tutorials listed at the bottom.  The .dll are missing from my KPS installation from Steam (Mac).  The game has been running fine, so I know they're somewhere.  The whole KSP_INSTALL_FOLDER is missing.  I've used the find command in terminal to try to locate it, and it just enters an endless loop.  The same thing happens for the specific files.  Here's what I'm entering into the terminal.

find . -type d -name “KSP_INSTALL_FOLDER"
find . -type f -name “Assembly-CSharp.dll”

Is there any way to access the files to import them to Visual Studio?  Also, I don't have the option to "browse" my directories, like the the first tutorial suggests.

 

https://wiki.kerbalspaceprogram.com/wiki/Setting_up_Visual_Studio

https://wiki.kerbalspaceprogram.com/wiki/Tutorial:Creating_your_first_module

Link to comment
Share on other sites

Hello, and welcome to the forums!  :)

41 minutes ago, PolyTim said:

I'm trying to write my first plugin based on the tutorials listed at the bottom.  The .dll are missing from my KPS installation from Steam (Mac).  The game has been running fine, so I know they're somewhere.  The whole KSP_INSTALL_FOLDER is missing.  I've used the find command in terminal to try to locate it, and it just enters an endless loop.

So, I don't know about Mac, but at least on Windows, the place where you should be able to find the DLLs is:

  • Go to your main KSP folder (the place where the main KSP_x64.exe lives)
  • From there, navigate to the subfolder KSP_x64_Data/Managed

That folder has a whole slew of many DLLs in it, including Assembly-CSharp.dll.

That said:  the above description is for Windows.  I have no idea how similar or different the setup is on a Mac.  If the above doesn't work for you, then hopefully someone with a Mac can chime in.

 

Link to comment
Share on other sites

Thanks! I looked for those as you suggested, but there only thing resembling an executable file in the main Kerbal Space Program directory is the game saves.  Right now, the directory that the game is located in is "/users/user/library/Application Support/ Steam/steamapps/common/Kerbal Space Program".  The KSP.log, KSP.app, and KSPLauncher are in this directory and the app runs if I open it using that file directly instead of opening it through steam.

All the resources, plugins internals, etc. Are missing from that directory and it looks like equivalents are located within the GameData subdirectory.  There's one KSPSteamCtrlr.dll within there, which I think is only a module that allows steam to control the app.

So maybe it's an operating system thing, like you said.

Link to comment
Share on other sites

`KSP.app` is an application bundle, a folder that contains the executable and all of its related resources in a well-defined layout that the operating system treats as a single application. If you're navigating around using a commandline, you can just `cd` in to it. In Finder, right click and select "Show package contents".

The path that you want should be `KSP.app/Contents/Resources/Data/Managed`

Edited by stibbons
accidentally posted too soon :(
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...