Skip to content

Commit ef79152

Browse files
Updated StaticConstructObject to match the internal paramaters. (#13)
Fixed ServerID breakage caused by the correction to the GetBlueprint update. Version bump 1.02
1 parent 6c2edcf commit ef79152

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

AsaApi/AsaApi.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ copy /Y "$(SolutionDir)AsaApi\Core\Private\PDBReader\pdbignores.txt" "E:\ASA\Te
345345
<PostBuildEvent>
346346
<Command>xcopy /I /Y "$(TargetDir)$(ProjectName).lib" "$(SolutionDir)out_lib\"
347347
xcopy /I /Y "$(TargetDir)$(ProjectName).lib" "$(SolutionDir)..\ARK-API-Stable-Libs\"
348-
xcopy /I /Y "$(TargetDir)$(ProjectName).lib" "$(SolutionDir)..\ARK-API-Stable-Libs\1.00\"
348+
xcopy /I /Y "$(TargetDir)$(ProjectName).lib" "$(SolutionDir)..\ARK-API-Stable-Libs\1.01\"
349349

350350
copy "$(SolutionDir)$(PlatformName)\$(ConfigurationName)\$(ProjectName).dll" "F:\ASA-Dedicated\asa-server\ShooterGame\Binaries\Win64\ArkApi\" /y
351351
copy "$(SolutionDir)$(PlatformName)\$(ConfigurationName)\$(ProjectName).pdb" "F:\ASA-Dedicated\asa-server\ShooterGame\Binaries\Win64\ArkApi\" /y</Command>

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.01;
16+
constexpr float api_version = 1.02;
1717

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

AsaApi/Core/Private/Ark/HooksImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ namespace AsaApi
9595
for (auto actor : actors)
9696
{
9797
FString bp = AsaApi::GetApiUtils().GetBlueprint(actor);
98-
if (bp.Equals("Blueprint'/Script/ShooterGame.Default__PrimalPersistentWorldData'"))
98+
if (bp.Equals("Blueprint'/Script/ShooterGame.PrimalPersistentWorldData'"))
9999
{
100100
if (actor->TargetingTeamField() == 0)
101101
actor->TargetingTeamField() = a_shooter_game_mode->ServerIDField();

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -959,18 +959,9 @@ struct Globals
959959
ObjectClass, InOuter, InName, Filename, LoadFlags, Sandbox, bAllowObjectReconciliation, nullptr);
960960
}
961961

962-
static UObject* StaticConstructObject(UClass* InClass, UObject* InOuter, FName InName, EObjectFlags InFlags, UObject* InTemplate, bool bCopyTransientsFromClassDefaults, FObjectInstancingGraph* InInstanceGraph)
962+
static UObject* StaticConstructObject(FStaticConstructObjectParameters& Params)
963963
{
964-
FStaticConstructObjectParameters Params;
965-
Params.Class = InClass;
966-
Params.Outer = InOuter;
967-
Params.Name = InName;
968-
Params.SetFlags = InFlags;
969-
Params.Template = InTemplate;
970-
Params.bCopyTransientsFromClassDefaults = bCopyTransientsFromClassDefaults;
971-
Params.InstanceGraph = InInstanceGraph;
972-
973-
return NativeCall<UObject*, FStaticConstructObjectParameters*>(nullptr, "Global.StaticConstructObject_Internal(FStaticConstructObjectParameters&)", &Params);
964+
return NativeCall<UObject*, FStaticConstructObjectParameters&>(nullptr, "Global.StaticConstructObject_Internal(FStaticConstructObjectParameters&)", Params);
974965
}
975966

976967
static DataValue<struct UEngine*> GEngine() { return { "Global.GEngine" }; }

0 commit comments

Comments
 (0)