Create and Fuck your AI Slut -70% OFF
x

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,561
1,914
356


There is beta patch available only here right now. Official patch should be out after 2-3 hours.
 

youraccount69

I'm like a karate chop
Donor
Dec 30, 2020
8,686
3,965
436
ApocalypticWorld-0.27
You don't have permission to view the spoiler content. Log in or register now.
rpdl torrents are unaffiliated with F95Zone and the game developer.
Please note that we do not provide support for games.
For torrent-related issues use here, or join us on !
, . Downloading issues? Look here.​
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,561
1,914
356
I realized that _persons in 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:
JavaScript:
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;
};
Using something like SugarCube.setup.getRandomPersonIds([3, 5], 2) can cause an infinite loop. In the code, randomIndex is an integer that's either 0 or 1 (since persons is a 2 element array here). So randomIds is 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, randomIndex is 0. Now randomPersonList has a length of 1 and so afterwards, randomIndex will always be 0 and thus doesn't get pushed into randomIds. So randomIds stays 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.
Note that guest1492's test is in v0.26c, and I've changed setup.getRandomPersons in v0.27 (was giving always the same people).
I did not change setup.getRandomPersonIds however and guest1492 replied he thinks the problem might be there.

CU

Problem actually was not with the getRandomPersonIds BUT getRandomPersons as there wasn't check in while on original array limit. So without any elements inside it it still tried to find another person.
But as decker666 mentioned. It has changed in 0.27 and that shouldn't be problem there anymore.
 
  • Like
Reactions: decker666

swrdesf

Newbie
Mar 6, 2020
31
47
133
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?
 

red1n

Newbie
May 4, 2022
25
14
13
gotta agree about the ugly doll pic for girls, but can't you replace it the same way as with mods, like, chose the doll you want, then replace it with the same name in image dolls folder and then launch searchaction.js with cmd with nodejs and it should replace it,no?
 
  • Like
Reactions: swammy

LizJ

Member
Aug 13, 2020
304
196
166
v0.27a (Online)

1. I cannot buy the last slave offered when the market is closing:

market.jpg

2. Why can I give knives/bows/axes/etc to un-purchased slaves ate the market?
 

Billshwr

Active Member
Feb 17, 2021
803
231
144
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
 
  • Like
Reactions: ttyrke

depechedNode

Well-Known Member
Oct 10, 2017
1,809
3,774
445
I 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.
 
  • Like
Reactions: TheHighlander

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,561
1,914
356
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
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
 
  • Like
Reactions: Billshwr

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,561
1,914
356
I 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.
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 way
 

Couldppppp

New Member
Jul 7, 2023
2
1
46
The npc design before 0.26 was better. The npc design that changed from 0.27 is not good. It looks like you need to upgrade for the npc face part.
 
  • Like
Reactions: dagonno

Magnus Castor

Newbie
Jun 8, 2023
86
108
157
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
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
Found it. Newly found gas masks teleports into the storage at home, not your backpack... :cool:
Just a typo.....
 
  • Like
Reactions: ttyrke

styggtuff12

Active Member
Jul 12, 2017
767
1,014
378
ok wtf am i suppose to do in the bar to get with the trans girl? all i can to is click continue and then nothing happens, i have trans content enabled, even turned it off and on but nothing changes...
 
3.70 star(s) 52 Votes