Wimberton / OriginPalia

A multi-purpose tool for Palia, written in C++. For non-commercial usage, looking for contributors. Features such as ESP, Teleportation, Auto-fishing, and more.
https://www.unknowncheats.me/forum/palia/636934-originpalia-feature-packed-multitool-imagine.html
29 stars 10 forks source link

Reuse variables #29

Closed VoidPollo closed 1 month ago

VoidPollo commented 1 month ago

Is there a reason why we aren't reusing already gotten info? In the DrawHUD for example, for each option we get the world, players, controllers, etc over and over, but most of the hooks use the same point.

I tested briefly, fishing related stuff worked, teleporting worked, esp worked, silent aim worked, etc.. but I rushed through the test as I'm leaving the house now for a few hours.

Sometimes less is better, but needs extensive testing. DONT MERGE.

Wimberton commented 1 month ago

Is there a reason why we aren't reusing already gotten info? In the DrawHUD for example, for each option we get the world, players, controllers, etc over and over, but most of the hooks use the same point.

I tested briefly, fishing related stuff worked, teleporting worked, esp worked, silent aim worked, etc.. but I rushed through the test as I'm leaving the house now for a few hours.

Sometimes less is better, but needs extensive testing. DONT MERGE.

Yeah that's actually one of the things I've been meaning to handle. Redundancy will be cleaned up. I'm leaving for a few hours also so I'll take a look at it all later.

I was planning to make a few functions. GetValeria() for all of those, then a few others for the cleanup etc.

01010100010100100100100101000111 commented 1 month ago

Still stuck with getting SDK (Yes I suck), but hope one of you will send once Discord is sorted, having a look over code now in VS with R# and a bunch of stuff would love to clean, but need be able make sure not breaking by building and running :/

Wimberton commented 1 month ago

Still stuck with getting SDK (Yes I suck), but hope one of you will send once Discord is sorted, having a look over code now in VS with R# and a bunch of stuff would love to clean, but need be able make sure not breaking by building and running :/

I'll post the discord server tomorrow. Haven't had as much time today to set it up. We'll go over things there, it'll be easier