I really like your mod, thank you Its possible to do the same with pal food? mines just eat one or two time and go back to work, then after 5 minutes come to eat again without filling hungry bar
There exists mod for that https://www.nexusmods.com/palworld/mods/313 However eating food periodically is also important to sustain food buff (workspeed +30%) and the eating time doesn't really contribute too much to the overall time lose, filling your pal to full every time will likely reduce the overall workspeed
Got it now, thanks I hadn't thought about the salad because I didn't know it gave +30% work (i'm still low level and haven't unlocked lettuce plantation)
i didn't try it for now, just discover your mod and was really happy to see someone to correct this annoying problem of "take a bath, not enough sanity but go back to work" and we have better to do than staying near the baths to take/throw pals on bath to try helping them ^^ (yes i did it so many times T__T ) Hope to see them staying in their baths <3
Saaaaaaame. I legit just take them to the bath and sigh as I stand there and hammer Y a ton until they have been shoved into it enough times to reach something close to 100
nah this mod is to adjust their ai for going bath themselves, has nothing to do with player throwing them in. also if the player is to intervene the recover process it's usually suggested just to fill pals with foods
Oh, I only throw them in because they go down to like 12 at times even though I have them on relaxed.... with hot springs like 10 feet away. So I grab the ones that seem stuck in some sort of sanity loss loop and yeet them into the hot springs. So your mod will help, especially if I do as you say and edit how long they stay in there. It's not like I cannot just build more hot springs.
So i come back after playing with your mod and.... How much loving it is to see all pals with full sanity, without my help to keep them good. <3 I love it. Thanks a lot this is so usefull !!
I have no idea how to make pak mod, but as I already located the values that need to be changed in this mod it should be easy for someone with the related knowledge to make a pak one.
You can unpak and pak files using Unreal Pak Tool which Vortex installs by default when you add Palworld to managed games. I know you have it since it left some junk files in your mod's folder. :)
I'm not familiar with it to tell how to use it, though. I only know a few details about pak mods. There are two kinds of them.
One overrides the game files (patch-paks) and can be installed without UE4SS (including on Palworld Linux servers). The problem here is the override part. If there's more than one mod overriding the same file, only one will apply (depending on their load order). You may or may not need UE4 to edit the file you are trying to change. As I know, the patch-pak name must end with _P.pak (underscore P) for the game to notice and load it.
The other kind are logic paks that contain new game logic written in UE4 scripting language, so you need UE4 installed to make these. This doesn't override anything and mods like this can do even more than LUA and in some cases required for stability when you want to change something with frame precision (author of MergeDrops had to switch to these to avoid game crashes). However, they require UE4SS to run and thus are impossible to install on Linux servers since there's no UE4SS for Linux as far as I know.
The only version that makes sense here is the patch-paks to be installed on the server version of Palworld. To make one you'll have to track down files that have settings you're changing with LUA. If you manage to make one, make sure to keep the LUA version since, as I mentioned above, they are not fully interchangeable. You can install multiple LUA mods that alter game settings, but you can't install multiple patch-paks altering the same file (with these settings).
BTW, regarding your LUA code. I think you can run the upper portion of set_config only once on ServerAcknowledgePossession hook before setting the NotifyOnNewObject hook. And... why is there a delay for the DodgeWork hook? Also, considering you run FindAllOf anyway, I'd recommend adding a variable like to check has DodgeWork been triggered and delay started, so you won't run set_config 5 seconds after each event. I wonder if AIActionDuration and TerminateSanityValueOver are stored in the game settings too, so you may override them once and drop the DodgeWork hook entirely.
Nice mod but I wonder when does those 30 sec rest start because I have a very big base and I have sleep place and food in one place but to give their bath a better looking place it lays opposit of the base so while walking from bed to work is close they have to walk a bit to get to their bath, why I wonder 30 sec isn't long and by time they jump in bath might have barely time to relax in it.
And no can't place it closer as the middle of the base is kinda mine place with ore nodes, of the 8 I already had to lose 2 to give a decent walk path for bigger pals and moving those baths closer would only result either remove more nodes, or else on next lvl but that about same distance as the ground floor place.
It turns out that the game actually have the mechanics to send pals back when they recover to certain amount of sanity, but the value is actually higher than 100. in v2.0 i fixed that and reset all time things to default, it should be able to solve this problem (unless the default 90 sec is still not enough for your base)
18 comments
Its possible to do the same with pal food? mines just eat one or two time and go back to work, then after 5 minutes come to eat again without filling hungry bar
However eating food periodically is also important to sustain food buff (workspeed +30%) and the eating time doesn't really contribute too much to the overall time lose, filling your pal to full every time will likely reduce the overall workspeed
I hadn't thought about the salad because I didn't know it gave +30% work (i'm still low level and haven't unlocked lettuce plantation)
Hope to see them staying in their baths <3
For future updates please remove "__folder_managed_by_vortex" files from all directories before uploading.
I'm not familiar with it to tell how to use it, though. I only know a few details about pak mods. There are two kinds of them.
One overrides the game files (patch-paks) and can be installed without UE4SS (including on Palworld Linux servers). The problem here is the override part. If there's more than one mod overriding the same file, only one will apply (depending on their load order). You may or may not need UE4 to edit the file you are trying to change. As I know, the patch-pak name must end with _P.pak (underscore P) for the game to notice and load it.
The other kind are logic paks that contain new game logic written in UE4 scripting language, so you need UE4 installed to make these. This doesn't override anything and mods like this can do even more than LUA and in some cases required for stability when you want to change something with frame precision (author of MergeDrops had to switch to these to avoid game crashes). However, they require UE4SS to run and thus are impossible to install on Linux servers since there's no UE4SS for Linux as far as I know.
The only version that makes sense here is the patch-paks to be installed on the server version of Palworld. To make one you'll have to track down files that have settings you're changing with LUA. If you manage to make one, make sure to keep the LUA version since, as I mentioned above, they are not fully interchangeable. You can install multiple LUA mods that alter game settings, but you can't install multiple patch-paks altering the same file (with these settings).
BTW, regarding your LUA code. I think you can run the upper portion of set_config only once on ServerAcknowledgePossession hook before setting the NotifyOnNewObject hook. And... why is there a delay for the DodgeWork hook? Also, considering you run FindAllOf anyway, I'd recommend adding a variable like to check has DodgeWork been triggered and delay started, so you won't run set_config 5 seconds after each event.
I wonder if AIActionDuration and TerminateSanityValueOver are stored in the game settings too, so you may override them once and drop the DodgeWork hook entirely.
And no can't place it closer as the middle of the base is kinda mine place with ore nodes, of the 8 I already had to lose 2 to give a decent walk path for bigger pals and moving those baths closer would only result either remove more nodes, or else on next lvl but that about same distance as the ground floor place.