GithubHelp home page GithubHelp logo

rethesda / starfield-luma Goto Github PK

View Code? Open in Web Editor NEW

This project forked from endlesslyflowering/starfield-luma

0.0 0.0 0.0 45.25 MB

Home Page: https://www.nexusmods.com/starfield/mods/4821

License: GNU General Public License v3.0

C++ 73.38% Python 0.13% C 2.08% PowerShell 1.10% CMake 0.30% Batchfile 0.24% HLSL 22.77%

starfield-luma's Introduction

CMake on Windows

Source code for the Starfield Luma mod.

To set up a development environment for this mod (skip to step 7 if you don't care about developing the code plugin and only want to modify shaders):

  1. Have Visual Studio (only VS 2022 was tested) installed, with components to build C++ code for Windows
  2. Follow the requirements specified here: SF Plugin Template requirements. You need to install vcpkg and CMake, either as VS installer components or as a custom install (a custom install is preferred, as vcpkg that comes with VS seems to have troubles with Luma), and set up the specified environment paths
  3. Install the official mod and anything that comes along with it (e.g. SFSE, Shader Injector): Starfield Luma
  4. Run make-sln-msvc.bat
  5. Open build\Luma.sln with VS and run the ALL_BUILD CMake in Release configuration, this will automatically build the plugin binary and copy it and its shaders in your game mods directory (and reset the mod settings)
  6. Alternatively, run build-msvc-release.bat, though that might not work
  7. If you don't have the SFPath environment variable set up from a prior step, open shaders\target_folder.txt and paste your Starfield mods directory + relative shaders binaries path in there (e.g. C:\Games\Starfield\Data\shadersfx\)
  8. set the DEVELOPMENT defines to 1 in Plugin\src\Settings.h and shaders\shared.hlsl to have full access to the mod development settings
  9. To allow shaders hot reload (live edits) while running, open SFShaderInjector.ini (it goes alongside the Shader Injector ASI or DLL, wherever the mod was installed) and change AllowLiveUpdates to 1
  10. You can now modify (or add) any hlsl shader in the shaders folder and run compile_all_shaders.ps1 to build them and copy them to the game folder
  11. To debug Luma code, build the solution in "Debug" configuration, run Starfield and hook the debugger (a message box will appear, giving you time to hook)

If you to package a new (full) release, run Plugin\dist\deploy-release.ps1 (this also deploys shaders, but it doesn't rebuild them). If you want to modify the Shader Injector source code, you can find it here. That isn't necessary for the development of this mod. If you want to bump up the project version, it's in Plugin\CMakeList.txt. Note that SFPath can also point to a virtual folder from a mod manager.

starfield-luma's People

Contributors

filoppi avatar clshortfuse avatar endlesslyflowering avatar ersh1 avatar nukem9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.