100% Orange Juice

100% Orange Juice

39 ratings
404: Pudding Not Found
By Tekkahedron
Everything's broken and it's all your fault. A guide on debugging and fixing mods in 100% Orange Juice.
2
   
Award
Favorite
Favorited
Unfavorite
Introduction
It's not fair... I worked so hard on this...
QP? What are you doing on the floor?
I'm trying to make a mod for 001% Tangelo Drink but nothing is working. I can't even get it to show up in the menu anymore...
Ufufu... You're in luck. I just happen to be an S-tier bug fixer. I can show you some tips for fixing problems like this. We'll have this mod working in no time!
Is that because your games are so broken?
That was uncalled for!


Whether you are looking to upgrade some game assets, play as your OC, or inject your favorite memes into the game, there's a lot a mod can accomplish in 100% Orange Juice. Unfortunately, when things go wrong, it isn't always easy to see why or fix it. In this guide, we will go over some tips and tricks to fixing broken mods.

Tools of the Trade
Hey QP, are you using Notepad to make your text files?
Well, yeah. It's what came on the computer.
Isn't that hard to work with? There are some alternatives you can download that will make this a lot easier. I even found some for sound and image editing too!
Oh yeah? But how much is all this software going to cost me? I can't eat pudding with an empty wallet you know.
They're all free. With no ads either.
Great! We can eat pudding while they download!
This is only going to take a minute or two...
No time is too short for pudding!


Notepad++


https://notepad-plus-plus.org

Notepad++ is a free text editor designed for writing code. Unlike default Notepad, Notepad++ uses colors to highlight parts of your JSON file, making it easier to spot formatting problems. JSON is one of the included code environments, so all you have to do is create your "mod.json" file and start writing!


Audacity


https://www.audacityteam.org/

Audacity is a free audio editing software. It can export in both WAV format for sound effects and voice lines as well as OGG format for background music. The batch export capabilities are particularly helpful when you need to change the sample rate or file type of a large number of voice line files.


Paint.NET


https://www.getpaint.net/

Paint.NET is a beginner friendly image editing program. Layers and extra tools and effects make it a huge step up from the default Paint. It lacks a lot of features that Photoshop or Clip Studio would have, but it does a good enough job for basic sprite editing. Heck, it's what I use to make those funny sprite edits.


Gimp


https://www.gimp.org/

Gimp is another free image editing program with a different set of features than Paint.NET. I'll use it sometimes when there's an effect I want to use that the former program doesn't do well, like transforms or motion blur.

The Mod Directory
Well, here's one problem. You put your files all in the same folder! You have to put your files into folders to mimic the file structure of the game.
And I suppose I'd have to name my files them to match the ones in the game too...
That's right!
Uweh... I mean, I knew that!


Enable file extensions (Windows)
Enabling file extensions will show the hidden part of the filename that tells your operating system what kind of file it is. In Windows 10, this can be done by clicking the "View" tab in File Explorer and checking "File Name Extensions" in the "Show/hide" section.

So instead of
qp_00_00
the file will show up as
qp_00_00.png

Revealing this makes it easier to find problems with incorrect file types as well as change some, such as a TXT file to a JSON.


Check your file names and file structure
Mod files should be in "Steam/steamapps/common/100 Orange Juice/mods". If you were making a mod called "My Amazing Mod", your file structure should look like the diagram below. You don't have to include folders that wouldn't have any files in them.

|--📁 My Amazing Mod |--📄 mod.json |--🖼 preview.png |--📁 cards |--🖼 (card art in png format) |--📁 units |--🖼 (unit sprites in png format) |--📁 hairs |--🖼 (hair sprites in png format) |--📁 hats |--🖼 (hat sprites in png format) |--📁 alphamasks |--🖼 (alpha mask files in png format) |--📁 sound |--💿 (sound effect replacements in wav format) |--📁 music |--📀 (music replacements in ogg format) |--📁 voice_cha_unitcode |--💿 (voice lines for a specific character in wav format) |--📁 voice_sys_unitcode |--💿 (announcer lines for a specific character in wav format)

For voice_cha_unitcode and voice_sys_unitcode, replace "unitcode" with the asset code of the unit who's lines you are replacing. Each character will need their own folders. If any of these folders don't have any files in your mod, you don't have to include them.


mod.json
One common mistake is to create this file as a TXT, then forget to change it to a JSON.
We'll go more into fixing JSON code in the next section.

If the name of your mod in your JSON file is not unique among your installed mods, this will cause only one of them to be loaded.


preview.png


The preview image for your mod file needs to be:
  • In a 16:9 aspect ratio
  • In PNG format
  • Under 1MB in size
If any of these conditions aren't met, your mod may not load.


Asset IDs
Just about anything in this game that you can replace has a special ID tied to it. While many assets have the same ID as the name of the thing they represent, many have abbreviated or different internal names. These two guides have lists of all the asset ID.
https://steamproxy.net/sharedfiles/filedetails/?id=2189405817
https://steamproxy.net/sharedfiles/filedetails/?id=2234774298
JSON Syntax
Sandbox?
No! Syntax!
Computers need exact instructions in order to do things. Forgetting to write one comma or misplacing one bracket will make the whole mod not work.
Oh geez. That's a lot of pressure!
Don't worry! There are a lot of common mistakes that we can look out for.


Check for typos
As mentioned in Sora's modding guide, you can use a JSON formatter like the one linked below to check your JSON file for errors. A JSON formatter is a great tool for finding missing commas or brackets. It's still up to you to fix the errors and misspelled words though.

https://jsonformatter.curiousconcept.com/

Double check to make sure that you have named all the parts of your file correctly. These mistakes will not show up in a JSON formatter unless they cause an error, so they can be a pain to find. One thing that can help is to compare your JSON file to one from a working mod can help you find spelling mistakes and incorrect syntax.


String breaks
Double quotes ( " ) are used to indicate that a set of characters should be packaged together as a string. There are a number of characters that will cause problems when used incorrectly in a string due to having other uses. For example, while you meant this to be read as a quote on a card
"custom_flavor": ""I'm making a mod!" —QP"
the JSON formatter will see this instead and throw an error.
"custom_flavor": "" theheckaretheselettersdoinghere " —QP"
The reason for this is that while you wanted a quote, the JSON formatter reads your quotation marks as the end and beginning of a new string. in order to use a double quote in a string, you will have to use a string break.

By typing a backslash ( \ ), you are telling the formatter to use a character in a way that it couldn't normally. In order to display this quote correctly, we should use this line of code.
"custom_flavor": "\"I'm making a mod!\" —QP"

Here are a few relevant examples of characters that need a string break:

Name
Character
Json Example
Quote
"
\"
Backslash
\
\\
Forward Slash
/
\/
New Line
(Enter key)
\n
Tab
(Tab key)
\t

Sprite Problems
Hurray! The mod is showing up in the game again!
But the sprites are all wrong! A bunch aren't showing up! And what is going on with Sweet Breaker's clothes?!
Hmm... there must be something wrong with the image files. Did you remember to size and format them properly?
Yeah, the mod page said they had to be 25536 characters big.
25536... Where did you get that number?
It's 256 times 256.
That's not what they meant by 256 x 256... Wait, characters? As in letters of the alphabet? What program are you using to make these image files?
Notepad of course!
I don't know whether to be terrified or impressed!


File Formatting


For the most part, sprites need to have the following properties:
  • Be in PNG format.
  • Be 256 x 256 pixels.
  • While not required, a transparent background looks a lot nicer.


Card Art


To replace a card's art, you actually need two versions of the image. In addition to the 256 x 256 version of your image, you will need a 128 x 128 version of the image. This can be easily done by resizing your 256 sized image in an image editing program and saving it as a new file. Remember, this includes unit cards!

For example, if you were going to replace the art for Dangerous Pudding, you would need the following in your cards folder:
  • A 256 x 256 png file named danger256.png
  • A 128 x 128 png file named danger128.png


Alphamasks

If you notice bits of your character being cut out when equipping a modded costume, it is likely because you didn't edit the alphamask file. The alphamask files tell the game what parts of the original sprite to cut out so they don't poke out from behind costumes. Don't forget to edit these files if you change a costume or it may not cull properly!



An alphamask file consists of black and white sections that indicate what parts of the sprite should be removed when wearing a cosmetic item. Black sections will be cut out when the sprite is rendered in game while white sections will not be changed. For example, the image above is the alphamask file of the pumpkin head for QP's neutral pose. Notice how her head is blacked out? It would look weird if her hair and ears were sticking out from behind the pumpkin, so that part of the sprite is culled by the alphamask.


Audio Problems
We're almost there QP! We just need to fix your audio problems now.
Xylophones are good and all, but wait until everyone gets a load of my new theme! I'll win every game after the first norma when my opponents disconnect in fear!
...
This is just Megalovania.
Wait, you can't play that QP! That song has a copyright!
What's Toby Fox gonna do? Demonetize me? This is America! I can use whatever music want!
We live in Japan QP...
Land of dashi and home of kobe, right?
ABABABABABAAAAA!!!


Voice Lines, Announcers, and Sound Effects


Most sound files used for 100% Orange Juice mods need to be in WAV format with a 44100 Hz sample rate. If your files do not meet these specifications, you can convert them using Audacity. Simply drag the sound files into the program, change the sample rate if needed, then export the file as a WAV. The sample rate can be changed in the bottom left corner of the window.


Music


Music files are handled a little differently from the rest of the sound files. They use the OGG format and can be made to loop using instructions in your JSON file. The sample rate remains the same at 44100 Hz though.

If your music is playing but not looping correctly, make sure you have the correct loop point by opening the song in Audacity. Set the cursor to your loop point, then click Select > Region > Cursor to track end. Hold Shift and press Play to play the song in loop mode. Listen to check if the song loops correctly. You may need to trim a bit off the end of the song or move your loop point in order to make it loop seamlessly.

Still Stuck?
More Modding Documentation
https://steamproxy.net/sharedfiles/filedetails/?id=2189405817 The official modding guide made by Fruitbat Factory.

https://steamproxy.net/sharedfiles/filedetails/?id=2234774298 This guide has a list of all the IDs for cards, units, etc.


Ask For Help


Sometimes all you need is a fresh set of eyes to find what is causing your mod to break. Fellow modders may be able to help you with your problems if you ask nicely.

The Modding discussions on the Steam Forums
https://steamproxy.net/app/282800/discussions/3/

Fruitbat Factory Discord (specifically the #100-oj-modding channel)
https://discord.gg/fruitbatfactory

Conclusion
Thanks for reading!

What issues have you run into with your mods? How did you figure them out and fix them?

Let me know if you have any suggestions or if you felt this guide was missing something.

Sprites: 100% Orange Juice Wiki[100orangejuice.gamepedia.com]

Pudding: Wikipedia[en.wikipedia.org]

Click here for more OJ guides!

4 Comments
Solidus 13 Aug, 2022 @ 10:57am 
That last bit with Audacity to make the tracks loop properly... it changed my life. Thanks!
Kitty 22 Feb, 2022 @ 3:01am 
I barely mod but the QP-Syura convos made me laugh, so that's a rate-up from me!
Gin 26 Jun, 2021 @ 2:58am 
It's always a joy reading your 100% OJ guides. As always full of information, humor and stunning layout/editing. Amazing work! :ojchicken::Heartyou:
Phuderoso 27 Dec, 2020 @ 10:34pm 
God level! :qp::stars::100percent::100oj: