I realized that_personsin the code I quoted is actually an array of integers and not objects, so my point about your code is invalid and that's not the reason for the game freezing.
EDIT 1
After yet another look, I believe that the problem is with this part of the code:
Using something likeJavaScript:setup.getRandomPersonIds = function(persons, limit = 2) { var randomIds = []; var randomPersonList = clone(persons); while (randomIds.length < limit && randomPersonList.length) { var randomIndex = Math.floor(Math.random() * randomPersonList.length); if (!randomIds.includes(randomIndex)) { randomIds.push(randomIndex); randomPersonList.splice(randomIndex, 1); } } return randomIds; };SugarCube.setup.getRandomPersonIds([3, 5], 2)can cause an infinite loop. In the code,randomIndexis an integer that's either 0 or 1 (sincepersonsis a 2 element array here). SorandomIdsis going to be filled with either 0 or 1 (which is not what you want, since you actually want it to be 3 or 5 in this example, but that's a separate issue).
The infinite loop happens if the first time through the loop,randomIndexis 0. NowrandomPersonListhas a length of 1 and so afterwards,randomIndexwill always be 0 and thus doesn't get pushed intorandomIds. SorandomIdsstays with length 1 and the loop repeats.
Side note, but SugarCube's creator added many custom methods to the Array class, so that whole function could be written like so:
JavaScript:setup.getRandomPersonIds = function(persons, limit = 2) { return [].concatUnique(persons).randomMany(limit); }
EDIT 2
Changing that function seems to have fixed the problem for me.
No, but they are still in progress. That was just initial change so in the future they each can have different type of faces, eyes, lips, etc.I really don't like the new faces for the girls, they look very ugly
can i mod the files in some way to reverse it?
Same on my malwarebytesi just try open link you sendt and it blocked it again cos of trojan again and also i just wanna make sure i got a keylogger and anything else from here
Probably same as axe that was unique item... if no major bugs will be reported I will fix this for 0.28 release. If there will be another patch, I will include it thereDon’t know if a common bug but I can’t get more than 1 gas mask to give to my companions. Every time I find another one in the cave/police car, my total/inventory still states I only have 1
Thanks and yes - supporter scenes are additional stuff, additional option to fuck someone, some other additional ways in events, etc. Paywall will not block story or mechanical stuff in any wayI was expecting something interesting, but this neatly developed game was surprisingly good and has the potential to become great. I loved the freedom game offers, enjoyed the survival grind, fighting to stay alive, trying to become stronger and reputable and also good sex mechanics. Only annoying thing is paywalled scenes, but I'm hoping those scenes are just for flavour and not important, otherwise it'd be a shame. Thanks to the dev and good luck with the development.
Don’t know if a common bug but I can’t get more than 1 gas mask to give to my companions. Every time I find another one in the cave/police car, my total/inventory still states I only have 1
Found it. Newly found gas masks teleports into the storage at home, not your backpack...Probably same as axe that was unique item... if no major bugs will be reported I will fix this for 0.28 release. If there will be another patch, I will include it there