RPGM Chica's Horny and Kinky Night [v0.4] [Vanny Dev Datz]

4.70 star(s) 9 Votes

Timerz

New Member
Jun 3, 2020
4
7
And uh, increasing cache limits might only work for the first or the second pass (like 2 fights in) and when cache fills up and starts to rewrite it it'll get broken again getting you back to square one.
I think there is not much to worry about, the garbage collector that is used in RPGM MV can possibly clean unused and useless data whenever it can, the thing is that the cache is WAY smaller for this kind of game.
"ImageCache.limit = 10 * 1000 * 1000;" translates to how many RGBA pixels will be stored in the cache for later use, which in this case means that it has the size of 10 pngs with 1000x1000 in resolution (40MB in total). And thanks to how animations works in here, it easily overflows and has to rewrite the data from the drive frequently, resulting in flickering. Just for you have a notion of it, combining chica's animations in battle already fills all that in HALF.
So changing the 10 for a 30 (120MB) will be more than enough here (for now), you can also put 100 or above if you're crazy but don't expect any improvements.
The reason why is it too small is because this engine was made with phones in mind. In 2015! Back then cellphones didn't really had that much space, but nowadays they are a beast, holy hell.
But you still got a point, it would be great to use less memory for it to be lower end friendlier to a lot of folks, however this is getting in a territory far from my reach now.
 
Last edited:

wenchy123

Newbie
Sep 19, 2020
62
107
I have never used this engine so i dont know ins and outs. But phones from 2015 and now huuuge difference (off topic right)
I've always found that making things easier to read (for yourself) and others usually works best, no one likes spaghetti code even if it has the sheffs kiss of approval.
Keep in mind i legit havent looked at the code or the engine so im not trying to call out any one here, just talking off topic?
Psst beeing a nerd is awsome
 

buppiest boi

Newbie
Jun 26, 2020
39
54
I'll be honest, enemies moving during battle isn't really worth the headache that coding it sounds like. I'd personally put a placeholder png for it, get the important stuff of the game out first, do a test build to make sure we dont softlock or walk through walls or die in real life and then retro-actively do a mini patch that adds the animations and bug fixes. It'll still take long to fix the whole game but, if you're gonna miss out anything to save time, that's the thing I personally care the least about.
 

JJTrunks-

Newbie
Apr 12, 2022
20
24
WARNING!
massive blah blah blah below. TLDR: I may have found a fix, download the file, extract it, put on CHKN0.4Alpha\www\js\plugins, and replace the file. See if it works! (it only works on new saves).

OKAY, OKAY. I MAY HAVE CREATED A FIX! A GOOD ONE! When I read your remark of the endo bug yesterday, I lost sleep once again thinking of why the hell SAVING brakes the endo animation. Just the fact that the two were so far apart made my spaghetti instincts scream. So today I spent all day sniffing around on the files looking for an answer.

First I increased the cache, which resolved the animations flickering a disappearing for a few seconds on my game. (search for ImageCache.limit = 10 * 1000 * 1000; on 'rpg_core.js', and change the 10 for a bigger number). But NOT THE ENDO! So I went to the plugins and went to the main plugin for the animations, and noticed that the entire code was obfuscated, for those who don't know is a way to hide code by making it unreadable but with the logic intact. At first I ignored it, I thought it wasn't worth it checking, until I noticed that it was one of the only one plugins that was obfuscated.

So I sneaked in and analyze it to check for any trashy behavior, and guess what? THERE WAS! Turns out one of the logics to hide the code was to put it a variable and make a good shuffle around it. Good enough, run it once and there's actually no problem with it. HOWEVER. I theorized that somehow for any reason when the game saved it, it would go that part of the code and run it AGAIN, making all the functions a mess or something similar.

Then I proceeded deobfuscated the file by HAND with a little help of the game's console, just to remove that functionality (JavaScript is a weird language). It still has a bunch of unnamed hex values but I did it. I then started a new save file and SPAMMED save around the place until I goto the first endo.

And it fucking worked. I seriously cannot believe it worked. I tested with the unmodified of the plugin doing the same thing and it broke. I'm actually questioning if I'm dreaming or not.

Oh well, I guess that a fix then. But I'm still not convinced, it would be great if anyone here tests to see if it works for them too. Again, new run, new save, SPAM SAVING COMPUTER OR NOT. And sorry for the massive text.

Also really thanks VannyDev for creating the game, it already surpasses 90% of the games here with just this little content. Wait, oh god its way past my midnight, my body clock is ruined!
View attachment 4418160
View attachment 4418166
Great I have a reason to stay up tomorrow to see if it works, it probably does I'm just not gonna do it today because I'm literally in bed at this time and don't wanna get up to do one thing and go back to my bed to then never fall asleep. So if nobody confirms it by then, I will(y)
 
  • Like
Reactions: Timerz

Timerz

New Member
Jun 3, 2020
4
7
I have never used this engine so i dont know ins and outs. But phones from 2015 and now huuuge difference (off topic right)
I've always found that making things easier to read (for yourself) and others usually works best, no one likes spaghetti code even if it has the sheffs kiss of approval.
Keep in mind i legit havent looked at the code or the engine so im not trying to call out any one here, just talking off topic?
Psst beeing a nerd is awsome
Hmmm... Spaghetti, my favorite. But for real, I find the easiest to avoid it by just making all the main actions calls, like a the main part of the code work just like a conveyor belt that just delivers values to functions, and keep ALL the logic on the functions, where each one works independently without the need of another one. But alas, this doesn't always work, code refactoring is inevitable for all of us.

Great I have a reason to stay up tomorrow to see if it works, it probably does I'm just not gonna do it today because I'm literally in bed at this time and don't wanna get up to do one thing and go back to my bed to then never fall asleep. So if nobody confirms it by then, I will(y)
You got my respect. Insomnia is a bitch.
 

buppiest boi

Newbie
Jun 26, 2020
39
54
Actually, speaking of update, can we have that test build that adds the cutscene? just for bug testing purposes, I know there's like 0 more content in that build but we'd get slightly more stuff to do while we wait for the big update
 

Evenbl

Newbie
Nov 6, 2022
30
29
Actually, speaking of update, can we have that test build that adds the cutscene? just for bug testing purposes, I know there's like 0 more content in that build but we'd get slightly more stuff to do while we wait for the big update
While I would like that, it’s clear people don’t want to post it here and I have since accepted that
 
4.70 star(s) 9 Votes