Caves of Qud: Godot POC
Brian Bucklew
2023
Brian Bucklew live-tweets porting Caves of Qud to Godot.
On September 12, 2023, Unity Technologies—the developers of the Unity game engine—announced that a new Unity Runtime Fee would be introduced starting on January 1, 2024.
Amidst the resulting uproar from game developers over the changes, Brian Bucklew—cofounder and technical lead at Freehold Games, creators of roguelike epic Caves of Qud—took to Twitter to live-tweet his journey of doing a proof-of-concept port of Qud from Unity to Godot.
The following is a transcription of that tweet thread.
SaturdaySep 16, 2023
So I really have 3 tasks here, which I can approach in basically any order
1 I’ve gotta figure out how to get my assets (first just my tiles) into the game
2 I’ve gotta lift out the core game assembly and the engine-side game manager and port them over
3 Setup a rendering rig
I’m gonna scream “Hey Alex” (my oldest kid, now an adult) and ask her about each of these 3, because she’s been buildng a sonic fangame in Godot 3 and 4 for like 4 years and knows probably as much as anyone out there.
Ok converted them all to png. Godot loads them when I switch back but it takes like a full 30 seconds for the inport progress to pop up, but it does work.
I’m just gonna have to start pulling stuff over that wasn’t part of XRL Applicaiton and probably creating a greenfield “UnityEngine” assembly that just has the same interface; might take me a little bit, but here I go.
KoboldJSON is just a simple json serialization library though, so I’m going to pull it over
I’m mad with power now.
In porting these kinds of systems, these kind of errors will generate new errors of different types as I close them, so once I fix a “I can’t find this class” by swapping it out I’ll have to deal with “this class interface is different” but it’s progress!
We use newtonsoft json, so now I’m reading about how to install nuget packages in godot…
Having gone from “complete unknown” to “some work but tractable and fairly well scoped” for the POC port in 2 hours, I’m going to get a snack and stretch (important coding activities, remember to stretch I should have done it once already)
SundaySep 17, 2023
My process at this point is scrolling up and down my error list, looking for the next easiest thing to knock out. I’m down to 364 errors, having just now knocked out the bulk of the remaining “Color” and “Color32” conflicts, mostly adding ‘usings’
Oh it was“add the CodeDom nuget package“, easy enough.
I got distracted and time to hit the sack, but I’ll be back on the bullshit to finish this up tomorrow!
Next step is to build a little renderer and input harness and boot this core assembly.
Once that’s working it should get the game booting and playable in ascii+tiles mode, without any modern VFX or UI.
That’s my goal for this technical proof of concept.