Project Zomboid

Project Zomboid

暂停时将任务添加到队列 [41.50 and 41.51+]
 此主题已被置顶,因此可能具有重要性
Poltergeist 2022 年 10 月 15 日 上午 3:38
Alternative Method
So thanks to Tyrir on discord, we have a way of patching calls to java methods.
最后由 Poltergeist 编辑于; 2022 年 11 月 13 日 上午 8:23
< >
正在显示第 1 - 12 条,共 12 条留言
Poltergeist 2022 年 10 月 29 日 上午 6:25 
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.
最后由 Poltergeist 编辑于; 2022 年 11 月 13 日 上午 2:16
Auratian 2022 年 11 月 13 日 上午 12:46 
引用自 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 2022 年 11 月 13 日 上午 2:13 
引用自 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.
最后由 Poltergeist 编辑于; 2022 年 11 月 13 日 上午 2:56
Auratian 2022 年 11 月 13 日 上午 6:26 
引用自 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?
最后由 Auratian 编辑于; 2022 年 11 月 13 日 上午 6:32
Poltergeist 2022 年 11 月 13 日 上午 6:42 
Yeah, go ahead.
Poltergeist 2022 年 11 月 13 日 上午 8:26 
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 2022 年 11 月 13 日 上午 8:28 
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.
最后由 Poltergeist 编辑于; 2022 年 11 月 13 日 上午 8:51
Auratian 2022 年 11 月 13 日 上午 9:33 
引用自 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?
引用自 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 2022 年 11 月 13 日 上午 9:56 
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 2022 年 11 月 13 日 上午 11:33 
引用自 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
最后由 Auratian 编辑于; 2022 年 11 月 13 日 上午 11:39
Poltergeist 2022 年 11 月 22 日 下午 12:41 
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.
最后由 Poltergeist 编辑于; 2022 年 11 月 22 日 下午 1:16
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50