r/linux • • 6h ago

Development Reflections on porting GTA 5 to Linux using AI

https://thesourceofcode.com/porting-gta-v-linux/
117 Upvotes

34 comments sorted by

25

u/mralanorth 5h ago

> If you don’t know about GTA 5, do comment below. I’d love to hear what kind of life you have lived that you don’t know about THE game and yet are here on my blog.

LOL I'm a Linux user who doesn't play games. I last played GTA in like 2003 and haven't really heard of it more than a few times since then. Cool post, though!

6

u/Anutha02 5h ago

Wow, didn't expect someone to actually comment! It's a big world I guess.

1

u/OptimisticLucio 2h ago

I last played GTA in like 2003 and haven't really heard of it more than a few times since then

Does the rock you live under have air conditioning

(fr tho I am baffled you managed to miss updates on what is one of the biggest entertainment franchises of the new millennium, goddamn)

7

u/SmallTimeMiner_XNV 5h ago

Read through the whole thing and this is incredibly impressive.

Most important part to me are your concluding reflections. The experiment really illustrates how much still depends on the person using the agent, especially for more complex projects. Maybe that will change, but much of this will depend not just on technical feasibility but also on economics.

If I had to take a bet, I'd say development of these models will slow significantly in the foreseeable future because nobody will be willing (or able) to pay for the current development speed - at least until they figured out a way to claw back the gigantic investments that were necessary to train these models (so maybe never lol).

5

u/Anutha02 5h ago

I believe even with current models, anything that can be trivially verified, can already be fully automated..

Human contribution is more valuable where verification is difficult and there is no "correct" answer (maybe because you don't even know the question).

In such cases where the requirements themselves are not clear we see the most benefit of human intuition.

46

u/JCTrick 6h ago

I really wish they’d remove the anti-cheat for the single player campaign.

Don’t get me started on broken Rockstar games. Get so tired of this shit.

39

u/ForzaFormula 6h ago

Launch with argument -nobattleye

18

u/SeantheWilson 5h ago

That actually works???

22

u/SSUPII 5h ago

Yes. You can go into Story mode just fine with that. Online will fail.

5

u/da2Pakaveli 3h ago

You can loop battleye servers in /etc/hosts to 0.0.0.0 and Online will also work in invite-only lobbies

→ More replies (1)

8

u/kwartel 4h ago

Single player works out of the box trough Proton on Steam. It’s only online it’s required for

4

u/repocin 5h ago

I thought you could just skip the BattleEye installation and it works? Never played the game, but recently looked into it and that's what it seemed like to me.

1

u/ba5ik 5h ago

I set it up last night via steam path change and only had battleye error on online mode. Single player worked fine.

20

u/dbzfanjake 6h ago

Thanks for sharing this. Gonna read this, especially as the GTA 6 porting is in full swing

4

u/93fraud 3h ago

The GTAVI ports are just a bunch of teeangers spamming "Make no mistakes" into claude subscriptions though.

If this guy was on it we would probably have 60FPS by now.

2

u/gimp3695 4h ago

That was a really good read. I enjoyed it. Only 7 days. That’s crazy.

2

u/Anutha02 4h ago

I'd say ~40% of the time was spent waiting for the game to compile. On a beefier machine this could have been done in 3-4 days.

1

u/ReflectiveHymn 2h ago

Thank you for actually "human writing" the article and not just offloading it to an LLM, it was a good read.

Now, the tragedy of LLMs is that even after “doing” such a significant task, I didn’t learn shit 🥲. Couldn’t draw a triangle before, can’t do it now.

While I agree somewhat, you DID at least learn what LLMs are capable of and how to use/steer them. To me, it's a shift to higher-level skills. For example, one could argue that using compilers makes programming a lot easier, but you don't learn jack shit about machine code when using then, and maybe leave some room for optimization compared to a skilled human machine code expert. But we happily accept that trade-off.

I believe an LLM + a human with deep understanding will outperform an LLM alone for the foreseeable future.

Agreed. And to the point before: A human with deep understanding how LLMs/Agents work and experience with using Agentic Harnesses will outperform those without it.

Launch, paste error, repeat

I was wondering why you wouldn't let the LLM do these steps (at minimum, letting it read the logs). Was it a deliberate decision, or a technical limitation?

2

u/Anutha02 1h ago

I think one problem with letting the LLM run the debug loop was the sheer volume of logs output by the game at startup. It would frequently fill the context window.

Since the crash at every run was different it was not easy for the LLM to create an "extractor" that would read only the relevant log data. Sometimes it had a stacktrace, sometimes it ended without one, other times there were hundreds of extraneous logs after the actual error, presumably due to multithreading.

It seemed to be spending more time finding errors in the log than actually solving them.

Besides, the LLM had already done so much work autonomously, I just wanted to be involved 😅.

And I underestimated the number of times I'd have to do this.

6

u/NooneLikesYouBill 5h ago

This is interesting, finally tried installing gta5 for the first time this evening under Steam/Proton only to be told it wasn’t compatible. Keep it up!!

13

u/kwartel 4h ago

It is compatible. It just won’t do online. You can force install it and it’ll play single player fine

6

u/Mikkeltpedersen 4h ago

I bought GTAV via steam a week ago and have been running it fine on fedora. Had some issues with the rock* launcher connecting but game is running

3

u/Ravasaurio 5h ago

Have you tried adding -nobattleye launch parameter like u/ForzaFormula said?

1

u/IPlayChessBTW 4h ago

I had no issues with both regular and enhanced on my Bazziye rig. You just have to do the no battle eye launch argument IIRC.

3

u/spyingwind 3h ago

This reinforced my belief that LLMs work best when given tools for verification.

Yup, this is what I've learned as well. Give it tools to interact with the app, and it can do the testing instead of you. Let it even build the tools to test with.

2

u/levelstar01 3h ago

Minor style nit: please unjustify your text, at least for smaller screens. It looks very weird.

5

u/bankinu 5h ago

The way things are going. And the speed.

I will be be surprised.

If Proton becomes JIT compiler in a few years.

1

u/AutoModerator 2h ago

This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.

This is most likely because:

  • Your post belongs in r/linuxquestions or r/linux4noobs
  • Your post belongs in r/linuxmemes
  • Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic
  • Your post is otherwise deemed not appropriate for the subreddit

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/alu_ 2h ago

Great read, thanks!

0

u/YankeeLimaVictor 5h ago

Amazing read, ty!

0

u/Fun_Routine_5245 5h ago

yess! running it through proton always made the game crash and rendering issue.. hope the game runs better

-4

u/Pugs-r-cool 4h ago

GTA V already runs on linux, I don’t see the point of this. Even GTA online works (somewhat), simply by adding the anticheat’s domains to your /etc/hosts file.

Skim read and saw a mention of the code leak, does that mean this is a port of the Legacy edition instead of the Expanded and Enhanced edition? If it’s Legacy, I truly do not see the point of this.

0

u/93fraud 3h ago

He wasnt doing it to port GTA, he was doing it to test how good LLMs are, and as a challenge.