Project Zomboid

Project Zomboid

CDC Rapid Response Settings - No Hope
16 条留言
tot4ll3d 2023 年 4 月 19 日 下午 4:39 
No worries and nothing major, its the typical SP/MP drama with functions etc.

Just to stress I didn't test the exact solution below but the problem is confirmed, I do use a similar code chunk in my mod for checking for your's ironically and it works =)

Fingers crossed on this update you mentioned. I was thinking it would be absolutely amazing if there was a door open in your base mod for people with the knowledge (other modders) to create their own settings files! (maybe a pointer to a filename to use). But if something is in the works to remove them I'll sit tight and see what comes down the road :D

Many Thanks again, your Mod has become a mainstay of our servers and even integrated with our own mod for added loot on some of our special Z's!

Stay safe out there!
Tot4ll3d
Phil J Herman  [作者] 2023 年 4 月 18 日 上午 9:31 
@tot4ll3d I will take a look at this more closely in the next few days and see what I can find out with all this. Thank you for all the information. Good news is whenever I finally get this next update out, no settings mods are needed. Good luck out there!
tot4ll3d 2023 年 4 月 17 日 下午 2:22 
Hi Phil,

Sorry to fill your comments here Sir but we've got to the bottom of it. That line I mentioned below is only functional in SP - so none of these settings mods actually work MP atm!

print(ActiveMods.getById("currentGame"):getMods()) returns an empty array in MP.

Maybe something like:

local activatedModsTable = {}
local activatedMods = getActivatedMods()
for i=0,activatedMods:size()-1 do
activatedModsTable[activatedMods:get(i)] = 1
end

and then replace all the mod checks with:

if activatedModsTable['CDCRapidResponseSettingsStandard'] then
-- stuff
end

(NOT TESTED)

This will fix for MP and SP.

Awesome Mod BTW - hope you might find time to take a look at this!
tot4ll3d 2023 年 4 月 17 日 下午 1:41 
Further to below - used print on my mod to grab a printed list of active installed mods...

LOG : General , 1681763659212> 1,630,511,557> got mod: CDCRapidResponse
LOG : General , 1681763659212> 1,630,511,557> got mod: CDCRapidResponseSettingsNoHope
tot4ll3d 2023 年 4 月 17 日 下午 1:39 
Hi Phil,

I've run both with the hardcore and with the No Hope and neither are being found by the base mod. I run a few dedicated servers and have my own mod as well so checked all the basic/normal things.

I've also tried downloading both the core mod and the settings again, and changing the load order on 3 of our servers, same result everytime. It's like the line:

elseif(ActiveMods.getById("currentGame"):isModActive("CDCRapidResponseSettingsNoHope")) then

Just isn't working. Will investigate further and come back to you!
tot4ll3d 2023 年 4 月 17 日 上午 11:25 
Hi Phil,

I'll give that a try, I'm sure the settings mod was suppose to print a load of other stuff to the console saying that dynamic loot was being used and sandbox was disabled. But I'm not seeing those messages anywhere...

I'll try and switch over to the hardcore and see what happens....
Phil J Herman  [作者] 2023 年 4 月 15 日 下午 6:34 
@tot4ll3d That is an odd one. At first thought I am not sure. Have you verified that the ID and name are correct and that the settings mod is getting added? If that is all right, you can try doing the hardcore mode and seeing if that works, if it does, then you can switch back to No Hope and see if that corrected it.
tot4ll3d 2023 年 4 月 15 日 上午 8:37 
Hi Phil,

I'm using this Mod loaded AFTER the base CDC mod and still getting a console print saying no settings have been found and need to add one to disable dead container loot etc.

Any ideas why this might be happening...? I can see the settings loading in the console straight after :S

Thanks!
Sebastianech04 2022 年 10 月 22 日 上午 11:55 
Hi Phil!
This mod option is where the spawning of this type of loot is the most reduced?
My idea of using it would be that it doesn't exist in the loot tables so it does not spawn.
Phil J Herman  [作者] 2022 年 9 月 30 日 上午 8:51 
@DrTuSo - There is a great abundance in standard mode. It is to allow for sprinters mainly and to allow players to be a bit more reckless. Hardcore mode is the same as 'No Hope' but with higher loot chances.
DrTuSo 2022 年 9 月 30 日 上午 8:21 
That is now some ueful information. Now I know where to look for it. Thank you.
Not that I need it in my current run. Got 2 woodenboxes full of cdc stuff. Can cure myself from the virus more than 150 times...

Not fully decided if I go hardcore or nohope on my next run. But for now, I just hope this one lasts longer.
Phil J Herman  [作者] 2022 年 9 月 30 日 上午 8:06 
@DrTuSo - you nailed it, standard zeds will not drop anything useful, except the spent syrette cause you can remove the needle from that and use it to sew.
Phil J Herman  [作者] 2022 年 9 月 30 日 上午 8:05 
@YepThatsMyName - They are as rare as the PZ system allows before it breaks haha. I think it is likely in 'No Hope' mode that you might never see a useful item. Useful items will only drop from first responders, pharmacy and hospital staff and on soldiers. They can also spawn in medical areas cabinets and police area cabinets. I think the actual chance in the end is something like a .006% chance of loot in 'No Hope' mode.
DrTuSo 2022 年 9 月 30 日 上午 7:41 
@YepThatsMyName

I was on my way to McCoy Logging when I added the NoHope setting mod.

Kill 1600+ zeds around in that area. Looted 99% of them with the Auto Loot Mod (with Whitelist).
Found more than 100+ test results (didn't loot them, so no exact number on this).
Even checked a few hundred corpses to see if my whitelist was still working correctly.

But nothing else.

Maybe it needs some special kind of zed to have a chance to drop something useful?
YepThatsMyName 2022 年 9 月 30 日 上午 5:48 
By "No Hope" how exactly rare are the pills and antidotes now?
DrTuSo 2022 年 9 月 30 日 上午 3:23 
Awesome, thank you!