Hi @,
Thanks for the plugin!
I had to make a fix to get it building under Linux - the diff follows.
Have you considered putting your code on Github so people can send you pull requests for fixes/additions that you can easily decide to accept or not? If you are wlling, I offer to help set it up for you.
diff --git a/GameProject/Plugins/VictoryPlugin/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp b/GameProject/Plugins/VictoryPlugin/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp
index 014cab1..6fe8e0e 100644
--- a/GameProject/Plugins/VictoryPlugin/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp
+++ b/GameProject/Plugins/VictoryPlugin/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp
@@ -2711,13 +2711,13 @@ AActor* UVictoryBPFunctionLibrary::Traces__CharacterMeshTrace___ClosestSocket(
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Check Bones Locations
- for (int32 Itr = 0; Itr < SocketNames.Num(); Itr++ )
+ for (int32 SItr = 0; SItr < SocketNames.Num(); SItr++ )
{
//Is a Bone not a socket?
- if(SocketNames[Itr].Type == EComponentSocketType::Bone) continue;
+ if(SocketNames[SItr].Type == EComponentSocketType::Bone) continue;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CurLoc = AsCharacter->Mesh->GetSocketLocation(SocketNames[Itr].Name);
+ CurLoc = AsCharacter->Mesh->GetSocketLocation(SocketNames[SItr].Name);
//Dist
CurDist = FVector::Dist(OutImpactPoint, CurLoc);
@@ -2725,7 +2725,7 @@ AActor* UVictoryBPFunctionLibrary::Traces__CharacterMeshTrace___ClosestSocket(
//Min
if (ClosestDistance < 0 || ClosestDistance >= CurDist)
{
- ClosestVibe = Itr;
+ ClosestVibe = SItr;
ClosestDistance = CurDist;
}
}
Now I need to see how to deal with the Dedicated Server build failing because VictoryBPLibrary depends on UElibPNG - the build error:
Building DescentServer...
Using clang version '3.5.0' (string), 3 (major), 5 (minor), 0 (patch)
Linux dedicated server is made to depend on UElibPNG. We want to avoid , please correct module dependencies.
ERROR: Exception thrown while processing dependent modules of VictoryBPLibrary
Exception thrown while processing dependent modules of ImageWrapper
ERROR: Unable to instantiate instance of 'UElibPNG' type from compiled assembly 'DescentServerModuleRules'. Unreal Build Tool creates an instance of your module's 'Rules' in order to find out about your module's requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ERROR: Linux dedicated server is made to depend on UElibPNG. We want to avoid , please correct module dependencies.
Edit: I had to remove ImageWrapper as a dependency and ifdef out code using it in the plugin to get DedicatedServer to build.