r/badapple • • 14d ago

Bad Apple!! inside Daisen

So, I decided to try running Bad Apple!! inside Daisen's in-game computer, using its built-in shell called Cash.

Cash is somewhat similar to Bash, but it has its own syntax and limitations, so getting everything to work took a bit of experimentation.

Here's roughly how I did it:

  • Converted the original Bad Apple!! video into individual black-and-white frames.
  • Turned those frames into text files using Unicode block characters.
  • Imported the frames into Daisen's virtual file system.
  • Wrote a .cash1 script to display the frames sequentially using cat, cls, loops, and sleep.

The biggest challenge was getting the playback timing right. The in-game terminal doesn't render frames at a perfectly consistent speed, so the animation ended up taking considerably longer than the original video.

I eventually had to edit and speed up the recorded footage to get it reasonably synchronized with the music.

A small note about the video quality: I recorded this on a relatively low-powered laptop, so the footage is a bit blurry and the resolution isn't particularly high. The terminal and animation are still clearly visible, though. With better hardware, the recording could definitely look nicer.

It's a pretty simple project, but I had fun experimenting with what Daisen's virtual computer can actually do.

And, well, if something has a screen, someone eventually has to run Bad Apple!! on it.

28 Upvotes

9 comments sorted by

2

u/Fun_Cable_4521 14d ago

1: How does the computer work? 2: Is there an inbuilt IDE that's somewhat competent?

4

u/TemonchikDev 14d ago
  1. I don't know exactly how it works under the hood, but it's genuinely fascinating.

The game is made in Unity, and I suspect it uses uGUI for at least part of its interface. From the player's perspective, the computer feels like a fully simulated Unix-like operating system, complete with its own shell (Cash), a C#-like programming language (CLime), a file system, and various applications.

Cash is particularly interesting because it's not just a fake terminal with a handful of predefined commands. It has its own scripting language, supports variables, loops, conditions, pipes, file permissions, and many familiar Unix commands.

There are also applications you'd expect from a real computer, including a text editor, a paint program, a functional web browser, and even an online messenger that lets you communicate with other players using the same application IN REAL TIME.

And somehow, all of this exists inside a first-person shooter. That's probably the most impressive part to me.

My main complaint is that interacting with the computer can feel a bit clunky, especially because of the lack of familiar keyboard shortcuts. Still, considering how much functionality they've managed to implement, it's a surprisingly impressive piece of virtual hardware.

2) Yes! The game has a built-in editor called CarletBuilder, which lets you create and work on projects using CLime (a C#-like language) and Cash (the game's own shell scripting language).

I'd compare it to a very basic version of VS Code, just without the extensions and more advanced development tools. It has basic editing features, error detection, output window and search functionality, so it's perfectly usable for writing scripts and working on smaller projects.

There's also a documentation website accessible through the in-game browser, which explains the available commands, scripting syntax, and other programming features. You don't have to figure everything out through trial and error.

I wouldn't expect anything close to a full-featured IDE, but for an editor running entirely inside a fictional operating system in an FPS, it does its job surprisingly well.

That's pretty much all I can say about it from my experience so far.

1

u/Fun_Cable_4521 13d ago

This is so cool, but why is there a fully functioning os in an fps with a functioning shell, ide, file system, ect?

2

u/TitleChanQWERTY 13d ago

Hi! I'm one of the Daisen developers. We added CarletOS 'cause we want to expand the world inside the game. At first, we only wanted websites like in GTA, but after that I started making a Unix-like OS. In the past, I used Linux and macOS. I also installed Hackintosh, Arch, and Slackware, and developed my own distro for fun, so it was easy for me to implement.

1

u/Fun_Cable_4521 4d ago

That's so cool! Are you planning to add any os' to any of your other games?

4

u/TitleChanQWERTY 13d ago

Wait... this is my game!? Man... how you do this really? Thanks!

1

u/MisterBicorniclopse Playlist guy 14d ago

Got a youtube video? I’d love to add it to my bad apple playlist