Open X52p opened 3 years ago
Actually, there aren't. Ignoring the post-build-event, you need to set an environment variable called:
KSPDIR
and have it point to your main KSP directory, the one you are building against. You need to set this in Windows, and then log off and log back on (or reboot). Once done, you should be able to do a compile
I still have problems building it. Just to be sure: I add an environment variable named KSPDIR with the value (should It be a user variable or System variable? I tried both) C:/Program Files (x86)/Steam/steamapps/common/Kerbal Space Program (which is where my KSP is installed.) Then I reboot my PC Then I build "ksp-advanced-flybywire_win" Then the new DLL should be in ksp-advanced-flybywire\AFBW\bin ? Or should I be using the .bat file for build release?
edit:
I found a solution. Besides adding the Environment variable, I also needed to change some occurrences of
\Microsoft Visual Studio\2017\Community\Common7\IDE\texttransform.exe
to
\Microsoft Visual Studio\2019\Community\Common7\IDE\texttransform.exe
(I don't know a better way to do this. Maybe there is a variable for the current Visual Studio path?)
and I also needed to change the build target architecture from x86 to Any CPU (I'm using an AMD Threadripper, which somehow is incompatible with x86 according to the error message I got from Visual Studio (which is a riddle to me))
I tried to build the mod myself, because I would like to contribute. I currently can't manage to build it because the Visual Studio Build files contain a lot of user specific paths.
What is the intended way to build this?