Skip to content

Commit 1b10222

Browse files
committed
Fixed crash in server 33.53
Will require recompile of any plugin that uses Level Actorfield.
1 parent 9dda09f commit 1b10222

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AsaApi/Core/Private/Ark/ArkBaseApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace API
1515
{
16-
constexpr float api_version = 1.11f;
16+
constexpr float api_version = 1.12f;
1717

1818
ArkBaseApi::ArkBaseApi()
1919
: commands_(std::make_unique<AsaApi::Commands>()),

AsaApi/Core/Public/API/ARK/GameMode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ struct APrimalWorldSettings : AARKNXWorldSettings
15711571

15721572
struct ULevel : UObject
15731573
{
1574-
TArray<AActor*> ActorsField() const { return GetNativeField<TArray<AActor*>>(this, "ULevel.Actors"); }
1574+
TArray<AActor*> ActorsField() const { return GetNativeField<TArray<AActor*>>(this, "ULevel.Actors2"); }
15751575
};
15761576

15771577
struct AGameModeBase : AInfo
@@ -2324,7 +2324,7 @@ struct AShooterGameMode : APrimalGameMode
23242324
TSharedPtr<FWriteFileTaskInfo>* SavePlayerData(TSharedPtr<FWriteFileTaskInfo>* result, UPrimalPlayerData* PlayerData, bool bSaveBackup) { return NativeCall<TSharedPtr<FWriteFileTaskInfo> *, TSharedPtr<FWriteFileTaskInfo>*, UPrimalPlayerData*, bool>(this, "AShooterGameMode.SavePlayerData(TSharedPtr<FWriteFileTaskInfo,1>*,UPrimalPlayerData*,bool)", result, PlayerData, bSaveBackup); }
23252325
TSharedPtr<FWriteFileTaskInfo>* SaveTribeData(TSharedPtr<FWriteFileTaskInfo>* result, const FTribeData* TribeData, bool bCanDeferToTick) { return NativeCall<TSharedPtr<FWriteFileTaskInfo> *, TSharedPtr<FWriteFileTaskInfo>*, const FTribeData*, bool>(this, "AShooterGameMode.SaveTribeData(TSharedPtr<FWriteFileTaskInfo,1>*,FTribeData*,bool)", result, TribeData, bCanDeferToTick); }
23262326
bool GetOrLoadTribeData(int TribeID, FTribeData* LoadedTribeData) { return NativeCall<bool, int, FTribeData*>(this, "AShooterGameMode.GetOrLoadTribeData(int,FTribeData&)", TribeID, LoadedTribeData); }
2327-
bool LoadTribeData(int TribeID, FTribeData* LoadedTribeData, bool bIsLoadingBackup, bool bDontCheckDirtyTribeWar) { return NativeCall<bool, int, FTribeData*, bool, bool>(this, "AShooterGameMode.LoadTribeData(int,FTribeData*,bool,bool)", TribeID, LoadedTribeData, bIsLoadingBackup, bDontCheckDirtyTribeWar); }
2327+
bool LoadTribeData(int TribeID, FTribeData* LoadedTribeData, bool bIsLoadingBackup, bool bDontCheckDirtyTribeWar) { return NativeCall<bool, int, FTribeData*, bool, bool>(this, "AShooterGameMode.LoadTribeData(int,FTribeData&,bool,bool)", TribeID, LoadedTribeData, bIsLoadingBackup, bDontCheckDirtyTribeWar); }
23282328
UPrimalPlayerData* GetPlayerDataFor(AShooterPlayerController* PC, bool* bCreatedNewPlayerData, bool bForceCreateNewPlayerData, const FPrimalPlayerCharacterConfigStruct* charConfig, bool bAutoCreateNewData, bool bDontSaveNewData) { return NativeCall<UPrimalPlayerData*, AShooterPlayerController*, bool*, bool, const FPrimalPlayerCharacterConfigStruct*, bool, bool>(this, "AShooterGameMode.GetPlayerDataFor(AShooterPlayerController*,bool*,bool,FPrimalPlayerCharacterConfigStruct*,bool,bool)", PC, bCreatedNewPlayerData, bForceCreateNewPlayerData, charConfig, bAutoCreateNewData, bDontSaveNewData); }
23292329
void OnHarvestingComponentHidden(FAttachedInstancedHarvestingElement* component) { NativeCall<void, FAttachedInstancedHarvestingElement*>(this, "AShooterGameMode.OnHarvestingComponentHidden(FAttachedInstancedHarvestingElement*)", component); }
23302330
void ServerConstructedFoliageHiddenAttachedComponent(FAttachedInstanced* aComponent) { NativeCall<void, FAttachedInstanced*>(this, "AShooterGameMode.ServerConstructedFoliageHiddenAttachedComponent(FAttachedInstanced*)", aComponent); }

0 commit comments

Comments
 (0)