npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Cannot Get Fog of War to Work #175

Closed GuyPaddock closed 2 years ago

GuyPaddock commented 2 years ago

This may be the same issue as with https://github.com/npruehs/ue4-rts/issues/158, but I am not 100% sure.

Basically, I can get RTSProject to run fine, but when I try to setup a sample project according to the setup instructions in https://github.com/npruehs/ue4-rts/blob/develop/Documents/Manual/Setup.md and https://github.com/npruehs/ue4-rts/blob/develop/Documents/Manual/Maps.md, all I get is a black screen. I put the two projects side by side and tried scaling up the Floor, vision volume, and camera bounds volumes in my project to match the RTSProject, but that had no effect. I've even tried copying the volumes from the RTSProject into my sample project, but that also had no effect.

I am thinking either that this is because I haven't setup the HUD or because I need to do more to initialize characters, but am not sure.

While editing (not simulating): image

During play (using the default "black" Fog of War from the framework): image

During play (using the "white" Fog of War from the RTSProject): image

Sample project: https://1drv.ms/u/s!AigXEMxuXyh0gpcF57hjVqdau0xhcg?e=Ys5cHj

GuyPaddock commented 2 years ago

Nevermind! Figured it out. I was missing the character setup (specifically, I missed adding a Vision Component to the character) under: https://github.com/npruehs/ue4-rts/blob/develop/Documents/Manual/Units.md#vision