SOLVED:
“Weather System” by Frey - Not Compiling for windows via UE 4.27:
Issue: Compiling with the plugin enabled
Solution:
-
Locate your WeatherSystem.h files, found in the WeatherSystemPlugin folder (default on windows is [MainDrive]\Program Files\Epic Games\UE_4.27\Engine\Plugins\Marketplace\WeatherSystemPlugin\Source\WeatherSystem\Public)
-
Open up WaterBase.h in an IDE (I used VSCode). Find the problem lines, mine were 26,28,30. Specifdically you are looking for the lines which have a UPROPERTY.
-
Make the UPROPERTY line as follows:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Catergory - “WeatherSystem | Core”) -
Save
-
Open up WeatherSystemsMaster.h
6a. Use find and replace function and search for ‘Catergory = Unique’
6b. Replace all with ‘Catergory - “WeatherSystem | Core”’
7a. Use Find and replace function and search for 'UPROPERTY(EditAnywhere)
7b. Replace all with ‘UPROPERTY(EditAnywhere, Category = “WeatherSystem | Core”)’
8a. Use Find and replace function and search for ‘UPROPERTY(BlueprintReadOnly)’
8b. Replace all with UPROPERTY(BlueprintReadOnly, Category = “WeatherSystem | Core”)
-
Save
-
Build
This SHOULD fix the compiling issues. after the build, my sample project runs.
If the build throws errors still, and requires more Categories, you probably missed a line somewhere - look at the output log to find the file and exact line where the error is found and confirm that the UPROPERTY has the Category property.
Note: Private classes cannot have the ‘BlueprintReadWrite’ property.
Hope this helps!