Megafunk / MassSample

My understanding of Unreal Engine 5's experimental ECS plugin with a small sample project.
MIT License
681 stars 112 forks source link

RTS Formations Example #39

Open Ji-Rath opened 1 year ago

Ji-Rath commented 1 year ago

Apologies in advance for the duplicate PR, just goofed up with my fork and made a PR in main Basically, just a simple PR to add a formations example to MassSample. In my opinion, its not breaking any barriers, but I think it's a good example to see what is possible with Mass. It is all encapsulated in its own plugin too! Consider checking out #37 for more info.

https://user-images.githubusercontent.com/1747157/179067289-21b201ce-74e0-4a17-ae5c-e3d0bafff4ee.mp4

Megafunk commented 1 year ago

Sorry about the lack of response, I'll get around to looking at this over the weekend!

Ji-Rath commented 1 year ago

No problem! I got a little carried away with some of the functionality (and some WIP features) so let me know if it is too complex or should be condensed to fit the MassSample.

Megafunk commented 1 year ago

This is sweet because it's an often requested feature (RTS stuff!) It's even in a separate plugin which shows off the power of composition and saves people who don't need it some space.

However, I think I broke it?

https://user-images.githubusercontent.com/6806463/188527664-3521f468-819d-444d-914b-54c1fe4af181.mp4

Did I miss something? I assume there is some setup I forgot or I may be using the wrong pawn. Do you have some content only stored in your project or something?

Ji-Rath commented 1 year ago

This is sweet because it's an often requested feature (RTS stuff!) It's even in a separate plugin which shows off the power of composition and saves people who don't need it some space.

However, I think I broke it?

UnrealEditor-Win64-DebugGame_2022-09-05_19-23-36.mp4 Did I miss something? I assume there is some setup I forgot or I may be using the wrong pawn. Do you have some content only stored in your project or something?

Ah shucks, Im going to take another look and get back to you on that. I think there might be some content I forgot to move over to the plugin.

Ji-Rath commented 1 year ago

The current version still has a few bugs to iron out (also I can definitely do better in terms of performance) but all my changes should be available. Let me know if for some reason the map is still not functional. The gamemode in the map should be BP_FormationGameMode if its not already set 👍

https://user-images.githubusercontent.com/1747157/189176198-07ad87a2-d4b4-491c-97b4-4bb3b5cb4434.mp4

Megafunk commented 1 year ago

The fixes worked! I can now make units that run around in formation!

As for the max of 100 issue mentioned in the original pr my assumption is it's just the LODMax count but I'm not seeing anything wacky happening so far. image

I'm seeing some exceptions triggered from actor representation when clicking on actors at times but this is definitely good enough to include as "experimental" in my mind. Nice!!