Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiled for UE-5.5 #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Source/UESVON/Private/AITask_SVONMoveTo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ void UAITask_SVONMoveTo::CheckPathPreConditions()
if (MoveRequest.GetGoalLocation().ContainsNaN() || FAISystem::IsValidLocation(MoveRequest.GetGoalLocation()) == false)
{
#if WITH_EDITOR
UE_VLOG(this, VUESVON, Error, TEXT("SVONMoveTo: Destination is not valid! Goal(%s)"), TEXT_AI_LOCATION(MoveRequest.GetGoalLocation()));
UE_LOG(UESVON, Error, TEXT("SVONMoveTo: Destination is not valid! Goal(%s)"));
FString LogStr = TEXT_AI_LOCATION(MoveRequest.GetGoalLocation());
UE_VLOG(this, VUESVON, Error, TEXT("SVONMoveTo: Destination is not valid! Goal(%s)"), *LogStr);
UE_LOG(UESVON, Error, TEXT("SVONMoveTo: Destination is not valid! Goal(%s)"), *LogStr);
#endif
bCanRequestMove = false;
}
Expand Down Expand Up @@ -438,7 +439,9 @@ void UAITask_SVONMoveTo::LogPathHelper()
mySVONPath.IsValid() && mySVONPath.Get()->GetPathPoints().Num())
{

FVisualLogEntry* Entry = Vlog.GetEntryToWrite(OwnerController->GetPawn(), OwnerController->GetPawn()->GetWorld()->TimeSeconds);
// FVisualLogEntry* Entry = Vlog.GetEntryToWrite(OwnerController->GetPawn(), OwnerController->GetPawn()->GetWorld()->TimeSeconds);
FVisualLogEntry* Entry = FVisualLogger::GetEntryToWrite(OwnerController->GetPawn(), VUESVON);

if (Entry)
{
for (int i = 0; i < mySVONPath->GetPathPoints().Num(); i++)
Expand Down
3 changes: 3 additions & 0 deletions Source/UESVON/Private/SVONNavigationComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
#include "UESVON/Public/SVONNavigationPath.h"
#include "UESVON/Public/SVONPathFinder.h"
#include "UESVON/Public/SVONVolume.h"
#include "UESVON/Public/SVONMediator.h"


#include <Runtime/Engine/Public/DrawDebugHelpers.h>
#include <Runtime/Engine/Classes/GameFramework/Actor.h>
#include <Runtime/Engine/Classes/Kismet/GameplayStatics.h>
#include <Runtime/Engine/Classes/Components/LineBatchComponent.h>
#include <Runtime/NavigationSystem/Public/NavigationData.h>


// Sets default values for this component's properties
USVONNavigationComponent::USVONNavigationComponent(const FObjectInitializer& ObjectInitializer)
{
Expand Down
4 changes: 4 additions & 0 deletions Source/UESVON/Private/SVONVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ bool ASVONVolume::IsAnyMemberBlocked(layerindex_t aLayer, mortoncode_t aCode) co
{
return true;
}
if(aLayer >= myBlockedIndices.Num())
{// fix bug
return false;
}
// The parent of this code is blocked
if (myBlockedIndices[aLayer].Contains(parentCode))
{
Expand Down
2 changes: 2 additions & 0 deletions Source/UESVON/Public/SVONPathFinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#pragma once

#include "UESVON/Public/SVONTypes.h"
#include "UESVON/Public/SVONNavigationPath.h"
#include "UESVON/Public/SVONLink.h"

class ASVONVolume;

Expand Down