Rama's Victory Plugin

55105-screen+shot+2015-08-20+at+10.10.15+pm.png

Been trying for most the day to install Rama’s Victory Plugin in 4.8 c++ project. Can’t get past the rebuild errors. Tried a combination of all below. Pretty sure these are all in the right locations and considering I’ve generated longer xcode error reports than the great wall I’m out of ideas.

1) Plugin is in the “Plugins” folder

2) Updated [Plugins] in the DefaultEngine.ini

3) Added to Project.Build.cs:
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “VictoryBPLibrary”, “UMG”, “Slate”, “SlateCore” ,“AIModule”});

4) Project.uproject:
{ “Name”: “VictoryBPLibrary”
“Enabled”: true
},

  1. At the moment it’s reporting:

    Discovering modules, targets and source code for game…
    Errors detected while compiling /Users/TJ/Documents/Unreal Projects/DVISION_GIG/Intermediate/Build/BuildRules/ProjectFileGeneratorModuleRules.dll:
    /Users/TJ/Documents/Unreal Projects/DVISION_GIG/Source/DVISION_GIG/DVISION_GIG.Build.cs(13,32) : error CS1061: Type System.Collections.Generic.List<string>' does not contain a definition for AddRanges’ and no extension method AddRanges' of type System.Collections.Generic.List’ could be found. Are you missing an assembly reference?
    (0,0) : error : /Users/Shared/UnrealEngine/4.8/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
    UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files
    TJs-iMac:Mac TJ$ logout

[Process completed]

Anything obvious that you guys think I may have missed?

Looks like you have an error in your build cs?

"`System.Collections.Generic.List<string>' does not contain a definition for `AddRanges' and no extension method `AddRanges' of type `System.Collections.Generic.List<string>' could be found."

Can you post your entire build cs for your main project and also what you have for the plugin’s build cs?

It appears to be in your build cs tho:

Documents/Unreal Projects/DVISION_GIG/Source/DVISION_GIG/DVISION_GIG.Build.cs(13,32) : error CS1061:

Have fun today!

:slight_smile:

Rama

Found the issue! Was VaRest for some reason. Removed all of its referencing files and had no problem compiling! I put Victory into my Plugins folder and still no luck on it showing up in editor under plugins. Made sure there’s no referencing files to it also. Might name my first kid after you if this works…

Last login: Sat Aug 22 11:27:15 on ttys001

Setting up Unreal Engine 4 project files...

Setting up Mono

Discovering modules, targets and source code for game...
Generating data for project indexing... 100%
Generating project file...
Found 9 targets!
Skipping project file write, as it didn't change...
TJs-iMac:Mac TJ$  logout


[Process completed]

Almost built…

… and failed >_< Looks like it’s trying to overwrite some existing functions. Spent the last two days trying to get this to work :confused:

These are actually warnings generated by the C++ compiler that are promoted into errors (thus stopping compilation) by the compilation flags passed by the Unreal Build Tool. The Clang compiler used by XCode detects more errors and is more strict about letting mistakes pass through than MSVC (the C++ compiler used by Visual Studio in Windows). It’s likely that Rama develops on Windows and was unaware of these warnings generated by Clang.

You will need to ask Rama to fix the problems with his C++ code, or fix them yourself. Alternatively, you could find a way to disable -Werror in the build options generated by UBT, but I don’t know how to do that. The errors don’t look severe (in your screenshot, for example, it’s a common duplicate variable naming mistake) so you should be able to fix them if you know some basic C++.

Thanks for the enlightenment cancel! I’ll look into UBT and see if I can find a work around.