What's new

Welcome to Palworld Forums - Best Guides, Mods, and Community Discussions

Palworld Forums! As a vibrant community of Palworld enthusiasts, we're excited to have you explore, engage, and contribute. Whether you're here to share strategies, seek advice, or just chat about your Palworld adventures, you've found the right place. Join us in discussing, learning, and growing together in the exciting world of Palworld. Your journey starts here!

❓ Help Return value of a hooked function

The docs for creating a lua mod with UE4SS mention that we have the ability to inspect the return value of a function we hook into, does anyone know how to do that?

Cedric do you have any idea? >_>
Enable the debug console. It will help narrow down the problem. Should.. Seems, atleast on dedicated side, when I run my bat file to start my dedicated, it has a check for updates. So if there is an update, I have to go into about almost every lua mod and do minor tweaks.

The author of that mod is normally good about updating if need be, sometimes not so much.

With that said, depending on that which you're trying to hook into, I tried to do a very crude server notification that would output who connected, by steam id, Character name and the player save file name to a .txt doc. But 1.4.0 game update broke that.

Depending what you're trying to hook into, my brain mentally type but never physically typed, if the error kicks back to a var, which most seem to be, you'll need to dabble into if I recall either the worldoption.sav or there's another file I can't recall the name atm.

Idk what they changed on the back end, but my project is put on hold while I rewrite it.

This might not be a direct answer, I'm not home with access to my notes, spending weekend away with family.

If you haven't had any luck, ping me Monday and I'll look into it.
 
Last edited:
The docs for creating a lua mod with UE4SS mention that we have the ability to inspect the return value of a function we hook into, does anyone know how to do that?

Cedric do you have any idea? >_>
To give you an idea, I recommend looking over Gameplay Tweaks. It's where I "borrowed" some coding. Since the coding structure is clean and organized.
 
The docs for creating a lua mod with UE4SS mention that we have the ability to inspect the return value of a function we hook into, does anyone know how to do that?

Cedric do you have any idea? >_>

This might be what your looking for.
 

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top