I Made a 32-bit Computer Inside Terraria



I document my journey implementing Computerraria: a 32 bit CPU running inside the game Terraria. I’ve been working on this for over 6 months now and thought it’s cool enough that other’s might be interested in learning about it. Absolutely everything I talk about here is completely open source and freely available in these public repositories:

Computerraria (World file and support software): https://github.com/misprit7/computerraria
WireHead (Accelerator mod): https://github.com/misprit7/WireHead

To download the mod to try it, here is the steam workshop link, although for any development I’d recommend using the Github link instead:
WireHead: https://steamcommunity.com/sharedfiles/filedetails/?id=2946369856

If you’re interested in learning more about the more technical engineering side of things, definitely let me know in the comments. I would be happy to go into it but I’m not really sure there’s an audience for it.

Big thanks to Gus for implementing the raycaster engine, still can’t believe that works so well. Eric, Renu and Evan also deserve credit for listening to me ramble for countless hours about various different wiring schemes and optimizations.

Terraria inside Terraria is close!

Music credits:
Terraria Soundtrack, Scott Lloyd Shelly, ReLogic: https://www.terraria.org/, https://forums.terraria.org/index.php?threads/terraria-music-enabled-for-video.31361/

Symphony No. 5 mov 4, Beethoven, Fulda Symphonic Orchestra: https://musopen.org/music/2567-symphony-no-5-in-c-minor-op-67/
Overature to the Marriage of Figaro, Mozart, Museopen Symphony: https://musopen.org/music/2682-the-marriage-of-figaro-k-492/
Violin Partitia bwv 1004, Bach-Busoni, Stefano Ligoratti: https://musopen.org/music/3786-violin-partita-no-2-bwv-1004/

Feel Alive, Ethan Sturock: https://freetouse.com/music/ethan-sturock/feel-alive
Everyday, Eric Lund: https://freetouse.com/music/eric-lund/everyday
Waves, Beau Walker: https://freetouse.com/music/beau-walker/waves
Magnificent, Pufino: https://freetouse.com/music/pufino/magnificent
Glorious, Aylex: https://freetouse.com/music/aylex/glorious
Worlds, Aylex: https://freetouse.com/music/aylex/worlds
No Copyright Music for Video (Free)

source

34 thoughts on “I Made a 32-bit Computer Inside Terraria”

  1. Hey if you're interested in more engineering/Terraria projects like this please subscribe!
    I wasn't originally planning on making more but there clearly seems to be an audience, when I do other cool projects I might make more videos.

    Reply
  2. As an indie game dev who codes in C# .NET 7 using the Monogame framework every day, and have 5 & 3/4 years of programming experience, this felt way more relevant than I thought, as bugs pop into my game Cosmorists as I flesh it out, and there are some moments where the bug is easy to pinpoint and fix taking only minutes to fix, others taking days, or weeks, or in a bad case scenario, months because one line of code can cause the bug out of thousands. That part at 9:57 felt the most relevant. A single wire that's the wrong color making the whole thing behave unpredictably. Likewise, a single incorrect line of code out of 10000s of lines of code causing a bug that becomes hard to find! At least C# crashes my game if there's an error, and points out what line of code caused it to crash, unlike the in-game computer that can't point out the cause of the problem and let you know what wire is causing the problem!

    Reply

Leave a Comment