Author Topic: Modding prerequisites (Visual Studio 2017)  (Read 672 times)

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1143
    • View Profile
Modding prerequisites (Visual Studio 2017)
« on: April 30, 2018, 02:25:36 am »
  • Install Visual Studio 2017 (any edition, including free Community edition). Before installation, please ensure that you've checked ".NET Framework 4.7.1 targeting pack". If you already have VS2017 installed, please ensure launch Visual Studio Installer -> Modify -> Individual components -- and ensure that ".NET Framework 4.7.1 targeting pack" is checked.
  • Download and install CryoFall Modding SDK extension for VS2017
  • Extract <game folder>Core/Core.cpk file - you can do this by existing a CMD script located in the same folder.

After that, you can open the game solution file with VS2017. It's located in <game folder>/Core/Core.cpk/.


A few important notes:
  • The CryoFall custom game engine (called Renkei) supports live reloading of C# & XAML code (as well as all the visual and audio assets) so it's not necessary to restart the game to observe the changes!
  • XAML Designer is not supported (though it can work fine in most cases) and it's recommended to disable it (Visual Studio Options, XAML designer, uncheck "Enable XAML Designer").
  • If you want to debug your code with breakpoints, please go to Visual Studio Options, Debugging, uncheck "Require source files to exactly match the original version" (because the game includes C# compiler which performs some code-generation and so resulting C# files do not match the original C# files - but it's not a problem for step-by-step debugging as the C# code lines kept intact).

Regards!
« Last Edit: January 23, 2019, 04:25:07 am by ai_enabled »

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1143
    • View Profile
Re: Modding prerequisites (Visual Studio 2017)
« Reply #1 on: January 23, 2019, 04:23:30 am »
Updated the post as A18 brings many improvements :-)