mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
address compile errors
- 'SetCraftingSpeed': redefinition of default argument: parameter 1 NetCrack-PalWorld D:\case\repos\feature.cpp 78 - 'GetCharacterImpManager': function must return a value NetCrack-PalWorld D:\case\repos\config.cpp 53 - unresolved external symbol "Config::gWorld"
This commit is contained in:
parent
aaa3124d0e
commit
a454ccd815
16
config.cpp
16
config.cpp
@ -41,16 +41,16 @@ SDK::UWorld* config::GetUWorld()
|
|||||||
auto gworld = signature("48 8B 05 ? ? ? ? EB 05").instruction(3).add(7);
|
auto gworld = signature("48 8B 05 ? ? ? ? EB 05").instruction(3).add(7);
|
||||||
gworld_ptr = gworld.GetPointer();
|
gworld_ptr = gworld.GetPointer();
|
||||||
if (gworld_ptr)
|
if (gworld_ptr)
|
||||||
gWorld = *(SDK::UWorld**)gworld_ptr;
|
Config.gWorld = *(SDK::UWorld**)gworld_ptr;
|
||||||
}
|
}
|
||||||
return (*(SDK::UWorld**)(gworld_ptr));
|
return (*(SDK::UWorld**)(gworld_ptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
SDK::UPalCharacterImportanceManager* GetCharacterImpManager()
|
SDK::UPalCharacterImportanceManager* config::GetCharacterImpManager()
|
||||||
{
|
{
|
||||||
SDK::UWorld* pWorld = config::gWorld;
|
SDK::UWorld* pWorld = Config.gWorld;
|
||||||
if (!pWorld)
|
if (!pWorld)
|
||||||
return;
|
return nullptr;
|
||||||
|
|
||||||
SDK::UGameInstance* pGameInstance = pWorld->OwningGameInstance;
|
SDK::UGameInstance* pGameInstance = pWorld->OwningGameInstance;
|
||||||
if (!pGameInstance)
|
if (!pGameInstance)
|
||||||
@ -80,7 +80,7 @@ SDK::APalPlayerState* config::GetPalPlayerState()
|
|||||||
|
|
||||||
bool GetTAllPlayers(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
bool GetTAllPlayers(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
||||||
{
|
{
|
||||||
SDK::UPalCharacterImportanceManager* mPal = GetCharacterImpManager();
|
SDK::UPalCharacterImportanceManager* mPal = config::GetCharacterImpManager();
|
||||||
if (!mPal)
|
if (!mPal)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ bool GetTAllPlayers(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
|||||||
|
|
||||||
bool GetTAllImpNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
bool GetTAllImpNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
||||||
{
|
{
|
||||||
SDK::UPalCharacterImportanceManager* mPal = GetCharacterImpManager();
|
SDK::UPalCharacterImportanceManager* mPal = config::GetCharacterImpManager();
|
||||||
if (!mPal)
|
if (!mPal)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ bool GetTAllImpNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
|||||||
|
|
||||||
bool GetTAllNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
bool GetTAllNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
||||||
{
|
{
|
||||||
SDK::UPalCharacterImportanceManager* mPal = GetCharacterImpManager();
|
SDK::UPalCharacterImportanceManager* mPal = config::GetCharacterImpManager();
|
||||||
if (!mPal)
|
if (!mPal)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ bool GetTAllNPC(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
|||||||
|
|
||||||
bool GetTAllPals(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
bool GetTAllPals(SDK::TArray<class SDK::APalCharacter*>* outResult)
|
||||||
{
|
{
|
||||||
SDK::UPalCharacterImportanceManager* mPal = GetCharacterImpManager();
|
SDK::UPalCharacterImportanceManager* mPal = config::GetCharacterImpManager();
|
||||||
if (!mPal)
|
if (!mPal)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
2
config.h
2
config.h
@ -39,7 +39,7 @@ public:
|
|||||||
char ItemName[255];
|
char ItemName[255];
|
||||||
char inputTextBuffer[255] = "";
|
char inputTextBuffer[255] = "";
|
||||||
int EqModifiler = 1;
|
int EqModifiler = 1;
|
||||||
static SDK::UWorld* gWorld;
|
SDK::UWorld* gWorld = nullptr;
|
||||||
SDK::APalPlayerCharacter* localPlayer = NULL;
|
SDK::APalPlayerCharacter* localPlayer = NULL;
|
||||||
SDK::TArray<SDK::APalPlayerCharacter*> AllPlayers = {};
|
SDK::TArray<SDK::APalPlayerCharacter*> AllPlayers = {};
|
||||||
SDK::UPalCharacterImportanceManager* UCIM = NULL;
|
SDK::UPalCharacterImportanceManager* UCIM = NULL;
|
||||||
|
@ -75,7 +75,7 @@ void SetInfiniteAmmo(bool bInfAmmo)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetCraftingSpeed(float mNewSpeed, bool bRestoreDefault = false)
|
void SetCraftingSpeed(float mNewSpeed, bool bRestoreDefault)
|
||||||
{
|
{
|
||||||
APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
||||||
if (!pPalCharacter)
|
if (!pPalCharacter)
|
||||||
|
@ -279,7 +279,7 @@ namespace DX11_Base {
|
|||||||
SDK::UPalItemContainerMultiHelper* InventoryMultiHelper = InventoryData->InventoryMultiHelper;
|
SDK::UPalItemContainerMultiHelper* InventoryMultiHelper = InventoryData->InventoryMultiHelper;
|
||||||
if (InventoryMultiHelper != NULL) {
|
if (InventoryMultiHelper != NULL) {
|
||||||
SDK::TArray<class SDK::UPalItemContainer*> Containers = InventoryMultiHelper->Containers;
|
SDK::TArray<class SDK::UPalItemContainer*> Containers = InventoryMultiHelper->Containers;
|
||||||
if (Containers.Num() == 0) {
|
if (Containers.Count() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user