Skip to content

Helfima/DSP_Mods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSP_Mods

Debug Dyson Sphere Program Mods

  1. DSP_ROOT is your folder Steam\steamapps\common\Dyson Sphere Program

  2. Check Unity version of the game you have. See Detail of DSP_ROOT\DSPGame.exe.

  3. download correct version of unity https://unity3d.com/get-unity/download/archive. In this case, we need download 2018.4.12. Choose Unity Editor 64-bit, the download will start automatically.

  4. After download done, use 7zip unpack file. In this case, the filename is UnitySetup64-2018.4.12f1.exe.

  5. Locate to [UnpackFolder]\Editor\Data\PlaybackEngines\windowsstandalonesupport\Variations\win64_development_mono
    Copy UnityPlayer.dll to DSP_Helmod\Build\Debug

  6. Backup DSP,

    Copy DSP_ROOT\UnityPlayer.dll to DSP_Helmod\Build\Release

    Copy DSP_ROOT\DSPGAME_Data\boot.config to DSP_Helmod\Build\Release\DSPGAME_Data

  7. Prepare debug, Copy DSP_ROOT\DSPGAME_Data\boot.config to DSP_Helmod\Build\Debug\DSPGAME_Data

  8. Use text editor open DSP_Helmod\Build\Debug\DSPGAME_Data\boot.config Add:

    wait-for-managed-debugger=1
    player-connection-debug=1
    
  9. Ensure you installed https://dsp.thunderstore.io/package/xiaoye97/BepInEx/ Extract content folder xiaoye97-BepInEx-5.4.17.zip\BepInExPack in game Folder

  10. Rebuild mod, and execute DSP_Helmod\Build\CopyDll.bat. To obtain .mdb file execute

    DSP_Helmod\Build\pdb2mdb.exe DSP_Helmod.dll
    

    In Visual Studio you can build automaticaly, set post-build

    $(ProjectDir)\Build\pdb2mdb.exe $(TargetPath)
    $(ProjectDir)\Build\CopyDll.bat $(ConfigurationName) $(ProjectDir) $(TargetPath) 
    
  11. Launch DSP game

  12. Go to Visual Studio 2019, click menu Debug/Attach Unity Debugger A "Select Unity instance" dialog will show you some thing like..

    Project Machine Type Port Information
    WindowsPlayer Your_PC_Name Player 56593 PID:xxxx
  13. Click OK on Debug messagebox

Troubles if error "Failed to load mono" check DSPGAME_Data\boot.config

About

Dyson Sphere Program Mods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published