in the bag it will only show 1 but if you look in your save file youll see the others (i have 11 total)i have the money but still can only buy 1 axe at a time from the farm
Actually no. Just checked and axe was an unique item, so MC could have only one. Will be fixed in 0.27a patch.you can if you have enough monies
CheckAnyone else had the error in the current save?
"Cannot read properties of undefined (reading 'id')." This error appeared in my save that I have been using since the beginning of the game
Thx for reporting BUT you don't give integers as variable for that method but rather list npc array objects.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:
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,randomIndex
is an integer that's either 0 or 1 (sincepersons
is a 2 element array here). SorandomIds
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. NowrandomPersonList
has a length of 1 and so afterwards,randomIndex
will always be 0 and thus doesn't get pushed intorandomIds
. SorandomIds
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.
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:
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,randomIndex
is an integer that's either 0 or 1 (sincepersons
is a 2 element array here). SorandomIds
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. NowrandomPersonList
has a length of 1 and so afterwards,randomIndex
will always be 0 and thus doesn't get pushed intorandomIds
. SorandomIds
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.
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