HaywireInteractive / OnAllFronts-Public

UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
126 stars 24 forks source link

Fix error when server is separate process about GameInstance_ProjectM #867

Closed Leroy231 closed 8 months ago

Leroy231 commented 8 months ago

Note you may want to wait for https://github.com/HaywireInteractive/OnAllFronts/pull/396 to merge because it's possible that fixes this issue.

To reproduce:

  1. Open L_MediumWithObstacles
  2. Set net mode to client
  3. Right below where you set net mode click Advanced Settings
  4. Multiplayer Options > Run Under One Process > uncheck this box
  5. Play in Standalone Game > Additional Launch Parameters > type in that box: -log
  6. Run PIE
  7. Notice a new window popup for the server process and it'll have log messages below. This is because on server DLSS code doesn't make sense to run and the plugin isn't enabled. We need to move this code to somewhere that will only run on client.

    [2024.03.11-00.25.53:477][ 0]LogLinker: Warning: [AssetLog] D:\Unreal Projects\OnAllFronts_53_CitySample\Plugins\ProjectM\Content\MenuSystem\GameInstance_ProjectM.uasset: VerifyImport: Failed to find script package for import object 'Package /Script/StreamlineBlueprint' [2024.03.11-00.25.53:484][ 0]LogBlueprint: Error: [AssetLog] D:\Unreal Projects\OnAllFronts_53_CitySample\Plugins\ProjectM\Content\MenuSystem\GameInstance_ProjectM.uasset: [Compiler] In use pin no longer exists on node SetDLSSGMode . Please refresh node or break links to remove pin. [2024.03.11-00.25.53:485][ 0]LogBlueprint: Error: [AssetLog] D:\Unreal Projects\OnAllFronts_53_CitySample\Plugins\ProjectM\Content\MenuSystem\GameInstance_ProjectM.uasset: [Compiler] In use pin DLSSGMode no longer exists on node SetDLSSGMode . Please refresh node or break links to remove pin. [2024.03.11-00.25.53:485][ 0]LogBlueprint: Error: [AssetLog] D:\Unreal Projects\OnAllFronts_53_CitySample\Plugins\ProjectM\Content\MenuSystem\GameInstance_ProjectM.uasset: [Compiler] Could not find a function named "SetDLSSGMode" in 'GameInstance_ProjectM'. Make sure 'GameInstance_ProjectM' has been compiled for SetDLSSGMode