Skip to content

Commit

Permalink
Feature: CrashBot_Gym fixes for Offloading Tutorial (#55) (#62)
Browse files Browse the repository at this point in the history
* Small fixes to Crashbot
* Enable SpatialNetworking, Add more bots + turrets into crashbot map. Add Crashbot_Rifle subclass
* Delete Offloading_Gym map (replaced with Crashbot_Gym). Set Default maps to FPS-Start_Tiny
* Some fixes to stop warning spam due to moving ragdolls and no trace components present
* Remove Engine Association
* Remove unused ShouldMove bool
* Revert default server map
  • Loading branch information
oblm authored Oct 10, 2019
1 parent 52a0efd commit 904c0a0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 219 deletions.
6 changes: 3 additions & 3 deletions Game/Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ DefaultGraphicsPerformance=Maximum
[/Script/SpatialGDK.SpatialGameInstance]
bPreventAutoConnectWithLocator=False

[/Script/NavigationSystem.NavigationSystemV1]
bAllowClientSideNavigation=True

[/Script/Engine.PhysicsSettings]
DefaultGravityZ=-1960.000000
DefaultTerminalVelocity=4000.000000
Expand Down Expand Up @@ -93,6 +96,3 @@ InitialAverageFrameRate=0.016667
PhysXTreeRebuildRate=10
DefaultBroadphaseSettings=(bUseMBPOnClient=False,bUseMBPOnServer=False,MBPBounds=(Min=(X=0.000000,Y=0.000000,Z=0.000000),Max=(X=0.000000,Y=0.000000,Z=0.000000),IsValid=0),MBPNumSubdivs=2)

[/Script/NavigationSystem.NavigationSystemV1]
bAllowClientSideNavigation=True

2 changes: 1 addition & 1 deletion Game/Config/DefaultSpatialGDKEditorSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ bDeleteDynamicEntities=True
bGenerateDefaultLaunchConfig=True
bStopSpatialOnExit=False
SpatialOSSnapshotFile=default.snapshot
LaunchConfigDesc=(Template="w2_r0500_e5",World=(Dimensions=(X=2000,Y=2000),ChunkEdgeLengthMeters=5,StreamingQueryIntervalSeconds=4,SnapshotWritePeriodSeconds=0,LegacyFlags=(("bridge_qos_max_timeout", "0"),("bridge_soft_handover_enabled", "false"),("enable_chunk_interest", "false")),LegacyJavaParams=()),ServerWorkers=((WorkerTypeName="UnrealWorker"),(WorkerTypeName="AIWorker"),(WorkerTypeName="CrashBotWorker")))
LaunchConfigDesc=(Template="w2_r0500_e5",World=(Dimensions=(X=2000,Y=2000),ChunkEdgeLengthMeters=5,StreamingQueryIntervalSeconds=4,SnapshotWritePeriodSeconds=0,LegacyFlags=(("bridge_qos_max_timeout", "0"),("bridge_soft_handover_enabled", "false"),("enable_chunk_interest", "false")),LegacyJavaParams=()),ServerWorkers=((WorkerTypeName="UnrealWorker")))
bGeneratePlaceholderEntitiesInSnapshot=True

15 changes: 7 additions & 8 deletions Game/Config/DefaultSpatialGDKSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ActorReplicationRateLimit=0
EntityCreationRateLimit=0
OpsUpdateRate=1000.000000
bEnableHandover=True
MaxNetCullDistanceSquared=900000000.000000
QueuedIncomingRPCWaitTime=1.000000
bUsingQBI=True
PositionUpdateFrequency=1.000000
PositionDistanceThreshold=100.000000
Expand All @@ -17,18 +19,15 @@ MetricsReportRate=2.000000
bUseFrameTimeAsLoad=False
bCheckRPCOrder=False
bBatchSpatialPositionUpdates=True
MaxDynamicallyAttachedSubobjectsPerClass=3
bEnableServerQBI=True
bPackUnreliableRPCs=True
bPackRPCs=True
DefaultReceptionistHost=127.0.0.1
bUseDevelopmentAuthenticationFlow=False
DevelopmentAuthenticationToken=
DevelopmentDeploymentToConnect=
DefaultWorkerType=(WorkerTypeName="UnrealWorker")
bEnableOffloading=False
ActorGroups=(("AI", (OwningWorkerType=(WorkerTypeName="AIWorker"),ActorClasses=(/Game/Characters/Turret/BP_Turret_Base.BP_Turret_Base_C,/Game/Controllers/BP_TurretController.BP_TurretController_C,/Game/Characters/Turret/BP_TurretShield.BP_TurretShield_C,/Game/Blueprints/Weapons/BP_HeavyMachineGun_ForTurret.BP_HeavyMachineGun_ForTurret_C,/Game/Blueprints/Weapons/Grenades/Turret_Rocket_Propelled.Turret_Rocket_Propelled_C,/Game/Blueprints/Weapons/BP_RocketLauncher_Continuous.BP_RocketLauncher_Continuous_C))),("CrashBot", (OwningWorkerType=(WorkerTypeName="CrashBotWorker"),ActorClasses=(/Game/Characters/BP_CrashBot.BP_CrashBot_C,/Game/Controllers/BP_CrashBotController.BP_CrashBotController_C))))
ServerWorkerTypes=("UnrealWorker","AIWorker","CrashBotWorker")
MaxDynamicallyAttachedSubobjectsPerClass=3
bPackRPCs=True
DefaultReceptionistHost=127.0.0.1
MaxNetCullDistanceSquared=900000000.000000

ActorGroups=()
ServerWorkerTypes=("UnrealWorker")

Binary file not shown.
Binary file modified Game/Content/Characters/BP_CrashBot.uasset
Binary file not shown.
Binary file modified Game/Content/Characters/BP_CrashBot_PlacedInWorld.uasset
Binary file not shown.
Binary file modified Game/Content/Controllers/BP_CrashBotController.uasset
Binary file not shown.
Binary file modified Game/Content/Maps/CrashBot_Gym.umap
Binary file not shown.
Binary file removed Game/Content/Maps/Offloading_Gym.umap
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ void UShootingComponent::BeginPlay()

if (!bHasTraceProvider)
{
UE_LOG(LogGDK, Error, TEXT("Shooting Component Exists without a Trace Providing component, please add an Actor Component that implements ITraceProvider."));
UE_LOG(LogGDK, Error, TEXT("Shooting Component on %s exists without a Trace Providing component, please add an Actor Component that implements ITraceProvider."),
*GetPathNameSafe(GetOwner()));
}
}

Expand Down
103 changes: 0 additions & 103 deletions spatial/workers/unreal/spatialos.AIWorker.worker.json

This file was deleted.

103 changes: 0 additions & 103 deletions spatial/workers/unreal/spatialos.CrashBotWorker.worker.json

This file was deleted.

0 comments on commit 904c0a0

Please sign in to comment.