When I want to build my game for win64 with the Plugin it gives me: UnrealBuildTool: UE4-VictoryBPLibrary.lib(VictoryBPLibrary.generated.cpp.obj) : error LNK2005: "public: virtual bool __cdecl UObjectBaseUtility::CanBeInCluster(void)const " (?CanBeInCluster@UObjectBaseUtility@@UEBA_NXZ) is already in UE4-CoreUObject.lib(M
MainFrameActions: Packaging (Windows (64-bit)): odule.CoreUObject.4_of_4.cpp.obj) defined.
I am using Win7 and UE4.11 with the mediafire link from the wiki. What do I wrong?
I just packaged for 4.11 without any issues, you placed the VictoryPlugin folder inside of Engine/Plugins/Runtime?
Welcome to the forums!
When you try to switch engine versions, the plugin wont compile because there are changes from 4.10 to 4.11, which is bit of a loopy situation when you are trying to switch so that you can compile.
Exactly what message are you getting while trying to switch engine versions? Is it just saying that VictoryPlugin could not be compiled?
Solution1: Have you tried putting the 4.11 plugin code in the plugin folder before trying to switch engine versions?
Solution2: If that doesnt work you can disable the plugin by temporarily renaming your Plugins folder to Plugins_, then after your project .sln is generated you can switch the plugin code to 4.11 and recompile your project, switching Plugins_ back to just Plugins
Iāve upgraded multiple projects to 4.11 that use VictoryPlugin so I am sure you will find a way!
As of 4.11 the system for InstancedStaticMeshComponent is compeletely incompatible with my current implementation, as soon as the ISM actor is created, it looks fine, but if you move it once, the instances disappear.
The only way I could make it work now is to generate a new Blueprint for each ISM that you make, and store it in your project Content folder somewhere.
would alleviate the of copy/pasting, but it would mean having a whole bunch of blueprints for each possible ISM combination.
If you think that is okay I can proceed with that, but needless to say generating a bunch of blueprints as you click around the editor and storing them in your content folder will require a lot more coding than the previous implementation required.
PS: only alternative would be to write my own version of InstancedStaticMeshComponent which does not have the copy/pasting.
The with is copying Epicās code into a new set of files, removing the offending few lines of code, and then posting that on the internet in an insecure/public way, which is rather illegal given Epicās EULA.
the code in my plugins is my own, or the code of contributors, so I have not had to worry about offering a public link.
So in my mind the only option is generating blueprint assets on the fly whenever you press i to make an ISM actor, unless someone can think of something else!
3 New Nodes For You ~ Text to Float, Text to Int, Text Is Numeric, With Culture Support!
Dear Community,
While I was trying to convert numbers inputted into Editable Text Blocks in UMG, I ran into the following:
user enters 10000
I convert Text input to string, and then to float, and get 10000
user enters 10,000, I do the above but I get 10 in code instead.
10?!!!
I was highly confused
Well turns out that when FString gets 10,000 which is converted that way by FText, then comma truncates the FString conversion to float and I end up with 10.
would be compounded by culture setting where user is inclined to enter 10.000,00
So!
I hereby present you with nodes that convert from FText to Float and Int, with Culture support!
See pics!
**Culture Support**
As you can see in my pics I support both 10,000.99 and 10.000,99.
If anyone has other versions like 10'000.99 that they need support for, let me know!
The option to switch is hidden by default for convenience, just like for print string and FText to number conversions.
Enjoy!
![TextToNum.jpg|1206x574](upload://9tCsYz41QVKajF433JY3aZlRWLa.jpeg)
![TextToNum2.jpg|1206x566](upload://3rXvClq6xan8xNqQkMfBbLXDf1m.jpeg)
![ae72586253b1c35f72274864617fb4b257aec21d.jpeg|1197x583](upload://oTe3VOsZFFA9vdljzNgqDexUsyx.jpeg)
C++ Code
Here is the C++ code for these nodes!
Please note the FTextās are always passed by const reference for efficiency reasons.
Also note that my internal FString formatting code uses ReplaceInline which avoids creating a copy of the string just to replace the symbols, and is thus much more efficient code.
UFUNCTION(BlueprintPure, Category = "VictoryBPLibrary")
static bool **Text_IsNumeric**(const FText& Text)
{
return Text.IsNumeric();
}
UFUNCTION(BlueprintPure, Category = "VictoryBPLibrary", meta=(AdvancedDisplay = "1"))
static float **Text_ToFloat**(const FText& Text, bool UseDotForThousands=false)
{
//because commas lead to string number being truncated, FText 10,000 becomes 10 for FString
FString StrFloat = Text.ToString();
TextNumFormat(StrFloat,UseDotForThousands);
return FCString::Atof(*StrFloat);
}
UFUNCTION(BlueprintPure, Category = "VictoryBPLibrary", meta=(AdvancedDisplay = "1"))
static int32 **Text_ToInt**(const FText& Text, bool UseDotForThousands=false)
{
//because commas lead to string number being truncated, FText 10,000 becomes 10 for FString
FString StrInt = Text.ToString();
TextNumFormat(StrInt,UseDotForThousands);
return FCString::Atoi(*StrInt);
}
static void **TextNumFormat**(FString& StrNum, bool UseDotForThousands)
{
//10.000.000,997
if(UseDotForThousands)
{
StrNum.**ReplaceInline**(TEXT("."),TEXT("")); //no dots as they truncate
StrNum.**ReplaceInline**(TEXT(","),TEXT(".")); //commas become decimal
}
//10,000,000.997
else
{
StrNum.**ReplaceInline**(TEXT(","),TEXT("")); //decimal can stay, commas would truncate so remove
}
}
New Download (29mb, Media Fire)
Please note my downloads also include these packaged binaries:
After adding it to the right folder it crashes with the same error. When I add the config line it doesnāt even start the editor. Are there any possible ways to fix ?
Iām unable to get the victory plugin to build with the 4.11 release version. The VS 2015 build fails immediately with a failed to initialize the engine error.
Ugh, sorry to hear that. As a VR developer, Iāve become a huge fan of your instancing solution; Epicās is just too clunky when dealing with large numbers of meshes.
In my case Iām simply trying to upgrade from 4.10 (where ISM works perfectly) to 4.11, so I can take advantage of instanced stereo and Oculus SDK 1.3. I actually donāt need to move any of the meshes Iāve already placed in my level. I wonder if the EdEngine was just recompiled for 4.11 it would work, as long as nothing is moved. Of course, that doesnāt solve the problem going forward.
If thatās the only solution, I donāt see too much of a problem with it. It seems like it would just require more diligent content folder organization.
Missing UE4Game binary.
You may have to build the UE4 project with your IDE. Alternatively, build using UnrealBuildTool with the commandline:
UE4Game <Platform> <Configuration>
Is the victory plugins not supported for yet? I really hope it would be since theirs a BP node I absolutely need in your plugin . is their a way I can make it work? Also does doesnāt seem to work for IOS either. Is their a method you made to make it work for mobiles or android. Anyone know a solution? Thanks!
Also iām using 4.10 with the jan 15, 2016 update since Feb 15 seems not to work for 4.11 and Feb 6 seems not to work for 4.10 either when I tried.
Thanks for the reply! I tried solution 1 which I thought I had tried before but I looked into that error and it turns out it was a known when upgrading to 4.11 with the lightmass propagation plugin disabled, which I had recently disabled to make my game smaller. (UE-29010) I re-enabled the plugin and it worked perfectly! I wasnāt doing it right before since the other errors were likely caused by trying to upgrade with the old plugin files still in my project folder, and I also had the plugin listed twice after since I thought it had to be installed in the editor engine plugins directory as well. Now that itās sorted I was able to successfully build my standalone dedicated server with 4.11 source! I donated what I could for now because your plugin is awesome and you help a lot of people on here. Keep up the good work and thanks again!
Thanks for the awesome plugin. I have a need to change axis configurations (deadzone, sensitivity, and exponent) at run- in a full BP project. Do you have an idea how to do it? Thanks in advance!
Itās amazing to see your work, very interesting.
As you show in ā picture, Iām trying to create icons of my objects directly inside Unreal, and your plugin seems to fit exactly with my needs, but Iām not sure of how it works, and I canāt achieve anything with it.
Could you show a little how to use it, just to clarify?