Quellcode durchsuchen

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 vor 1 Jahr
Ursprung
Commit
543b23e4d9

+ 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);
                 }
             }