소스 검색

Fix compile and python errors from the export script (#477)

* Fix compile and python errors from the export script
* Fix argument for exp.bundle_assets

Signed-off-by: Steve Pham <[email protected]>
Steve Pham 1 년 전
부모
커밋
543b23e4d9
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      ExportScripts/export_mps.py
  2. 3 1
      Gem/Code/Source/UserSettings/MultiplayerSampleUserSettings.cpp

+ 2 - 2
ExportScripts/export_mps.py

@@ -98,7 +98,7 @@ def export_multiplayer_sample(ctx: exp.O3DEScriptExportContext,
         if should_build_server_launcher:
             launcher_type |= exp.LauncherType.SERVER
         if should_build_headless_server_launcher:
-            launcher_type |= exp.LauncherType.HEADLESS
+            launcher_type |= exp.LauncherType.HEADLESS_SERVER
         if should_build_unified_launcher:
             launcher_type |= exp.LauncherType.UNIFIED
 
@@ -126,7 +126,7 @@ def export_multiplayer_sample(ctx: exp.O3DEScriptExportContext,
                                                               required=True)
         logger.info(f"Using '{asset_bundler_path}' to bundle the assets.")
         expected_bundles_path = exp.bundle_assets(ctx=ctx,
-                                                  selected_platform=selected_platform,
+                                                  selected_platforms=[selected_platform],
                                                   seedlist_paths=validated_seedslist_paths,
                                                   seedfile_paths=[],
                                                   tools_build_path=tools_build_path,

+ 3 - 1
Gem/Code/Source/UserSettings/MultiplayerSampleUserSettings.cpp

@@ -261,7 +261,9 @@ namespace MultiplayerSample
                 {
                     auto ssrOptions = reflectionFeatureProcessor->GetSSROptions();
                     ssrOptions.m_enable = (reflectionType != SpecularReflections::None);
-                    ssrOptions.m_rayTracing = (reflectionType == SpecularReflections::ScreenSpaceAndRaytracing);
+                    ssrOptions.m_reflectionMethod = (reflectionType == SpecularReflections::ScreenSpaceAndRaytracing) ?
+                                                    AZ::Render::SSROptions::ReflectionMethod::RayTracing :
+                                                    AZ::Render::SSROptions::ReflectionMethod::ScreenSpace;
                     reflectionFeatureProcessor->SetSSROptions(ssrOptions);
                 }
             }