Jump to content

BepInEx for KSP 2: Adding modding support to the game


bbepis

Recommended Posts

12 minutes ago, Scarecrow71 said:

Is there a list of the KSP2 methods, functions, variables, etc., that we can call and use in a mod?  For example, say I wanted to write a mod that uses goofy foot (prograde is retrograde, up is down, etc.).  Is there a list of the functions I can reference?  Or would VS's Intellisense be able to show me those with the right dll references in the project?

There is no official documentation at this point, so you have to use a decompiler, either built into your IDE (what you said) or a dedicated one.

Edited by munix
Link to comment
Share on other sites

It is looking very much to me like BepInEx / SpaceWarp are not loading under Linux when using Proton.

That is a bit of a shame as with my new rig it is running KSP2 on Linux at an acceptable frame rate.

I found this discussion https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine but as the BepInEx download does not seem to include the script file  run_bepinex.sh so I don't think it is a valid discussion. I did check the DLL's and they seem to all have sensible permissions and are marked as executables.

I come to the limit of my understanding here, I am not that much of a Linux expert, just a regular hack :).
I am willing to try and test stuff if there may be ideas on how to get it working.

Link to comment
Share on other sites

46 minutes ago, Kaa253 said:

It is looking very much to me like BepInEx / SpaceWarp are not loading under Linux when using Proton.

That is a bit of a shame as with my new rig it is running KSP2 on Linux at an acceptable frame rate.

I found this discussion https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine but as the BepInEx download does not seem to include the script file  run_bepinex.sh so I don't think it is a valid discussion. I did check the DLL's and they seem to all have sensible permissions and are marked as executables.

I come to the limit of my understanding here, I am not that much of a Linux expert, just a regular hack :).
I am willing to try and test stuff if there may be ideas on how to get it working.

Mods do work in Linux with wine (I'm using Lutris). Proton should be fine as well (it's just wine under the hood) but I haven't tried to be sure there isn't something weird. 

Assuming you've got the loaders unpacked to your KSP2 install directory correctly, then most likely what you need is to add a dll override for winhttp as the loaders include and use that dll as an entry point. I can help you with that if your not sure how to go about it.

Link to comment
Share on other sites

4 minutes ago, MakerTribe said:

I can help you with that if your not sure how to go about it.

I don't know how to do it.
However, be aware that I am in Australia and about to sleep and will not be online again until after work in around 17 hours or so. 

Link to comment
Share on other sites

1 hour ago, Kaa253 said:

I don't know how to do it.
However, be aware that I am in Australia and about to sleep and will not be online again until after work in around 17 hours or so. 

No worries, it's not terribly difficult. Since your using steam/proton your going to want to install winetricks / protontricks if you don't have already. See https://github.com/Matoking/protontricks for details on that.

With protontricks installed you can run

protontricks -l

to see list of games installed and their ID. (KSP2 is 954850 for me)

With KSP2 ID, you can then run winecfg for it like so

protontricks 954850 winecfg

or

protontricks -c winecfg 954850

In the wine config dialog, click on the libraries tab. Where it says New override for library enter winhttp then click the Add button. At the bottom of list you should now see winhttp (native, builtin), click Apply/OK to save and close dialog. That's it!

Link to comment
Share on other sites

5 hours ago, Kaa253 said:

It is looking very much to me like BepInEx / SpaceWarp are not loading under Linux when using Proton.

That is a bit of a shame as with my new rig it is running KSP2 on Linux at an acceptable frame rate.

I found this discussion https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine but as the BepInEx download does not seem to include the script file  run_bepinex.sh so I don't think it is a valid discussion. I did check the DLL's and they seem to all have sensible permissions and are marked as executables.

I come to the limit of my understanding here, I am not that much of a Linux expert, just a regular hack :).
I am willing to try and test stuff if there may be ideas on how to get it working.

The link you posted seems to only apply to native Linux installs, this is the one for Proton/Wine support: https://docs.bepinex.dev/articles/advanced/proton_wine.html

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...