adras / Zero-K-MapEditing

Tool for Zero-K / Spring RTS which helps to create/compile/edit maps
3 stars 0 forks source link

Errors on compiling #4

Open Overdrive659 opened 1 year ago

Overdrive659 commented 1 year ago

Installed the program and extracted it onto desktop. Opened Visuals Studio 2022 , downloaded .NET 05 and hit COMPILE. After compilation I have 115 warnings and 35 errors.

All errors seem to be similar: Severity Code Description Project File Line Suppression State Error MSB3030 Could not copy the file "D:\User\D-Desktop\Zero-K-MapEditing-main\Map-Blueprint\mapcontainer.sdd\LuaGaia\draw.lua" because it was not found. MapCreationTool C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 5150

Most warnings seem to be because of non-nullable fields being null, or having null values in constructors.

Overdrive659 commented 1 year ago

Can't launch the .EXE either

Overdrive659 commented 1 year ago

Investigated the errors, I think it's because no example map (map-blueprint) comes installed with the editor. Neither springRTS_smf_compiler. This should be included in the Install Instructions in the README, or included in the download.

EDIT: tried installing Aquanim's ZK Map Blueprint and renaming the folder "mapcontainer.sdd" but it only reduced the error count by 4 (https://github.com/Aquanim/ZKMapBlueprint)

adras commented 1 year ago

You're getting these errors because you downloaded the sourcecode as .zip from github. The project includes a couple of other repositories as submodules. These submodules are not included in the zip file. Hence you get all the errors about missing stuff.

If you look at the directory structure of the project on github, you will see that some directories are in blue color. Those are the submodules. You could download the respective .zip files from those repositories, and extract them into the editor folder. But I highly recommend just cloning the repository with submodules included.

I added a note on how to do that in the readme. Let me know if you need further assistance