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)

37 Comments

  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.

  2. The most mind boggling takeaway from this video is that the Terraria developers decided to use a path following algorithm to propagate state change to each endpoint of a wire.

  3. lmaoooo i cant believe you made a mod to completely redo the wiring system to make it possible to make this crazy contraption

  4. Primeagen sent me. Absolutely amazed by what you've built here!
    Modding the game just to make the instruction set run faster was definitely a gigachad move.

  5. the amount of nerd in this work in bonkers man . i hope you guys create something that will change our primitive lives . keep it up

  6. I'm a senior software engineer AND embedded electronics designer with 9 years of industry experience, as well as a relevant degree from university. I understood every single thing you did here, even the things you just mentioned in passing, and yet I am absolutely blown away by the fact that you did it. Like…. HOW OLD ARE YOU? And then you edited it all into an entertaining video as well…. My man, you will have ZERO problems finding a job. You can basically just point at where you'd like to work and they'd THROW money at you.

Leave A Reply