“Are you tired of falling for the same trick of a hidden mimic in a red, blue, or black box? In this guide, we’ll teach you how to avoid being fooled and make the statement “1 mimic is hiding in a Red/Blue/Black box” a thing of the past. Let’s dive into the world of Mimic Logic and fix this common gaming frustration.”
Introduction
A lot of people have brought this up in the bug report and feedback threads for this game in the Steam forum and a few have submitted screenshots as well, yet the developer has done nothing to resolve the issue. Well, players of Mimic Logic, I bring to you the knowledge that will allow you to say:
Finding the File to Edit
Once you’re there, you need to go into the “www” folder, followed by the “js” folder, and finally the “plugins” folder. In there, you should see a lot of JavaScript (.js) files. The one you need to edit is called BoxTex.
Note: In this screenshot, it says my Steam folder is on my D drive because that’s where I installed it. Yours will most likely be in your Program Files (x86) folder on your C drive unless you chose to install Steam somewhere else on your computer.
⚠️ Before you make any changes or even open the file, make a backup copy of this file somewhere on your computer. If you mess up while editing the file, you can break the game to the point where it is literally unplayable. I am not kidding.
Finding and Editing the Right Lines
Once you have opened BoxTex in the text editor of your choice, you need to find the lines that need editing. Luckily, there is a particular phrase on those lines that you can use to find them easily. Open your text editor’s Find tool (Ctrl + F is the usual shortcut for this) and look for the phrase “hiding in”. You should find this phrase appears on two lines.
One line starts like this:
The other starts like this:
They both come out the same in the game and I haven’t figured out yet when each one is used or if one of them is unused. Also, you can completely ignore everything after the “hiding in”, you won’t need to change anything there.
What you need to do now is type the word “Exactly” followed by a space, and you need to type this inside the first set of quote marks on each line just after the text that’s already there. If you’ve done it right, it should look like this in both lines:
Once you have done this, save the BoxTex file and start up Mimic Logic. Now, when you play through the game, you should start seeing that those statements about the number of mimics of a certain colour now begin with the word “Exactly”.
But Wait, There’s More!
When you first see a chest say “Exactly 1 Mimic is hiding in a Blue box.” you might think the text box is a bit wide. This is because:
- The game automatically resizes the text box to accommodate the longest line of text in the clue
- The game relies on the BoxTex file to tell it when one line ends and another begins
How does the BoxTex file tell the game to start a new line? Any time you see this sequence of characters:
That’s when the game decides to start a new line in the text. I believe the “\n” is the actual line break and the stuff afterwards is to ensure the new line is properly aligned and formatted in the text box, but I’m not 100% sure. Since every “\n” in the file is followed by those characters, I am assuming you need them there.
So, let’s say you want to start a new line after the word “Mimic(s)” instead of “is/are”. You can add that series of characters to make a new line in between the words “Mimic” and “is”, and the words “Mimics” and “are”, replacing the spaces between those two words like this:
And then, where you see those characters before the word “hiding”, just delete those and put a space in instead, like this:
Additionally, if you’ve been experiencing the confusion that I mentioned at the beginning of the guide, you might want the game to put extra emphasis on the word “Exactly”, maybe by changing it to another colour. Fortunately, there is a special tag that’ll let you do just that from within the BoxTex file. The tag looks something like this:
The # will be replaced by a number corresponding to a particular text colour. The ones I’ve found so far are:
- 0 = white (default)
- 1 = blue (as in “There is a Mimic among the Blue boxes.”)
- 2 = red (as in “There is a Mimic among the Red boxes.”)
- 4 = pastel blue (like when you see “no” or “not” in a clue like “The top row contains no Mimics.”)
- 8 = grey (as in “There is a Mimic among the Black boxes.”
When you put that colour tag before a word, that word will have its colour changed. But so will everything else after it, since the game doesn’t know when to stop unless the code tells it when to stop. So you need to put a second colour tag after it to change back to the usual text colour. You can also use the tag without the square brackets and number to go back to the default colour.
What all this means is, if you want to make the word “Exactly” appear in pastel blue and the rest of the clue to use the same colours it always did, you need to add tags around the word so the code looks like this:
You can change other things in the BoxTex file to rephrase some of the other clues the chests give you. If you’re going to do this, make sure you:
- Back up the BoxTex file before changing anything
- Test each change individually so that, if the game ends up screwed up, you know what you did that broke it
- Begin a new run to test each change – if you load a save file from within a dungeon, the change won’t be applied immediately
- Check Kyper’s guide to see which game modes and levels you should do to maximise the odds of seeing your rephrased clues as soon as possible
https://steamcommunity.com/sharedfiles/filedetails/?id=3173999119
Oops, I Broke It
Did you make a backup copy of BoxTex like I told you to? If so, then you can fix this easily. All you have to do is copy and paste that backup BoxTex file into the folder where the BoxTex file normally goes, making sure you replace the file in there with your backup. The game will go back to how it was before.
If you didn’t, then you may have to try to undo the changes within the BoxTex file, verify the integrity of the game files through Steam, or uninstall and reinstall the game. But hopefully you were smart enough to heed my warning and it won’t come to this.
And that wraps up our share on Mimic Logic: How to fix “1 mimic is hiding in a Red/Blue/Black box”. If you have any additional insights or tips to contribute, don’t hesitate to drop a comment below. For a more in-depth read, you can refer to the original article here by Onion_Bubs, who deserves all the credit. Happy gaming!