Hacknet-Pathfinder icon indicating copy to clipboard operation
Hacknet-Pathfinder copied to clipboard

Added RunGame task target to every project

Open Spartan322 opened this issue 3 years ago • 1 comments

Clarified usability in README.md Debug BepInEx directory is by default .debug/ (can be changed with BepInExTestDir property) RunGame task handles:

  1. Building the necessary projects
  2. Creating BepInExTestDir if it doesn't exist
  3. Exporting the files to their appropriate place in BepInExTestDir (alongside each dependency doing the same)
  4. Moving all Pathfinder files and directories in HacknetDir (by default SteamLibrary's Hacknet game directory) to HacknetDir/temp/
  5. Symlinking or Junctioning the BepInExTestDir into HacknetDir alongside doing the same to every plugin and core file from its compiled directory
  6. Moving all the necessary Pathfinder start files to HacknetDir (compiling the C# projects)
  7. Executing StartPathfinder.sh
  8. When complete, will clean out all the files, folder, and symlinks and restore everything from the temp file

Note: if you end the process before it cleans the HacknetDir you may experience future problems as of now. If you get an error please report them by posting your HacknetDir structure, what Pathfinder files are in the directory, what are in the temp directory, and what are in the BepInEx directory.

Remember you only need to run dotnet build /t:<Project>:RunGame in the directory of the solution file.

Spartan322 avatar May 01 '22 10:05 Spartan322

I might be able to have BepInExTestDir automatically generate a .gitignore file that selects the whole directory.

Spartan322 avatar May 02 '22 08:05 Spartan322