Project Zomboid

Project Zomboid

Let Me Think - Open Menus and Queue Tasks While Paused [41.66+]
 This topic has been pinned, so it's probably important
Poltergeist Oct 15, 2022 @ 3:38am
Alternative Method
So thanks to Tyrir on discord, we have a way of patching calls to java methods.
Last edited by Poltergeist; Nov 13, 2022 @ 8:23am
< >
Showing 1-12 of 12 comments
Poltergeist Oct 29, 2022 @ 6:25am 
This is the incomplete patch for unpausing. Must be placed in server folder to be able to patch all files.

https://github.com/Poltergeistzx/Project-Zomboid/blob/main/lua/zx_GameSpeedFaker.lua


I'm going to test this with always faking for better performance and see what breaks.
- F2 key pauses game, but doesn't unpause it. Use F3 instead.
Last edited by Poltergeist; Nov 13, 2022 @ 2:16am
Auratian Nov 13, 2022 @ 12:46am 
Originally posted by Neznajka:
This is the incomplete patch for unpausing. Must be placed in server folder to be able to patch all files.
Would you mind explaining where exactly this code needs to be placed in the game files? Does this also require Let Me Think to be enabled? Does this do the exact same thing as Let Me think or alter the behaviour of the mod?
Poltergeist Nov 13, 2022 @ 2:13am 
Originally posted by Auratian:
Would you mind explaining where exactly this code needs to be placed in the game files? Does this also require Let Me Think to be enabled? Does this do the exact same thing as Let Me think or alter the behaviour of the mod?
It's different approach to get the same result, only use one of them.

What the code does is, whenever the game checks if you're paused (from lua moddable side) it will be told you're not paused. The file should be placed inside a mod, in the lua/server folder.

Pros of Let me think: less code to execute.
Pros of the alternative: isn't in need of update every time the game updates and will be compatible with other mods.
Last edited by Poltergeist; Nov 13, 2022 @ 2:56am
Auratian Nov 13, 2022 @ 6:26am 
Originally posted by Neznajka:

What the code does is, whenever the game checks if you're paused (from lua moddable side) it will be told you're not paused. The file should be placed inside a mod, in the lua/server folder.

Pros of Let me think: less code to execute.
Pros of the alternative: isn't in need of update every time the game updates and will be compatible with other mods.
Life saver! Another pro you can add is that it fixes problems with Fuel API large gas cans so very much appreciated!!
Do you mind if I shared the code in a mod with credits so people can use it easily?
Last edited by Auratian; Nov 13, 2022 @ 6:32am
Poltergeist Nov 13, 2022 @ 6:42am 
Yeah, go ahead.
Poltergeist Nov 13, 2022 @ 8:26am 
Tyrir shared the way to patch calls to java, (the patcher). Just saying in case he reads the description and has no idea when he did that.
The rest was me, I too don't want to be responsible for bugs though.
Poltergeist Nov 13, 2022 @ 8:28am 
Btw, did you get the code from GitHub, it should be mostly complete, except for joypad. Ah, yes the vehicle buttons, I didn't want to do those.
Last edited by Poltergeist; Nov 13, 2022 @ 8:51am
Auratian Nov 13, 2022 @ 9:33am 
Originally posted by Neznajka:
Tyrir shared the way to patch calls to java, (the patcher). Just saying in case he reads the description and has no idea when he did that.
The rest was me, I too don't want to be responsible for bugs though.
Could you expand both parts of this? Do you not want to be credited and is there issues with the crediting?
Originally posted by Neznajka:
Btw, did you get the code from GitHub, it should be mostly complete, except for joypad. Ah, yes the vehicle buttons, I didn't want to do those.
Yes, thankyou, I saw that and it's been implemented!
Poltergeist Nov 13, 2022 @ 9:56am 
Tyrir only made the top patch, which is why he'd be very confused to see he produced this. Everything else is ok.
I was joking, not to come chasing me with bug reports. Though I'd be happy to help if I can.
Auratian Nov 13, 2022 @ 11:33am 
Originally posted by Neznajka:
Tyrir only made the top patch, which is why he'd be very confused to see he produced this. Everything else is ok.
I was joking, not to come chasing me with bug reports. Though I'd be happy to help if I can.
I have to hand it to you, you wrote a very impressive piece of code, no errors at all with every major mod while functioning more broadly! If someone complains something fierce I'm sure you'll be able to handle it lol. Thank you again!

I'm going to try friend you to add you as a collaborator on the mod, seeing as you know how to add extra ui elements to the mod's functionality
Last edited by Auratian; Nov 13, 2022 @ 11:39am
Poltergeist Nov 22, 2022 @ 12:41pm 
I added some vehicle stuff and buttons should stop opening menus when you see mainscreen options.

Tested only briefly...

Filename should start with ~ because it affects load order.

On second thought, I will change the key patcher again. You can copy the vehicle ui lines if you want.
Last edited by Poltergeist; Nov 22, 2022 @ 1:16pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50