public static void SetupPerGameSettings() { MyPerGameSettings.Game = GameEnum.SE_GAME; MyPerGameSettings.GameIcon = "SpaceEngineers.ico"; MyPerGameSettings.EnableGlobalGravity = false; MyPerGameSettings.GameModAssembly = "SpaceEngineers.Game.dll"; MyPerGameSettings.GameModObjBuildersAssembly = "SpaceEngineers.ObjectBuilders.dll"; MyPerGameSettings.OffsetVoxelMapByHalfVoxel = true; MyPerGameSettings.EnablePregeneratedAsteroidHack = true; MySandboxGame.ConfigDedicated = new MyConfigDedicated <MyObjectBuilder_SessionSettings>("SpaceEngineers-Dedicated.cfg"); MySandboxGame.GameCustomInitialization = new MySpaceGameCustomInitialization(); MyPerGameSettings.ShowObfuscationStatus = false; //audio MyPerGameSettings.UseVolumeLimiter = MyFakes.ENABLE_NEW_SOUNDS && MyFakes.ENABLE_REALISTIC_LIMITER; MyPerGameSettings.UseSameSoundLimiter = true; MyPerGameSettings.UseMusicController = true; MyPerGameSettings.CreationSettings = new MyPlacementSettings() { SmallGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.OneFreeAxis, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, //this is value at whitch you can place new small ship and is ok for wheels too Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.50f, }, EnablePreciseRotationWhenSnapped = false, }, LargeGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.OneFreeAxis, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.1f, }, EnablePreciseRotationWhenSnapped = false, }, LargeStaticGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.Base6Directions, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.85f, }, EnablePreciseRotationWhenSnapped = true, }, //StaticGridAlignToCenter = true, StaticGridAlignToCenter = false, }; //MyPerGameSettings.PastingSettings.StaticGridAlignToCenter = true; MyPerGameSettings.BuildingSettings.LargeStaticGrid = MyPerGameSettings.CreationSettings.LargeStaticGrid; MyPerGameSettings.Destruction = false; //MyPerGameSettings.ConstantVoxelAmbient = -0.35f; MyFakes.ENABLE_SUN_BILLBOARD = true; MyPerGameSettings.MainMenuTrack = new MyMusicTrack() { TransitionCategory = MyStringId.GetOrCompute("NoRandom"), MusicCategory = MyStringId.GetOrCompute("MusicMenu") }; MyPerGameSettings.BallFriendlyPhysics = false; MyPerGameSettings.BotFactoryType = typeof(SpaceEngineers.Game.AI.MySpaceBotFactory); MyPerGameSettings.ControlMenuInitializerType = typeof(MySpaceControlMenuInitializer); MyPerGameSettings.EnableScenarios = true; MyPerGameSettings.EnableTutorials = true; MyPerGameSettings.EnableJumpDrive = true; MyPerGameSettings.EnableShipSoundSystem = true; MyFakes.ENABLE_PLANETS_JETPACK_LIMIT_IN_CREATIVE = true; MyFakes.ENABLE_DRIVING_PARTICLES = true; MyPerGameSettings.EnablePathfinding = false; MyDebugDrawSettings.DEBUG_DRAW_MOUNT_POINTS_AXIS_HELPERS = true; // RAGDOLL PARAMATERS // TODO: after the ragdoll models are correctly configured this can be removed.. MyFakes.ENABLE_RAGDOLL_DEFAULT_PROPERTIES = true; //MyPerGameSettings.EnableRagdollModels = false; MyPerGameSettings.EnableRagdollInJetpack = true; //MyFakes.ENABLE_RAGDOLL_BONES_TRANSLATION = false; MyPerGameSettings.EnableKinematicMPCharacter = false; MyPerGameSettings.GUI.OptionsScreen = typeof(MyGuiScreenOptionsSpace); MyPerGameSettings.GUI.CreateFactionScreen = typeof(MyGuiScreenCreateOrEditFactionSpace); MyPerGameSettings.DefaultGraphicsRenderer = MySandboxGame.DirectX11RendererKey; MyPerGameSettings.EnableWelderAutoswitch = true; MyPerGameSettings.InventoryMass = true; MyPerGameSettings.CompatHelperType = typeof(MySpaceSessionCompatHelper); MyPerGameSettings.GUI.MainMenuBackgroundVideos = new string[] { @"Videos\Background01_720p.wmv", @"Videos\Background02_720p.wmv", @"Videos\Background03_720p.wmv", @"Videos\Background04_720p.wmv", @"Videos\Background05_720p.wmv", @"Videos\Background06_720p.wmv", @"Videos\Background07_720p.wmv", @"Videos\Background08_720p.wmv", @"Videos\Background09_720p.wmv", @"Videos\Background10_720p.wmv", @"Videos\Background11_720p.wmv", @"Videos\Background12_720p.wmv", }; SetupRender(); FillCredits(); MyPerGameSettings.VoiceChatEnabled = false; MyPerGameSettings.VoiceChatLogic = typeof(MyVoiceChatLogic); MyRenderSettings.PerInstanceLods = true; MyPerGameSettings.ClientStateType = typeof(MySpaceClientState); //MyFakes.ENABLE_HAVOK_MULTITHREADING = true; MyFakes.USE_LOD1_VOXEL_PHYSICS = true; MyPerGameSettings.EnableAi = true; MyPerGameSettings.EnablePathfinding = true; // This must be done last MyFakesLocal.SetupLocalPerGameSettings(); }
public static void SetupPerGameSettings() { MyPerGameSettings.Game = GameEnum.SE_GAME; MyPerGameSettings.GameIcon = "SpaceEngineers.ico"; MyPerGameSettings.EnableGlobalGravity = false; MyPerGameSettings.GameModAssembly = "SpaceEngineers.Game.dll"; MyPerGameSettings.GameModObjBuildersAssembly = "SpaceEngineers.ObjectBuilders.dll"; MyPerGameSettings.OffsetVoxelMapByHalfVoxel = true; MyPerGameSettings.EnablePregeneratedAsteroidHack = true; MySandboxGame.ConfigDedicated = new MyConfigDedicated <MyObjectBuilder_SessionSettings>("SpaceEngineers-Dedicated.cfg"); MySandboxGame.GameCustomInitialization = new MySpaceGameCustomInitialization(); MyPerGameSettings.ShowObfuscationStatus = false; MyPerGameSettings.UseNewDamageEffects = true; MyPerGameSettings.EnableResearch = true; //audio MyPerGameSettings.UseVolumeLimiter = MyFakes.ENABLE_NEW_SOUNDS && MyFakes.ENABLE_REALISTIC_LIMITER; MyPerGameSettings.UseSameSoundLimiter = true; MyPerGameSettings.UseMusicController = true; MyPerGameSettings.UseReverbEffect = true; MyPerGameSettings.Destruction = false; //MyPerGameSettings.ConstantVoxelAmbient = -0.35f; MyFakes.ENABLE_SUN_BILLBOARD = true; MyPerGameSettings.MainMenuTrack = new MyMusicTrack() { TransitionCategory = MyStringId.GetOrCompute("NoRandom"), MusicCategory = MyStringId.GetOrCompute("MusicMenu") }; MyPerGameSettings.BallFriendlyPhysics = false; if (MyFakes.ENABLE_CESTMIR_PATHFINDING) { MyPerGameSettings.PathfindingType = typeof(Sandbox.Game.AI.Pathfinding.MyPathfinding); } else { MyPerGameSettings.PathfindingType = typeof(Sandbox.Game.AI.Pathfinding.MyRDPathfinding); } MyPerGameSettings.BotFactoryType = typeof(SpaceEngineers.Game.AI.MySpaceBotFactory); MyPerGameSettings.ControlMenuInitializerType = typeof(MySpaceControlMenuInitializer); MyPerGameSettings.EnableScenarios = true; MyPerGameSettings.EnableTutorials = true; MyPerGameSettings.EnableJumpDrive = true; MyPerGameSettings.EnableShipSoundSystem = true; MyFakes.ENABLE_PLANETS_JETPACK_LIMIT_IN_CREATIVE = true; MyFakes.ENABLE_DRIVING_PARTICLES = true; MyPerGameSettings.EnablePathfinding = false; MyDebugDrawSettings.DEBUG_DRAW_MOUNT_POINTS_AXIS_HELPERS = true; // RAGDOLL PARAMATERS // TODO: after the ragdoll models are correctly configured this can be removed.. MyFakes.ENABLE_RAGDOLL_DEFAULT_PROPERTIES = true; //MyPerGameSettings.EnableRagdollModels = false; MyPerGameSettings.EnableRagdollInJetpack = true; //MyFakes.ENABLE_RAGDOLL_BONES_TRANSLATION = false; MyPerGameSettings.EnableKinematicMPCharacter = false; MyPerGameSettings.GUI.OptionsScreen = typeof(MyGuiScreenOptionsSpace); MyPerGameSettings.GUI.PerformanceWarningScreen = typeof(MyGuiScreenPerformanceWarnings); MyPerGameSettings.GUI.CreateFactionScreen = typeof(MyGuiScreenCreateOrEditFactionSpace); MyPerGameSettings.GUI.MainMenu = typeof(MyGuiScreenMainMenu); MyPerGameSettings.DefaultGraphicsRenderer = MySandboxGame.DirectX11RendererKey; MyPerGameSettings.EnableWelderAutoswitch = true; MyPerGameSettings.InventoryMass = true; MyPerGameSettings.CompatHelperType = typeof(MySpaceSessionCompatHelper); MyPerGameSettings.GUI.MainMenuBackgroundVideos = new string[] { @"Videos\Background01_720p.wmv", @"Videos\Background02_720p.wmv", @"Videos\Background03_720p.wmv", @"Videos\Background04_720p.wmv", @"Videos\Background05_720p.wmv", @"Videos\Background06_720p.wmv", @"Videos\Background07_720p.wmv", @"Videos\Background08_720p.wmv", @"Videos\Background09_720p.wmv", @"Videos\Background10_720p.wmv", @"Videos\Background11_720p.wmv", @"Videos\Background12_720p.wmv", }; SetupRender(); FillCredits(); MyPerGameSettings.VoiceChatEnabled = false; MyPerGameSettings.VoiceChatLogic = typeof(MyVoiceChatLogic); MyRenderProxy.Settings.PerInstanceLods = false; MyPerGameSettings.ClientStateType = typeof(MySpaceClientState); //MyFakes.ENABLE_HAVOK_MULTITHREADING = true; MyVoxelPhysicsBody.UseLod1VoxelPhysics = true; MyPerGameSettings.EnableAi = true; MyPerGameSettings.EnablePathfinding = true; // This must be done last MyFakesLocal.SetupLocalPerGameSettings(); }
public static void SetupPerGameSettings() { MyPerGameSettings.Game = GameEnum.SE_GAME; MyPerGameSettings.GameName = "Space Engineers"; MyPerGameSettings.GameIcon = "SpaceEngineers.ico"; MyPerGameSettings.EnableGlobalGravity = false; MyPerGameSettings.GameModAssembly = "SpaceEngineers.Game.dll"; MyPerGameSettings.OffsetVoxelMapByHalfVoxel = true; MyPerGameSettings.EnablePregeneratedAsteroidHack = true; MySandboxGame.ConfigDedicated = new MyConfigDedicated <MyObjectBuilder_SessionSettings>("SpaceEngineers-Dedicated.cfg"); MyPerGameSettings.ShowObfuscationStatus = false; MyPerGameSettings.CreationSettings = new MyPlacementSettings() { SmallGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.OneFreeAxis, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, //this is value at whitch you can place new small ship and is ok for wheels too Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.50f, }, EnablePreciseRotationWhenSnapped = false, }, LargeGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.OneFreeAxis, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.1f, }, EnablePreciseRotationWhenSnapped = false, }, LargeStaticGrid = new MyGridPlacementSettings() { Mode = MyGridPlacementSettings.SnapMode.Base6Directions, SearchHalfExtentsDeltaRatio = -0.1f, SearchHalfExtentsDeltaAbsolute = -0.13f, Penetration = new MyGridPlacementSettings.GroundPenetration() { Unit = MyGridPlacementSettings.PenetrationUnitEnum.Ratio, MinAllowed = 0f, MaxAllowed = 0.8f, }, EnablePreciseRotationWhenSnapped = true, }, StaticGridAlignToCenter = true, }; MyPerGameSettings.PastingSettings.StaticGridAlignToCenter = true; MyPerGameSettings.BuildingSettings.LargeStaticGrid = MyPerGameSettings.CreationSettings.LargeStaticGrid; MyPerGameSettings.Destruction = false; //MyPerGameSettings.ConstantVoxelAmbient = -0.35f; MyFakes.ENABLE_SUN_BILLBOARD = true; MyPerGameSettings.BallFriendlyPhysics = false; MyPerGameSettings.BotFactoryType = typeof(SpaceEngineers.Game.AI.MySpaceBotFactory); MyPerGameSettings.ControlMenuInitializerType = typeof(MySpaceControlMenuInitializer); MyPerGameSettings.EnableScenarios = true; MyPerGameSettings.EnableTutorials = true; MyPerGameSettings.EnableJumpDrive = true; MyFakes.ENABLE_DRIVING_PARTICLES = true; MyPerGameSettings.EnablePathfinding = false; MyDebugDrawSettings.DEBUG_DRAW_MOUNT_POINTS_AXIS_HELPERS = true; // RAGDOLL PARAMATERS // TODO: after the ragdoll models are correctly configured this can be removed.. MyFakes.ENABLE_RAGDOLL_DEFAULT_PROPERTIES = true; //MyPerGameSettings.EnableRagdollModels = false; MyPerGameSettings.EnableRagdollInJetpack = true; //MyFakes.ENABLE_RAGDOLL_BONES_TRANSLATION = false; MyPerGameSettings.EnableKinematicMPCharacter = true; MyPerGameSettings.GUI.OptionsScreen = typeof(MyGuiScreenOptionsSpace); MyPerGameSettings.DefaultGraphicsRenderer = DirectX9RendererKey; MyPerGameSettings.EnableWelderAutoswitch = true; MyPerGameSettings.InventoryMass = true; MyPerGameSettings.NonloopingCharacterFootsteps = true; MyPerGameSettings.CompatHelperType = typeof(MySpaceSessionCompatHelper); SetupRender(); FillCredits(); MyPerGameSettings.VoiceChatEnabled = false; MyPerGameSettings.VoiceChatLogic = typeof(MyVoiceChatLogic); MyRenderSettings.PerInstanceLods = true; // This must be done last MyFakesLocal.SetupLocalPerGameSettings(); }