this post was submitted on 30 Dec 2023
51 points (91.8% liked)
PC Gaming
8581 readers
217 users here now
For PC gaming news and discussion. PCGamingWiki
Rules:
- Be Respectful.
- No Spam or Porn.
- No Advertising.
- No Memes.
- No Tech Support.
- No questions about buying/building computers.
- No game suggestions, friend requests, surveys, or begging.
- No Let's Plays, streams, highlight reels/montages, random videos or shorts.
- No off-topic posts/comments, within reason.
- Use the original source, no clickbait titles, no duplicates. (Submissions should be from the original source if possible, unless from paywalled or non-english sources. If the title is clickbait or lacks context you may lightly edit the title.)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I always see people say it's got spaghetti code but I've never seen much about it.
Do you have a source?
There was a devblog a while back a developer talked about how much technical debt the game has because its coded in LUA, like the second oldest programming language known to man, and modifying literally any of it will break other parts of it because everything was built on top of the old stuff. Basically, the code has never been refactored.
Blogpost here.
That's not really what that blog post is talking about. Lua isn't actually particularly old as far as programming languages go and one of the most commonly used scripting languages in game development, due to it's easy embeddability. And it's a perfectly fine language in that regard.
Their problem is that they built their own visual scripting language on top of Lua called BlockBuilder. And that comes with quite a bit of overhead, since the way they're doing it needs a number of additional heavy operations. And Lua is a full blown programming language that comes with a lot of functionality that they don't need for that use case, but still need to account for.
So the complaint is, that they used Lua instead of using a simpler and constrained language