Sandbox Crashes When C# Entity Is Dragged Into Level

#1
Whenever I create a new entity and drag it into the level, sandbox crashes.

Here is the error log content:

Code: Select all

Logged at Friday, June 30, 2017 12:16:45 FileVersion: 5.3.4.47 ProductVersion: 5.3.4.47 LogFile: Editor.log GameDir: Assets Executable: C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64\Sandbox.exe Exception Code: 0xC00000FD Exception Addr: 0x0033:0x000001C7F1B5D2A8 Exception Module: <Unknown> Exception Description: EXCEPTION_STACK_OVERFLOW, Memory in use: 1345.2MB Debug Status: Out of Memory: 0 MainThread Id: 10816 RenderThread Id: 10816 [Crashed] Thread Id: 1232 [Crashed] ThreadName: [Crashed] Call Stack: ["ThreadNameUnknown" [1232]] 2) function=0x000001C7F1B5D2A8 1) function=0x000001C7F1B5D2A8 Call Stack: ["FileChangeMonitor" [7520]] 9) function=0x00007FFA07535F04 8) function=0x00007FFA03C8DD20 7) function=0x00007FFA03C8DC1E 6) function=0x00007FF7A556FEC6 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_IO" [12416]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_3" [8072]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_1" [11184]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_2" [9300]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_0" [2184]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["RemoteConsoleServer" [5448]] 10) function=0x00007FFA07535434 9) function=0x00007FFA031B85A2 8) function=0x00007FFA031C237A 7) function=0x00007FFA069E7CFC 6) function=0x00007FFA069E7C22 5) function=0x00007FF9C43850F1 4) function=0x00007FF9C4019523 3) function=0x00007FFA041A0369 2) function=0x00007FFA04D52774 1) function=0x00007FFA07500D61 Call Stack: ["ShaderCompile" [11152]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9C21D6B53 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["NotificationNetwork" [672]] 10) function=0x00007FFA07535434 9) function=0x00007FFA031B85A2 8) function=0x00007FFA031BEDE1 7) function=0x00007FFA069E4493 6) function=0x00007FF9C4159BFC 5) function=0x00007FF9C416C17A 4) function=0x00007FF9C4019523 3) function=0x00007FFA041A0369 2) function=0x00007FFA04D52774 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_7" [2500]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_6" [1908]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_5" [11632]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_4" [8688]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_3" [9868]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_2" [7488]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_1" [5468]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_0" [2216]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4334AC0 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming AsyncCallback" [6168]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C3FDE98E 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_0 (Blocking)" [2420]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C4333412 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming File IO HDD" [2288]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9C40B6B5D 7) function=0x00007FF9C3FE2B98 6) function=0x00007FF9C3FDC0A6 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming File IO InMemory" [5980]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9C40B6B5D 7) function=0x00007FF9C3FE2B98 6) function=0x00007FF9C3FDC0A6 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["ServiceNetwork" [10744]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9C4383CD5 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["GFxMeshCacheReset" [8540]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C3FA9939 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["PhysicsWorkerThread_0" [996]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C2C13397 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["NetAddressSolver" [10492]] 10) function=0x00007FFA07538BE4 9) function=0x00007FFA07500009 8) function=0x00007FFA03CAE938 7) function=0x00007FF9BFA16F57 6) function=0x00007FF9BF922044 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["UserAnalytics" [7892]] 9) function=0x00007FFA07538BE4 8) function=0x00007FFA07500009 7) function=0x00007FFA03CAE938 6) function=0x00007FF9DD68A601 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["InputWorker" [7852]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9D95F131F 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["ZLibCompressor" [6508]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C3A69593 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Physics" [1636]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9C416B99E 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["MainAudioThread" [13440]] 9) function=0x00007FFA07535A34 8) function=0x00007FFA03C97287 7) function=0x00007FF9DA77DEE7 6) function=0x00007FF9DA7989CA 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["CaptureCrashScreenShot" [10776]] 9) function=0x00007FFA07538BE4 8) function=0x00007FFA07500009 7) function=0x00007FFA03CAE938 6) function=0x00007FF9C40B0FCA 5) function=0x00007FF9C4019523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Main" [10816]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9C4643E14 7) function=0x00007FFA03C46913 6) function=0x00007FFA0753DA9D 5) function=0x00007FFA07526476 4) function=0x00007FFA0753A08D 3) function=0x00007FFA074A9C58 2) function=0x00007FFA0753910E 1) function=0x000001C7F1B5D2A8

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#3
Here is the code for the entity, it is a very simple one however it uses two classes, one is called InputManager and basically updates the values of keyboard.

Input Manager:

Code: Select all

using System; using CryEngine.Common; namespace CryEngine.SampleApp { public class InputManager : EntityComponent { //Keys public float kForward; public float kRight; public Vector3 MoveDirection; public void Update(float frameTime, Quaternion EntityRotation) { base.OnUpdate(frameTime); kForward = Convert.ToSingle(Input.KeyDown(EKeyId.eKI_W)) - Convert.ToSingle(Input.KeyDown(EKeyId.eKI_S)); kRight = Convert.ToSingle(Input.KeyDown(EKeyId.eKI_D)) - Convert.ToSingle(Input.KeyDown(EKeyId.eKI_A)); MoveDirection = new Vector3(kForward, kRight, 0) * EntityRotation; } } }
Here is the entity I dragged into the level:

Code: Select all

using System; using CryEngine.Common; namespace CryEngine.SampleApp.Player { [EntityClass(name: "First Person Player", category: "Players")] public class FirstPersonPlayer : EntityComponent { //Variables [EntityProperty(description: "The geometry used for representing the player.",type: EntityPropertyType.Object)] public string Geom { get { return Geom; } set { Geom = value; Initialize(); } } [EntityProperty(description: "Mass of the entity.")] public float Mass { get { return Mass; } set { Mass = value; Initialize(); } } [EntityProperty(description: "Player's maximum walking speed.")] public float WalkSpeed { get; set; } = 1.0f; [EntityProperty(description: "Player's maximum running speed.")] public float RunSpeed { get; set; } = 3.0f; //Input Keys InputManager InputM = new InputManager(); /// <summary> /// Event Tick /// </summary> /// <param name="frameTime">Delta seconds.</param> public override void OnUpdate(float frameTime) { base.OnUpdate(frameTime); //Update input values InputM.Update(frameTime: frameTime, EntityRotation: Entity.Rotation); //Walking Entity.Physics.Action((Common.pe_action_move action) => { action.dir = InputM.MoveDirection * WalkSpeed * frameTime; // iJump needs to be 2 for normal movement. You can also set it to 1 which will make the movement instant instead of adding it to velocity. action.iJump = 2; }); } /// <summary> /// This method resets/initializes the entity. /// </summary> public void Initialize() { Entity.Physics.Physicalize(mass: Mass, type: EPhysicalizationType.ePT_Rigid); Entity.LoadGeometry(slot: 0, url: Geom); } private void PhysicalizeLiving() { var physics = Entity.Physics; if (physics != null) { var parameters = new Common.SEntityPhysicalizeParams(); parameters.type = (int)Common.pe_type.PE_LIVING; parameters.mass = Mass; //PE_LIVING requires player-dimensions and player-dynamics to physicalize itself. var playerDimensions = new Common.pe_player_dimensions(); var playerDynamics = new Common.pe_player_dynamics(); #region Player dimensions // Set this to 0 for a cylinder shaped collider, or 1 for a capsule shape. playerDimensions.bUseCapsule = 1; // Change this to specify the size of your cylinder/capsule playerDimensions.sizeCollider = new Common.Vec3(0.45f, 0.45f, 0.45f); // Keep pivot at the player's feet (defined in player geometry) playerDimensions.heightPivot = 0.0f; // Offset collider upwards playerDimensions.heightCollider = 1.0f; playerDimensions.groundContactEps = 0.004f; parameters.pPlayerDimensions = playerDimensions; #endregion #region Player dynamics playerDynamics.kAirControl = 0.0f; playerDynamics.mass = Mass; parameters.pPlayerDynamics = playerDynamics; #endregion physics.Physicalize(parameters); } } } }
Could you explain what is causing this and why?

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#4
The only thing I can think of that might break it is that in Initialize() the physicalization happens before the geometry is loaded. Maybe it's unable to physicalize because of the missing geometry and that causes a crash? Try switching those two lines.
If that doesn't change anything you can also see whether it's Physicalize or LoadGeometry that is causing the crash by commenting them out and trying to drag the entity in again.

Just a small side-note, but there's a bug in CRYENGINE 5.3 that causes the OnUpdate() not to be called on an EntityComponent. Instead you can use OnPrePhysicsUpdate() which should do almost the same. This bug will be fixed in 5.4, and is already fixed in the source available from Github if that's what you are using.

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#5
It sadly didn't work, I switched the two lines so it would load geometry and then physicalize, I also commented out the LoadGeometry and also the physicalize but it still crashed. Maybe it has something to do with another issue I was facing, when I right click on the Cryproject and I click on edit code, and open monodevelop, when I build I get 1 error. This doesnt happen in visual studio 2017.

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#6
Which error do you get? Are you adding the two components to the same entity by they way? I remember something about a bug that was fixed for 5.4 where if one entity has more than 2 components that only the first component's properties would be initialized with the proper values. Mono also logs errors it runs into in the editor.log and game.log so if you can post the editor-log as well it might help to narrow the crash down.

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#7
Here is the log of monodevelop when I rebuild all.

Code: Select all

Cleaning Solution: SampleApp (Debug|x64) Cleaning: SampleApp (Debug|x64) Removing output files... Clean complete Building Solution: SampleApp (Debug|x64) Building: SampleApp (Debug|x64) Performing main compilation... ---------------------- Done ---------------------- Build failed. Illegal characters in path. Build: 1 error, 0 warnings
Editor log after crash:

Code: Select all

BackupNameAttachment=" Build(47) 30 Jun 17 (20 53 18)" -- used by backup system Log Started at Fri Jun 30 20:53:18 2017 Built on Apr 5 2017 00:45:53 Running 64 bit Windows version Command Line: "C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64\Sandbox.exe" -project "C:\Users\yiann\Documents\CRYENGINE Projects\First Person Game\SampleApp.cryproject" Executable: C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64\Sandbox.exe FileVersion: 5.3.4.47 ProductVersion: 5.3.4.47 Added MOD directory <%engineroot%> to CryPak Added MOD directory <%engineroot%/engine> to CryPak Total number of logical processors: 8 Number of available logical processors: 8 Total number of system cores: 4 Number of cores available to process: 4 Processor 0: CPU: Intel Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz Family: 6, Model: 12, Stepping: 3 FPU: On-Chip Features: FP16, SSE, SSE2, SSE3, SSE4.2, AVX, AVX2, FMA3 Serial number not present or disabled Processor 1: CPU: Intel Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz Family: 6, Model: 12, Stepping: 3 FPU: On-Chip Features: FP16, SSE, SSE2, SSE3, SSE4.2, AVX, AVX2, FMA3 Serial number not present or disabled Processor 2: CPU: Intel Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz Family: 6, Model: 12, Stepping: 3 FPU: On-Chip Features: FP16, SSE, SSE2, SSE3, SSE4.2, AVX, AVX2, FMA3 Serial number not present or disabled Processor 3: CPU: Intel Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz Family: 6, Model: 12, Stepping: 3 FPU: On-Chip Features: FP16, SSE, SSE2, SSE3, SSE4.2, AVX, AVX2, FMA3 Serial number not present or disabled <20:53:18> Loading Config file system.cfg (c:\program files (x86)\crytek\cryengine launcher\crytek\cryengine_5.3\system.cfg) <20:53:18> GameDir: Assets <20:53:18> [Warning] Config file game.cfg not found! <20:53:18> creating CVarGroups from directory 'assets/Config/CVarGroups' ... <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_full.cfg (assets\config\cvargroups\sys_spec_full.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_gameeffects.cfg (assets\config\cvargroups\sys_spec_gameeffects.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_light.cfg (assets\config\cvargroups\sys_spec_light.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_objectdetail.cfg (assets\config\cvargroups\sys_spec_objectdetail.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_particles.cfg (assets\config\cvargroups\sys_spec_particles.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_physics.cfg (assets\config\cvargroups\sys_spec_physics.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_postprocessing.cfg (assets\config\cvargroups\sys_spec_postprocessing.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_quality.cfg (assets\config\cvargroups\sys_spec_quality.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_shading.cfg (assets\config\cvargroups\sys_spec_shading.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_shadows.cfg (assets\config\cvargroups\sys_spec_shadows.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_sound.cfg (assets\config\cvargroups\sys_spec_sound.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_texture.cfg (assets\config\cvargroups\sys_spec_texture.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_textureresolution.cfg (assets\config\cvargroups\sys_spec_textureresolution.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_volumetriceffects.cfg (assets\config\cvargroups\sys_spec_volumetriceffects.cfg) <20:53:18> Loading Config file assets/Config/CVarGroups/sys_spec_water.cfg (assets\config\cvargroups\sys_spec_water.cfg) <20:53:18> creating CVarGroups from directory 'Engine/Config/CVarGroups' ... <20:53:18> <ThreadConfigInfo>: Thread profile loaded: "pc_8" (config/engine_core.thread_config) <20:53:18> <ThreadConfigInfo>: Thread profile loaded: "pc_8" (config/engine_sandbox.thread_config) <20:53:18> Windows 10 64 bit (build 10.0.15063) <20:53:18> User name: "yiann" <20:53:18> System language: English <20:53:18> Windows Directory: "C:\WINDOWS" <20:53:18> Local time is 20:53:18 06/30/17, system running for 635 minutes <20:53:18> 16336MB physical memory installed, 11911MB available, 134217727MB virtual memory installed, 27 percent of memory in use <20:53:18> PageFile usage: 44MB, Working Set: 50MB, Peak PageFile usage: 44MB, <20:53:18> Current display mode is 1920x1080x32, (Unknown graphics card) <20:53:18> IBM enhanced (101/102-key) keyboard and 3+ button mouse installed <20:53:18> -------------------------------------------------------------------------------- <20:53:18> [Warning] Config file %USER%/game.cfg not found! <20:53:18> Loading Config file system.cfg (c:\program files (x86)\crytek\cryengine launcher\crytek\cryengine_5.3\system.cfg) <20:53:18> [Warning] Config file user.cfg not found! <20:53:18> Stream Engine Initialization <20:53:18> GameName: First Person Game <20:53:18> BuildTime: Apr 5 2017 00:45:53 <20:53:18> Physics initialization <20:53:18> Initializing CryPhysics... <20:53:18> Initializing CryPhysics done, MemUsage=836Kb <20:53:18> [Warning] Cannot open Pak file assets\localization\english_xml.pak <20:53:18> Localized language content(english) not available or modified from the original installation. <20:53:18> [Warning] Cannot open Pak file assets\localization\english.pak <20:53:18> Localized language content(english) not available or modified from the original installation. <20:53:18> [Warning] Cannot open Pak file assets\localization\english.pak <20:53:18> Localized language content(english) not available or modified from the original installation. <20:53:18> [Error] <Localization> No localization files found! <20:53:18> <Audio>: AudioSystem initialization <20:53:18> Initializing CryAudioSystem... <20:53:18> Initializing CryAudioImplSDLMixer... <20:53:18> <Audio> <0.624>: CryAudioImplSDLMixer loaded <20:53:18> Initializing CryAudioImplSDLMixer done, MemUsage=5280Kb <20:53:18> Initializing CryAudioSystem done, MemUsage=5864Kb <20:53:18> Renderer initialization <20:53:18> Logging video adapters: <20:53:19> - NVIDIA GeForce GTX 970 (vendor = 0x10de, device = 0x13c2) <20:53:19> - Adapter index: 0 <20:53:19> - Dedicated video memory: 4059 MB <20:53:19> - Feature level: DX11 (SM 5.0) <20:53:19> - Displays connected: yes <20:53:19> - Suitable rendering device: yes <20:53:19> - Microsoft Basic Render Driver (vendor = 0x1414, device = 0x008c) <20:53:19> - Adapter index: 1 <20:53:19> - Dedicated video memory: 0 MB <20:53:19> - Feature level: DX11 (SM 5.0) <20:53:19> - Displays connected: no <20:53:19> - Suitable rendering device: no <20:53:19> Initializing CryRenderD3D11... <20:53:19> CRenderer sizeof(Vec2f16)=4 sizeof(Vec3f16)=8 <20:53:19> Initializing CryRenderD3D11 done, MemUsage=3732Kb <20:53:19> Initializing Direct3D and creating game window: <20:53:19> D3DX_SDK_VERSION = <UNDEFINED> <20:53:19> Direct3D driver is creating... <20:53:19> Crytek Direct3D driver version 2.00 (Apr 5 2017 <00:45:58>) <20:53:19> Creating window called 'First Person Game' (1280x684) <20:53:20> D3D Adapter: Description: NVIDIA GeForce GTX 970 <20:53:20> D3D Adapter: Driver version (UMD): 22.21.13.8205 <20:53:20> D3D Adapter: VendorId = 0x10DE <20:53:20> D3D Adapter: DeviceId = 0x13C2 <20:53:20> D3D Adapter: SubSysId = 0x31601462 <20:53:20> D3D Adapter: Revision = 161 <20:53:20> NVAPI: API init ok (0) <20:53:20> NVAPI: Single GPU system <20:53:20> NVDBT supported <20:53:20> D3D Detected: NVIDIA video card <20:53:20> Active GPUs: 1 <20:53:20> Using pixel texture formats: <20:53:20> R8G8B8A8S, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R8G8B8A8, mips (autogen), sRGB, blend, RT (multi-sampled), gather <20:53:20> A8, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R8, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R8S, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16, mips (autogen), blend, RT (multi-sampled), gather (comparable) <20:53:20> R16F, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R32F, mips (autogen), blend, RT (multi-sampled), gather (comparable) <20:53:20> R8G8, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R8G8S, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16S, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16F, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R11G11B10F, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R10G10B10A2, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16B16A16, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16B16A16S, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R16G16B16A16F, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> R32G32B32A32F, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> BC1, mips, sRGB, gather <20:53:20> BC2, mips, sRGB, gather <20:53:20> BC3, mips, sRGB, gather <20:53:20> BC4, mips, gather <20:53:20> BC4S, mips, gather <20:53:20> BC5, mips, gather <20:53:20> BC5S, mips, gather <20:53:20> BC6UH, mips, gather <20:53:20> BC6SH, mips, gather <20:53:20> BC7, mips, sRGB, gather <20:53:20> R9G9B9E5, mips, gather <20:53:20> R32FX8T, mips <20:53:20> R32T, mips <20:53:20> R24G8T, mips <20:53:20> R16T, mips <20:53:20> B5G6R5, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> B5G5R5, mips (autogen), blend, RT (multi-sampled), gather <20:53:20> B8G8R8A8, mips (autogen), sRGB, blend, RT (multi-sampled), gather <20:53:20> B8G8R8X8, mips (autogen), sRGB, blend, RT (multi-sampled), gather <20:53:20> Renderer HDR_Scalar: R32F <20:53:20> ****** D3D11 CryRender Stats ****** <20:53:20> Driver description: NVIDIA GeForce GTX 970 <20:53:20> Feature level: DirectX 11.0 <20:53:20> Full stats: <20:53:20> Rasterizer: Hardware <20:53:20> Current Resolution: 1280x684x32 Windowed <20:53:20> HDR Rendering: FP16 <20:53:20> Occlusion queries: Supported <20:53:20> Geometry instancing: Supported <20:53:20> NormalMaps compression : Supported <20:53:20> Gamma control: Hardware <20:53:20> Vertex Shaders version 4.0 <20:53:20> Pixel Shaders version 4.0 <20:53:20> Used GeomInstancingThreshold is 8 <20:53:20> Shader model usage: 'SM.5.0' <20:53:20> ***************************************** <20:53:20> <20:53:20> Init Shaders <20:53:20> Flushing pended shaders... <20:53:20> Finished flushing pended shaders... <20:53:20> Flushing pended shaders... <20:53:20> Finished flushing pended shaders... <20:53:20> General shader quality: Medium <20:53:20> Metal shader quality: Medium <20:53:20> Glass shader quality: Medium <20:53:20> Vegetation shader quality: Medium <20:53:20> Ice shader quality: Medium <20:53:20> Terrain shader quality: Medium <20:53:20> Shadow shader quality: Medium <20:53:20> Water shader quality: Medium <20:53:20> FX shader quality: Medium <20:53:20> PostProcess shader quality: Medium <20:53:20> HDR shader quality: Medium <20:53:20> Sky shader quality: Medium <20:53:20> Render quality: VeryHigh <20:53:20> Allocate render buffer for particles (16384 verts, 49152 tris)... <20:53:20> Init textures management (4059 Mb of video memory is available)... <20:53:20> Enabling of textures streaming... <20:53:20> Using 1536 Mb of textures pool for streaming... <20:53:20> Video textures: Atlas clouds max size: 32 Mb <20:53:20> Video textures: Atlas sprites max size: 32 Mb <20:53:20> Video textures: Dynamic managed max size: 48 Mb <20:53:20> Reloading all textures... <20:53:20> Finished reloading textures... <20:53:20> Finished initializing textures streaming... <20:53:20> CParserBin::Preprocess: tokenBuffer has been exceeded (buffer=88000, count=92654). Adjust buffer size to remove unnecessary allocs. <20:53:20> CParserBin::Preprocess: tokenBuffer has been exceeded (buffer=88000, count=92654). Adjust buffer size to remove unnecessary allocs. <20:53:20> [Renderer] A display device has been connected to the system <20:53:20> Initialized hardware mouse (game is allowed to confine mouse to window) <20:53:20> CryMonoBridge initialization <20:53:20> Initializing CryMonoBridge... <20:53:20> [Mono] Initialize Mono Runtime . . . <20:53:20> [Mono] Initialization done. <20:53:20> Initializing CryMonoBridge done, MemUsage=5136Kb <20:53:20> Loading plugin CryDefaultEntities <20:53:20> Initializing CryDefaultEntities... <20:53:20> Initializing CryDefaultEntities done, MemUsage=232Kb <20:53:20> Loading plugin CrySchematycCore <20:53:20> Initializing CrySchematycCore... <20:53:20> Initializing CrySchematycCore done, MemUsage=436Kb <20:53:20> Loading plugin CrySchematycSTDEnv <20:53:20> Initializing CrySchematycSTDEnv... <20:53:20> Initializing CrySchematycSTDEnv done, MemUsage=368Kb <20:53:20> Loading plugin CrySensorSystem <20:53:20> Initializing CrySensorSystem... <20:53:20> Initializing CrySensorSystem done, MemUsage=236Kb <20:53:20> Loading extension file cryplugin.csv <20:53:20> Loading plugin bin/win_x64/CryEngine.SampleApp.dll <20:53:20> Initializing CryScaleformHelper... <20:53:20> Initializing CryScaleformHelper done, MemUsage=0Kb <20:53:20> Using Scaleform GFx 3.3.94 <20:53:20> Using dynamic pool <20:53:20> Font initialization <20:53:20> Initializing CryFont... <20:53:20> Using FreeType 2.5.5 <20:53:20> Initializing CryFont done, MemUsage=224Kb <20:53:21> *** Init system render resources *** <20:53:21> Allocate render buffer for particles (16384 verts, 49152 tris)... <20:53:21> Network initialization <20:53:21> Initializing CryNetwork... <20:53:21> [LagProfiles] Could not load "". 6 default profiles activated. <20:53:21> [net] Socket IO management: External [iocp], Internal [iocp] <20:53:21> network hostname: DESKTOP-T02T0IH <20:53:21> ip:192.168.178.98 <20:53:21> [Network Version]: PROFILE DEVELOPMENT BUILD <20:53:21> Initializing CryNetwork done, MemUsage=2196Kb <20:53:21> Online initialization <20:53:21> Initializing CryOnline... <20:53:21> DLL Failed to load, error code: 7E <20:53:21> MovieSystem initialization <20:53:21> Initializing CryMovie... <20:53:21> Initializing CryMovie done, MemUsage=580Kb <20:53:21> Console initialization <20:53:21> Time initialization <20:53:21> Input initialization <20:53:21> Initializing CryInput... <20:53:21> Initializing DirectInput <20:53:21> Initializing Keyboard <20:53:21> Input locale changed to 00000409 <20:53:21> Initializing mouse <20:53:21> Initializing CryInput done, MemUsage=696Kb <20:53:21> AI initialization <20:53:21> Initializing CryAISystem... <20:53:21> Initializing CryAISystem done, MemUsage=1364Kb <20:53:21> <20:53:21> con_debug=0 [ ] <20:53:21> con_display_last_messages=0 [ ] <20:53:21> con_line_buffer_size=1000 [ ] <20:53:21> con_restricted=0 [ RESTRICTEDMODE ] <20:53:21> con_showonload=0 [ ] <20:53:21> <20:53:21> con_debug=0 [ ] <20:53:21> con_display_last_messages=0 [ ] <20:53:21> con_line_buffer_size=1000 [ ] <20:53:21> con_restricted=0 [ RESTRICTEDMODE ] <20:53:21> con_showonload=0 [ ] <20:53:21> <20:53:21> con_debug=0 [ ] <20:53:21> <20:53:21> con_debug=0 [ ] <20:53:21> Initializing Animation System <20:53:21> Initializing CryAnimation... <20:53:21> Initializing CryAnimation done, MemUsage=2104Kb <20:53:21> Initializing 3D Engine <20:53:21> Initializing Cry3DEngine... <20:53:21> Sky light: Optical lookup tables loaded off disc. <20:53:21> Initializing Cry3DEngine done, MemUsage=2380Kb <20:53:21> Script System Initialization <20:53:21> Initializing CryScriptSystem... <20:53:21> [Warning] [Lua Error] Failed to load script file scripts/common.lua <20:53:21> Initializing CryScriptSystem done, MemUsage=576Kb <20:53:21> Entity system initialization <20:53:21> Initializing CryEntitySystem... <20:53:21> Initializing CryEntitySystem done, MemUsage=1752Kb <20:53:21> LiveCreate initialization <20:53:21> LiveCreateHost not created, using NULL implementation. <20:53:21> Initializing AI System <20:53:21> AI: [AISYSTEM] Initialization started. <20:53:21> [Warning] AI: [FactionMap] Failed to load factions from data source! <20:53:21> [Warning] XML reader: Can't open file (Scripts/AI/Communication/CommunicationSystemConfiguration.xml) <20:53:21> [Warning] AI: Failed to open XML file 'Scripts/AI/Communication/CommunicationSystemConfiguration.xml'... <20:53:21> [Warning] [Lua Error] Failed to load script file scripts/ai/aiconfig.lua <20:53:21> [Warning] XML reader: Can't open file (Scripts/AI/lookup.xml) <20:53:21> Registering CentralInterestManager with EntitySystem <20:53:21> [Warning] XML reader: Can't open file (Libs/AITargetStimulusConfig.xml) <20:53:21> [Warning] AI: CTargetTrackManager::Init() Warning: Failed to load configuration file 'Libs/AITargetStimulusConfig.xml' <20:53:21> AI: [AISYSTEM] Initialization finished. <20:53:21> [Warning] XML reader: Can't open file (Scripts/AI/Cover.xml) <20:53:21> [Warning] AI: Failed to open XML file 'Scripts/AI/Cover.xml'... <20:53:21> [Warning] XML reader: Can't open file (Scripts/AI/Navigation.xml) <20:53:21> [Warning] AI: Failed to open XML file 'Scripts/AI/Navigation.xml'... <20:53:21> Initializing additional systems <20:53:21> Dynamic Response System initialization <20:53:21> Initializing CryDynamicResponseSystem... <20:53:21> Initializing CryDynamicResponseSystem done, MemUsage=504Kb <20:53:21> OnSysSpecChange(0) <20:53:21> Loading Config file %ENGINEROOT%/editor.cfg (c:\program files (x86)\crytek\cryengine launcher\crytek\cryengine_5.3\editor.cfg) <20:53:21> Flushing pended textures... <20:53:21> Finished flushing pended textures... <20:53:21> [Warning] XML reader: Can't open file (Libs/Levels/leveltypes.xml) <20:53:21> [Warning] XML reader: Can't open file (Libs/FlowNodes/DialogFlowNodeBuffers.xml) <20:53:21> [Warning] [Lua Error] Failed to load script file Scripts/Entities/Vehicles/VehicleSystem.lua <20:53:21> [Warning] XML reader: Can't open file (Libs/Readability/Faces/Faces.xml) <20:53:21> [Warning] XML reader: Can't open file (Libs/Config/Profiles/default/attributes.xml) <20:53:21> [Warning] [PlayerProfiles] PlayerProfileImplFS: Cannot load XML file 'Libs/Config/Profiles/default/attributes.xml' <20:53:21> [Warning] XML reader: Can't open file (Libs/Config/Profiles/default/actionmaps.xml) <20:53:21> [Warning] [PlayerProfiles] PlayerProfileImplFS: Cannot load XML file 'Libs/Config/Profiles/default/actionmaps.xml' <20:53:21> [Warning] CPlayerProfile::SerializeXML: No attributes tag 'Attributes' found <20:53:21> [Warning] [PlayerProfiles] Cannot load factory default profile 'default' <20:53:21> [Warning] [PlayerProfiles] CCryAction::Init: Cannot initialize PlayerProfileManager <20:53:21> [Warning] XML reader: Can't open file (Scripts/Network/StatsConfig.xml) <20:53:21> Ending game context... <20:53:21> [Warning] [Lua Error] Failed to load script file Scripts/Entities/Vehicles/VehiclePartDetached.lua <20:53:21> [Warning] [Lua Error] Failed to load script file Scripts/Entities/Environment/WaterVolume.lua <20:53:21> [Warning] XML reader: Can't open file (Libs/GameForceFeedback/ForceFeedbackEffects.xml) <20:53:21> [Warning] [ForceFeedback System] Could not load force feedback system data. Invalid XML file 'Libs/GameForceFeedback/ForceFeedbackEffects.xml'! <20:53:21> [Warning] XML reader: Can't open file (Libs/MaterialEffects/SurfaceTypes.xml) <20:53:21> Initializing default materials... <20:53:21> [Warning] XML reader: Can't open file (materials/material_layers_default.mtl) <20:53:21> [Warning] [Lua Error] Failed to load script file scripts/main.lua <20:53:21> [Warning] [CScriptSystem::BeginCall] Function OnInit not found(check for syntax errors or if the file wasn't loaded) <20:53:21> [Mono] Load Library: c:/program files (x86)/crytek/cryengine launcher/crytek/cryengine_5.3/bin/win_x64/cryengine.common.dll <20:53:21> [Mono] Load Library: c:/program files (x86)/crytek/cryengine launcher/crytek/cryengine_5.3/bin/win_x64/cryengine.core.dll <20:53:21> [Mono] Load Library: c:/program files (x86)/crytek/cryengine launcher/crytek/cryengine_5.3/bin/win_x64/cryengine.core.ui.dll <20:53:21> [Mono] Load Library: bin/win_x64/cryengine.sampleapp.dll <20:53:21> [Warning] XML reader: Can't open file (libs/materialeffects/materialeffects.xml) <20:53:21> [Warning] [MFX] File not found or wrong file type: libs/materialeffects/materialeffects.xml <20:53:21> UnitTesting Finished Tests: 71 Succeeded: 71, Failed: 0, Time: 33.25 ms <20:53:21> [Schematyc]: Loading... <20:53:21> [Schematyc]: Loading settings <20:53:21> [Warning] XML reader: Can't open file (libs/schematyc/settings/log_settings.sc_settings) <20:53:21> [Schematyc]: Loading scripts <20:53:21> [Schematyc]: Compiling scripts <20:53:21> [Schematyc]: Loading complete <20:53:21> [CONSOLE] Executing console command 'exec autoexec.cfg' <20:53:21> Executing console batch file (try game,config,root): "autoexec.cfg" not found! <20:53:21> Current Language: English <20:53:21> Windows 10 10.0 (C:\WINDOWS) <20:53:21> Local time is 20:53:21 06/30/17, system running for 635 minutes <20:53:21> 16336MB phys. memory installed, 12015MB paging available <20:53:21> Current display mode is 1920x1080x32, (Unknown graphics card) <20:53:21> IBM enhanced (101/102-key) keyboard and 3+ button mouse installed <20:53:21> -------------------------------------------------------------------------------- <20:53:21> Loading Config file singleplayer.cfg (assets\config\singleplayer.cfg) <20:53:22> [Warning] [Lua Error] Failed to load script file scripts/ai/pathfindProperties.lua <20:53:22> AI: [AISYSTEM] Initializing AI Actions. <20:53:22> AI: [AISYSTEM] Initializing Smart Objects. <20:53:22> [Warning] XML reader: Can't open file (Libs/SmartObjects.xml) <20:53:22> [Warning] XML reader: Can't open file (Libs/SmartObjects/Templates/SOTemplates.xml) <20:53:22> Unloading all previous plugins <20:53:22> Loading plugins... <20:53:22> Successfully loaded plugin '3DConnexionDriver', version '1' (GUID: {AD109901-9128-4ffd-8E67-137CB2B1C41B}) <20:53:22> Successfully loaded plugin 'CryDesigner', version '1' (GUID: ) <20:53:22> Successfully loaded plugin 'EditorPhysics', version '1' (GUID: (null)) <20:53:22> Successfully loaded plugin 'AudioControlsEditor', version '1' (GUID: {DFA4AFF7-2C70-4B29-B736-GRH00040314}) <20:53:22> Successfully loaded plugin 'QtConsole', version '1' (GUID: {B0E9DE33-C2E3-4506-8B63-B023327156BB}) <20:53:22> Cannot query plugin DLL 'C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64/EditorPlugins\EditorCryAudioImplFmod.dll' factory pointer (is it a Sandbox plugin?) <20:53:22> Cannot query plugin DLL 'C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64/EditorPlugins\EditorCryAudioImplSDLMixer.dll' factory pointer (is it a Sandbox plugin?) <20:53:22> Cannot query plugin DLL 'C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\bin\win_x64/EditorPlugins\EditorCryAudioImplWwise.dll' factory pointer (is it a Sandbox plugin?) <20:53:22> Successfully loaded plugin 'DynamicResponseSystemEditor', version '1' (GUID: {DFA4AFF7-2C70-4B29-B736-GRH00290515}) <20:53:22> Successfully loaded plugin 'EditorEnvironment', version '1' (GUID: {800BBFA9-9895-4E81-AB02-7425FD4F5554}) <20:53:22> Successfully loaded plugin 'EditorGameSDK', version '1' (GUID: ) <20:53:22> Successfully loaded plugin 'ParticleLibrary', version '1' (GUID: (null)) <20:53:22> [SchematycEditor]: Initializing... <20:53:22> [SchematycEditor]: Fixing up script files <20:53:22> [SchematycEditor]: Compiling script files <20:53:22> [SchematycEditor]: Initialization complete <20:53:22> Successfully loaded plugin 'Schematyc Plug-in', version '1' (GUID: {91A8A207-F8F0-4D5B-B8CA-613B4920581F}) <20:53:22> Successfully loaded plugin 'TrackView', version '1' (GUID: {7C4EB160-30AC-44C1-92D6-6D4B74B2E96B}) <20:53:22> Successfully loaded plugin 'UQS Editor', version '1' (GUID: {691839E0-5756-46D5-8311-5D49A953EFA9}) <20:53:22> Successfully loaded plugin 'UQS Query History Inspector', version '1' (GUID: {37D8BA31-2926-4F48-9C39-AF3E8B04B52B}) <20:53:22> FBX plugin: CreatePluginInstance <20:53:22> Successfully loaded plugin 'FBX Exporter', version '1' (GUID: {6CD02F95-362C-4ADF-8BAE-87C6342A8027}) <20:53:22> Successfully loaded plugin 'MeshImporter', version '1' (GUID: {4F68F679-39AD-4BB4-B5E2-8A8DD3020DC1}) <20:53:22> Successfully loaded plugin 'Sandbox Python Bridge', version '0' (GUID: {33C4B150-679F-49A2-81C1-0C594AE37A86}) <20:53:22> Started game resource files indexing... <20:53:22> OnSysSpecChange(4) <20:53:22> Loading Config file VeryHighSpec.cfg (assets\config\veryhighspec.cfg) <20:53:22> Flushing pended shaders... <20:53:22> Finished flushing pended shaders... <20:53:22> CParserBin::Preprocess: tokenBuffer has been exceeded (buffer=88000, count=92654). Adjust buffer size to remove unnecessary allocs. <20:53:22> Flushing pended shaders... <20:53:22> Finished flushing pended shaders... <20:53:22> Allocating shadow map cache 4214 x 4214: 33.87 MB <20:53:22> Loading Config file %ENGINEROOT%/editor.cfg (c:\program files (x86)\crytek\cryengine launcher\crytek\cryengine_5.3\editor.cfg) <20:53:22> Flushing pended textures... <20:53:22> Finished flushing pended textures... <20:53:22> CAIManager: navigation world monitor state: Stopped -> Started <20:53:22> [CONSOLE] Executing console command 'exec editor.cfg' <20:53:22> Executing console batch file (try game,config,root): "editor.cfg" found in %ENGINEROOT%/editor.cfg ... <20:53:22> ca_UseIMG_CAF=0 [ ] <20:53:22> drs_dialogSubtitles=1 [ ] <20:53:22> general.run_file 'C:/Program Files (x86)/Crytek/CRYENGINE Launcher/Crytek/CRYENGINE_5.3/Editor/Python/plugins/crytools/startup.py' <20:53:22> checking C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox\init.py <20:53:22> <20:53:22> Loading crytools from C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox <20:53:22> <20:53:22> sandbox_tools_pathC:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox <20:53:22> <20:53:22> added C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\python\lib\common <20:53:22> <20:53:22> C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\python\packages <20:53:22> <20:53:22> added C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox\lib\common <20:53:22> <20:53:22> added C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox\tools <20:53:22> <20:53:22> Registered override path : C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\CRYENGINE_5.3\Tools\sandbox\lib\override\common <20:53:22> <20:53:23> Returned: <20:53:23> Adding for file change notifications: 'assets\' <20:53:23> Adding for file change notifications: './assets/' <20:53:23> Remote console listening on: 4600 <20:53:23> Flushing pended shaders... <20:53:23> Finished flushing pended shaders... <20:53:23> Flushing pended shaders... <20:53:23> Finished flushing pended shaders... <20:53:23> Flushing pended shaders... <20:53:23> Finished flushing pended shaders... <20:53:23> Flushing pended shaders... <20:53:23> Finished flushing pended shaders... <20:53:27> general.open <20:53:28> Opening document Assets/levels/test_walk/test_walk.cry <20:53:28> SetGlobalState 0->1 'INIT'->'LEVEL_LOAD_PREPARE' 38130.8 seconds <20:53:28> CAIManager: navigation world monitor state: Started -> StartedAndPaused <20:53:28> Ending game context... <20:53:28> Destroying CActionGame instance 000001A8569319D0 (level="") <20:53:28> Loading from Assets/levels/test_walk/test_walk.cry... <20:53:28> Loading Config file singleplayer.cfg (assets\config\singleplayer.cfg) <20:53:28> [GameRules]No game rules <20:53:28> [GameRules]No game rules <20:53:28> Loading missions... <20:53:28> ---- Start: Load Terrain <20:53:28> CRGBLayer::AllocateTiles 1x1 tiles 512 => 512x512 texture <20:53:28> allocating editor height map (1024x1024)*4 <20:53:28> ---- Start: Loading Surface Types <20:53:28> ---- End: Loading Surface Types (0 seconds) <20:53:28> ---- Start: Loading Terrain Layers Info <20:53:28> Loading layer settings... <20:53:28> Loading layer texture (engineassets/textures/grey.dds)... <20:53:28> loaded editor layer 0 name='Default' LayerID=0 <20:53:28> ---- End: Loading Terrain Layers Info (0 seconds) <20:53:28> ---- Start: Load Terrain <20:53:28> ---- End: Load Terrain (0 seconds) <20:53:28> ---- Start: Process RGB Terrain Layers <20:53:28> ---- End: Process RGB Terrain Layers (0 seconds) <20:53:28> CRGBLayer::AllocateTiles 1x1 tiles 512 => 512x512 texture <20:53:28> Loading terrain layers for segment 0 ... <20:53:28> Loading RGB Layer Tile: TilePos=(0, 0) MemUsage=0.0MB <20:53:28> Constructing 1365 terrain nodes (0.5 MB) <20:53:28> done in 0.00 sec <20:53:28> Loading terrain layers for segment 0 ... <20:53:28> ---- End: Load Terrain (0 seconds) <20:53:28> ---- Start: Game Engine level load <20:53:28> Loading map 'assets/levels/test_walk' into engine... <20:53:28> ===== Loading Particle Effects ===== <20:53:28> ---- End: Game Engine level load (0 seconds) <20:53:28> ---- Start: Load MaterialManager <20:53:28> ---- End: Load MaterialManager (0 seconds) <20:53:28> ---- Start: Load Particles <20:53:28> ---- End: Load Particles (0 seconds) <20:53:28> ---- Start: Load Flares <20:53:28> ---- End: Load Flares (0 seconds) <20:53:28> ---- Start: Load GameTokens <20:53:28> ---- End: Load GameTokens (0 seconds) <20:53:28> Loading View settings... <20:53:28> ---- Start: Load Vegetation <20:53:28> Loading Vegetation Map... <20:53:28> ---- End: Load Vegetation (0 seconds) <20:53:28> ---- Start: Reposition Vegetation <20:53:28> ---- End: Reposition Vegetation (0 seconds) <20:53:28> ---- Start: Updating Surface Types <20:53:28> Loading terrain layers for segment 0 ... <20:53:28> ---- End: Updating Surface Types (0 seconds) <20:53:28> Loading Fog settings... <20:53:28> ---- Start: Load Entity Archetypes Database <20:53:28> ---- Start: Load Prefabs Database <20:53:28> ---- End: Load Prefabs Database (0 seconds) <20:53:28> ---- Start: Activating Mission Mission0 <20:53:28> Loading AI data assets/levels/test_walk, Mission0 <20:53:28> Finished Loading AI data in 0.001 secs <20:53:28> ---- End: Activating Mission Mission0 (0 seconds) <20:53:28> ---- Start: Load Level Shader Cache <20:53:28> ---- End: Load Level Shader Cache (0 seconds) <20:53:28> ---- Start: Post Load <20:53:28> ---- End: Post Load (0 seconds) <20:53:28> [LevelLoadTime] Level assets/levels/test_walk loaded in 0 seconds <20:53:28> ---- End: Load Entity Archetypes Database (0 seconds) <20:53:28> SetGlobalState 1->9 'LEVEL_LOAD_PREPARE'->'LEVEL_LOAD_TEXTURES' 0.9 seconds <20:53:28> -- Presort shaders by states... <20:53:28> --- 15 Resources, 1 Resource groups. <20:53:28> Requesting textures precache ... <20:53:28> -- Precaching textures... <20:53:28> Precaching progress: 1 <20:53:28> Precaching progress: 2 <20:53:28> Precaching progress: 3 <20:53:28> Precaching progress: 4 <20:53:28> Precaching progress: 5 <20:53:28> Precaching progress: 6 <20:53:28> Precaching progress: 7 <20:53:28> Precaching progress: 8 <20:53:28> Precaching progress: 9 <20:53:28> Precaching textures done in 0.01 seconds <20:53:28> Textures precache done. <20:53:28> SetGlobalState 9->10 'LEVEL_LOAD_TEXTURES'->'LEVEL_LOAD_END' 0.0 seconds <20:53:28> File access time during level loading: 0.10 seconds <20:53:28> CAIManager: navigation world monitor state: StartedAndPaused -> StartedPausedAndResumePending <20:53:28> SetGlobalState 10->13 'LEVEL_LOAD_END'->'RUNNING' 0.0 seconds <20:53:28> ----------------------------------------------------------- <20:53:28> Successfully opened document Assets/levels/test_walk/ <20:53:28> Level loading time: 0.88 seconds <20:53:28> ----------------------------------------------------------- <20:53:28> Returned: <20:53:28> CAIManager: navigation world monitor state: StartedPausedAndResumePending -> Stopped <20:53:28> CAIManager: navigation world monitor state: Stopped -> Started <20:53:28> Opening terrain\cover.ctc ... <20:53:28> TerrainLayer 0: TexFormat: BC3, SectorTextureSize: 256x256, SectorTextureDataSizeBytes: 65536 <20:53:28> TerrainLayer 1: TexFormat: BC3, SectorTextureSize: 256x256, SectorTextureDataSizeBytes: 65536 <20:53:28> RGB multiplier: 8, Texture indices: 21 <CRITICAL EXCEPTION> Exception: 0xC00000FD, at Address: 0x0033:0x000001A8666CD758 Virtual memory usage: 1364Mb Debug Status: Last D3D debug message: No message queued. Debug runtime might be inactive or not installed. Exception Code: 0xC00000FD Exception Addr: 0x0033:0x000001A8666CD758 Exception Module: <Unknown> Exception Name : EXCEPTION_STACK_OVERFLOW Exception Description: Exception Code: 0xC00000FD Exception Addr: 0x0033:0x000001A8666CD758 Exception Module: <Unknown> Exception Description: EXCEPTION_STACK_OVERFLOW, Memory in use: 1463.1MB Debug Status: Out of Memory: 0 MainThread Id: 4416 RenderThread Id: 4416 [Crashed] Thread Id: 3804 [Crashed] ThreadName: [Crashed] Call Stack: ["ThreadNameUnknown" [3804]] ============================================================================= 2) function=0x000001A8666CD758 1) function=0x000001A8666CD758 ============================================================================= Call Stack: ["RemoteConsoleServer" [13788]] 10) function=0x00007FFA07535434 9) function=0x00007FFA031B85A2 8) function=0x00007FFA031C237A 7) function=0x00007FFA069E7CFC 6) function=0x00007FFA069E7C22 5) function=0x00007FF9B5C250F1 4) function=0x00007FF9B58B9523 3) function=0x00007FFA041A0369 2) function=0x00007FFA04D52774 1) function=0x00007FFA07500D61 Call Stack: ["ShaderCompile" [9252]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9B3A76B53 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["NotificationNetwork" [5592]] 10) function=0x00007FFA07535434 9) function=0x00007FFA031B85A2 8) function=0x00007FFA031BEDE1 7) function=0x00007FFA069E4493 6) function=0x00007FF9B59F9BFC 5) function=0x00007FF9B5A0C17A 4) function=0x00007FF9B58B9523 3) function=0x00007FFA041A0369 2) function=0x00007FFA04D52774 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_7" [8676]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_6" [7940]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_5" [13344]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_4" [1744]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_3" [8432]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_2" [13928]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_1" [13412]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_0" [8488]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD4AC0 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming AsyncCallback" [13096]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B587E98E 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["JobSystem_Worker_0 (Blocking)" [10488]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5BD3412 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming File IO HDD" [6012]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9B5956B5D 7) function=0x00007FF9B5882B98 6) function=0x00007FF9B587C0A6 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Streaming File IO InMemory" [7524]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9B5956B5D 7) function=0x00007FF9B5882B98 6) function=0x00007FF9B587C0A6 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["GFxMeshCacheReset" [8088]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5849939 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["ServiceNetwork" [6148]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9B5C23CD5 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["PhysicsWorkerThread_0" [3580]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B44B3397 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["NetAddressSolver" [7576]] 10) function=0x00007FFA07538BE4 9) function=0x00007FFA07500009 8) function=0x00007FFA03CAE938 7) function=0x00007FF9B2656F57 6) function=0x00007FF9B2562044 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["UserAnalytics" [8452]] 9) function=0x00007FFA07538BE4 8) function=0x00007FFA07500009 7) function=0x00007FFA03CAE938 6) function=0x00007FF9D564A601 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["InputWorker" [14008]] 8) function=0x00007FFA07535A34 7) function=0x00007FFA03C97287 6) function=0x00007FF9D3FE131F 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["ZLibCompressor" [10680]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5309593 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Physics" [12556]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF9B5A0B99E 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["MainAudioThread" [912]] 9) function=0x00007FFA07535A34 8) function=0x00007FFA03C97287 7) function=0x00007FF9D4E1DEE7 6) function=0x00007FF9D4E389CA 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_1" [1132]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_2" [12016]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_0" [6164]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_3" [10744]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["BackgroundTask_IO" [12468]] 8) function=0x00007FFA07535434 7) function=0x00007FFA03C7988F 6) function=0x00007FF7A50C82FD 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["FileChangeMonitor" [7648]] 9) function=0x00007FFA07535F04 8) function=0x00007FFA03C8DD20 7) function=0x00007FFA03C8DC1E 6) function=0x00007FF7A556FEC6 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["CaptureCrashScreenShot" [10212]] 9) function=0x00007FFA07538BE4 8) function=0x00007FFA07500009 7) function=0x00007FFA03CAE938 6) function=0x00007FF9B5950FCA 5) function=0x00007FF9B58B9523 4) function=0x00007FFA041A0369 3) function=0x00007FFA04D52774 2) function=0x00007FFA07500D61 1) function=0x00007FFA07500D61 Call Stack: ["Main" [4416]] 10) function=0x00007FFA07535434 9) function=0x00007FFA03C7988F 8) function=0x00007FF9B5EE3E14 7) function=0x00007FFA03C46913 6) function=0x00007FFA0753DA9D 5) function=0x00007FFA07526476 4) function=0x00007FFA0753A08D 3) function=0x00007FFA074A9C58 2) function=0x00007FFA0753910E 1) function=0x000001A8666CD758 <20:53:33> Saved dump file to 'error.dmp' Attempting to create error screenshot "error.jpg" <20:53:33> <20:53:33> Screenshot: error.jpg <20:53:33> [Warning] Unknown command: goto <20:53:33> <20:53:33> Drawcalls: 275 <20:53:33> FPS: 210.2 (5.3 ms) <20:53:33> Tris: 68,215 <20:53:33> CGF streaming: Loaded:0 InProg:0 All:0 Act:0 MemUsed:0.00 MemReq:0.00 PoolSize:128 <20:53:33> TexStreaming: MemUsed:0.04MB(0%%) PoolSize:1536.00MB Trghput:1170.29KB/s <20:53:33> [CONSOLE] Executing console command 'sys_RestoreSpec test*' <20:53:33> <20:53:33> sys_spec = 4 <20:53:33> <20:53:33> Successfully created screenshot.

Re: Sandbox Crashes When C# Entity Is Dragged Into Level

#8
I've figured out what's going wrong. The Geom and Mass property are causing an infinite loop. Also, your InputManager is currently an EntityComponent but since you don't add it to the Entity with AddComponent and it doesn't override the EntityComponent methods it's better to make the InputManager not inherit from EntityComponent. I've also made a small change to the OnUpdate function so it doesn't constantly run in the editor if the game mode is not active (which can cause a nullreference exception).

So the FirstPersonPlayer now looks like:

Code: Select all

using System; using CryEngine.Common; namespace CryEngine.SampleApp.Player { [EntityClass(name: "First Person Player", category: "Players")] public class FirstPersonPlayer : EntityComponent { private float _mass; private string _geom; //Variables [EntityProperty(description: "The geometry used for representing the player.",type: EntityPropertyType.Object)] public string Geom { get { return _geom; } set { _geom = value; Initialize(); } } [EntityProperty(description: "Mass of the entity.")] public float Mass { get { return _mass; } set { _mass = value; Initialize(); } } [EntityProperty(description: "Player's maximum walking speed.")] public float WalkSpeed { get; set; } = 1.0f; [EntityProperty(description: "Player's maximum running speed.")] public float RunSpeed { get; set; } = 3.0f; //Input Keys InputManager InputM = new InputManager(); /// <summary> /// Event Tick /// </summary> /// <param name="frameTime">Delta seconds.</param> public override void OnPrePhysicsUpdate (float frameTime) { base.OnPrePhysicsUpdate (frameTime); if (!Global.gEnv.IsEditorGameMode ()) { return; } //Update input values InputM.Update(frameTime: frameTime, EntityRotation: Entity.Rotation); //Walking Entity.Physics.Action((Common.pe_action_move action) => { action.dir = InputM.MoveDirection * WalkSpeed * frameTime; // iJump needs to be 2 for normal movement. You can also set it to 1 which will make the movement instant instead of adding it to velocity. action.iJump = 2; }); } public override void OnEditorGameModeChange (bool enterGame) { base.OnEditorGameModeChange (enterGame); if (enterGame) { Initialize (); } } /// <summary> /// This method resets/initializes the entity. /// </summary> public void Initialize() { if (!string.IsNullOrWhiteSpace (Geom)) { Entity.LoadGeometry (slot: 0, url: Geom); } PhysicalizeLiving (); } private void PhysicalizeLiving() { var physics = Entity.Physics; if (physics != null) { var parameters = new Common.SEntityPhysicalizeParams(); parameters.type = (int)Common.pe_type.PE_LIVING; parameters.mass = Mass; //PE_LIVING requires player-dimensions and player-dynamics to physicalize itself. var playerDimensions = new Common.pe_player_dimensions(); var playerDynamics = new Common.pe_player_dynamics(); #region Player dimensions // Set this to 0 for a cylinder shaped collider, or 1 for a capsule shape. playerDimensions.bUseCapsule = 1; // Change this to specify the size of your cylinder/capsule playerDimensions.sizeCollider = new Common.Vec3(0.45f, 0.45f, 0.45f); // Keep pivot at the player's feet (defined in player geometry) playerDimensions.heightPivot = 0.0f; // Offset collider upwards playerDimensions.heightCollider = 1.0f; playerDimensions.groundContactEps = 0.004f; parameters.pPlayerDimensions = playerDimensions; #endregion #region Player dynamics playerDynamics.kAirControl = 0.0f; playerDynamics.mass = Mass; parameters.pPlayerDynamics = playerDynamics; #endregion physics.Physicalize(parameters); } } } }
and InputManager:

Code: Select all

using System; using CryEngine.Common; namespace CryEngine.SampleApp { public class InputManager// : EntityComponent { //Keys public float kForward; public float kRight; public Vector3 MoveDirection; public void Update(float frameTime, Quaternion EntityRotation) { kForward = Convert.ToSingle(Input.KeyDown(EKeyId.eKI_W)) - Convert.ToSingle(Input.KeyDown(EKeyId.eKI_S)); kRight = Convert.ToSingle(Input.KeyDown(EKeyId.eKI_D)) - Convert.ToSingle(Input.KeyDown(EKeyId.eKI_A)); MoveDirection = new Vector3(kForward, kRight, 0) * EntityRotation; } } }
I did a quick test with this and it makes the entity move, although extremely slow (might be because the model I used was sliding over the floor which caused it to slow down).

Good luck with your project!

Who is online

Users browsing this forum: No registered users and 1 guest