Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to re-compile this mod (just ask a question) #20

Open
Peter-JY opened this issue May 7, 2022 · 1 comment
Open

How to re-compile this mod (just ask a question) #20

Peter-JY opened this issue May 7, 2022 · 1 comment

Comments

@Peter-JY
Copy link

Peter-JY commented May 7, 2022

I'm making another mod, and I want to change the time format to my custom version. I found that this mod is able to do this (certainly I have to change something), but I can't open the .sln, even caused error when referencing header file. So I want to ask how to write a mod for KSP and which library should I install?

@HebaruSan
Copy link

Compiling a KSP mod requires referencing the game files. Luckily this repo has workflows set up to build it for pull requests as well as for releases, so you can see exactly the commands that are used:

- name: Build mod solution
run: msbuild /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" RSSTimeFormatter.sln

The key appears to be the /p:ReferencePath= argument to msbuild. Presumably you would set this to the path where your copy of KSP lives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants