Announcement

Collapse
No announcement yet.

How to enable Chaos

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hey guys!
    Has anybody tried to built the project?
    In my build I can see collections but can't interact with them. It looks like plugin doesn't work, but there weren't any errors while building.
    Help please If someone succeed with that.

    Comment


      Hi Devs I'm using 4.24.3 repository to build the source. Here is how my UE4Editor.Target.cs looks:
      Code:
      using UnrealBuildTool;
      using System.Collections.Generic;
      
      public class UE4EditorTarget : TargetRules
      {
      public UE4EditorTarget( TargetInfo Target ) : base(Target)
      {
      Type = TargetType.Editor;
      BuildEnvironment = TargetBuildEnvironment.Unique;
      bBuildAllModules = true;
      ExtraModuleNames.Add("UE4Game");
      
      bCompileChaos = true;
      //Note that the following line is not needed for 4.23 or previous versions.
      bUseChaos = true;
      
      }
      }
      I build the source and it compiles successfully. Here is the UE4Game.Target.cs
      Code:
      using UnrealBuildTool;
      using System.Collections.Generic;
      
      [SupportedPlatforms(UnrealPlatformClass.All)]
      public class UE4GameTarget : TargetRules
      {
      public UE4GameTarget( TargetInfo Target ) : base(Target)
      {
      Type = TargetType.Game;
      BuildEnvironment = TargetBuildEnvironment.Shared;
      
      ExtraModuleNames.Add("UE4Game");
      
      if (Target.Platform == UnrealTargetPlatform.IOS)
      {
      // to make iOS projects as small as possible we excluded some items from the engine.
      // uncomment below to make a smaller iOS build
      
      }
      }
      }
      Now after the compilation is successful, I downloaded the ChaosDemo from learn tab from Epic Launcher and generated the solution file based on the engine binaries I build above (4.24.3)
      Here is how the ChaosDestructionDemoEditor.Target.cs looks
      Code:
      // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
      
      using UnrealBuildTool;
      using System.Collections.Generic;
      
      public class ChaosDestructionDemoEditorTarget : TargetRules
      {
      public ChaosDestructionDemoEditorTarget(TargetInfo Target) : base(Target)
      {
      Type = TargetType.Editor;
      
      ExtraModuleNames.AddRange( new string[] { "ChaosDestructionDemo" } );
      
      bCompileChaos = true;
      bUseChaos = true;
      bCompilePhysX = true;
      bCompileAPEX = true;
      bCompileNvCloth = true;
      bCustomSceneQueryStructure = true;
      BuildEnvironment = TargetBuildEnvironment.Unique;
      // DefaultBuildSettings = BuildSettingsVersion.V2;
      
      }
      }
      And how the ChaosDestructionDemo.Target.cs looks
      Code:
      // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
      
      using UnrealBuildTool;
      using System.Collections.Generic;
      
      public class ChaosDestructionDemoTarget : TargetRules
      {
      public ChaosDestructionDemoTarget(TargetInfo Target) : base(Target)
      {
      Type = TargetType.Game;
      
      ExtraModuleNames.AddRange( new string[] { "ChaosDestructionDemo" } );
      
      bCompileChaos = true;
      bUseChaos = true;
      bCompilePhysX = true;
      bCompileAPEX = true;
      bCompileNvCloth = true;
      bCustomSceneQueryStructure = true;
      }
      }
      Both of the projects UE4.sln and ChaosDesctructionDemo.sln has compiled successfully. However when I tried running the Chaos demo it failed with an error. So I copied the content of the Chaos Demo and pasted into a new template project made from the source build 4.24.3. I build this template project with the project settings and build settings copied from ChaosDestructionDemo.Target.cs and ChaosDestructionDemoEditor.Target.cs , and the build is successful! But with a sad news, the project is not able to run. Here I shared the output log.

      I'm very much frustrated with the chaos build and how it to start with the demo, I've tried building with 4.24.3 multiple times and its always ending up with the error log mentioned as this.

      Please devs I need your help.

      Comment


        @Fieol
        I think your UE4Editor.Target.cs should look like this:
        BuildEnvironment = TargetBuildEnvironment.Shared;

        Chaos Demo one's looks ok with Unique.

        Comment


          Hi FlyingPencil I followed the instructions mentioned in the epic link here
          https://docs.unrealengine.com/en-US/...iew/index.html

          Could you elaborate me a little bit how did you run the project ?

          Comment


            @Fieol
            After i got the UE4 engine built and working I created a new FPShooterBP Project. ( checked and made sure the Chaos plugins were enabled and had the Fracture Mode available in editor), What I did then was grab the ChaosDemo project for correct UE4 version and copied the Content folder into the new FPShooter project. Then start up the FPShooter project and change the Level Map to one of the Chaos Maps and ran it. It seemed to work ok. Hope this helps. If you try it this way
            "BuildEnvironment = TargetBuildEnvironment.Unique;" should be fine. I'll check back in tomorrow, maybe i'll remember abit more by then. I did try the other methods, but for me this worked out best for me.

            Comment




              Hi everyone, I have a question about chaos, I'm developing a project that has physics as its main part. Is Chaos fully usable in multiplayer? Is every piece that is destroyed perfectly replicated between clients? Thanks for the reply

              Comment


                Originally posted by Fieol View Post
                Hi FlyingPencil I followed the instructions mentioned in the epic link here
                https://docs.unrealengine.com/en-US/...iew/index.html

                Could you elaborate me a little bit how did you run the project ?
                use my guide.

                https://forums.unrealengine.com/unre...34#post1780034
                Matt Walton: Programmer and owner of WireLiteSoft Games.

                [Streaming Terrains][WireLiteSoft.us]

                Comment


                  Originally posted by Wild_Fat View Post
                  Hey guys!
                  Has anybody tried to built the project?
                  In my build I can see collections but can't interact with them. It looks like plugin doesn't work, but there weren't any errors while building.
                  Help please If someone succeed with that.
                  use my guide and it will work......

                  https://forums.unrealengine.com/unre...34#post1780034
                  Matt Walton: Programmer and owner of WireLiteSoft Games.

                  [Streaming Terrains][WireLiteSoft.us]

                  Comment


                    Originally posted by Andrea_92 View Post

                    Hi everyone, I have a question about chaos, I'm developing a project that has physics as its main part. Is Chaos fully usable in multiplayer? Is every piece that is destroyed perfectly replicated between clients? Thanks for the reply

                    no, it is not replicated. you must replicate it yourself.
                    Matt Walton: Programmer and owner of WireLiteSoft Games.

                    [Streaming Terrains][WireLiteSoft.us]

                    Comment


                      Hi, i managed to make chaos work but i have a problem with my static meshes, i add a static mesh simulation component but i can't seem to make it movable.

                      Comment


                        Dunno why everybody here fears VS 2019. I compiled the newest 4.25 plus branch with 2019 and it works, they probably fixed all issues now.
                        https://twitter.com/Ninjin42

                        Comment


                          Are there any actual videos from Unreal staff on how to setup the Chaos Beta install? This has been so frustrating to set up. Every build I do doesn't work and is buggy in different ways. All the unofficial youtube tutorials out there have slightly different directions on their setup, which give me very different results, and I can't find anything from an Epic official video except for a link to the documentation, which doesn't have enough detail, such as all the settings one should have in Visual Studio to handle this.

                          Comment


                            Hey Jonah211,

                            as this feature is in beta i doubt there will be any support for it until it becomes production ready ie. 4.26 that being said i think there is a guide for people who are newer to engine source and experimental features,

                            However all is not lost a guide has been posted here by a community member frostic

                            https://forums.unrealengine.com/unre...34#post1780034

                            Make sure you get 4.25 plus
                            Samuel Cook
                            Studio Head - Artifaction Studios

                            Comment


                              4.25.3 chaos demo is working perfectly in the editor but I cannot package it for windows.
                              EDIT - So I tried packaging again today while connected to internet and it packages and runs flawlessly.
                              Last edited by lazysnake61; 08-23-2020, 04:24 AM.

                              Comment


                                Having read this entire forum history, read the wiki, and watched the following video: https://www.youtube.com/watch?v=hx9dHgcN0bE I still have problems.

                                A geometry collection set as dynamic immediately explodes (tried with a collection of meshes).
                                - Changing the value of the floor does nothing.
                                - Switching the chaos physics thread to something besides task view causes dynamic meshes to no longer move at all.

                                Any insight on these issues? 4.24.3. VS2019.

                                Comment

                                Working...
                                X