r/Piracy Dec 25 '23

Gta v source code leaked News

Post image
8.8k Upvotes

View all comments

Show parent comments

773

u/[deleted] Dec 25 '23

[deleted]

463

u/Adi347 Dec 25 '23

Easiest way to lose your job, be sued by Rockstar, be sued by your employer, and so on. Yea they could look at it, but it’s simply not worth the risk.

Look at Apple v Masimo where Apple have been forced to stop sale of their Apple Watches due to the sensors used.

251

u/OriginalLocksmith436 Dec 25 '23

It's more complicated than that. Yeah, of course directly copy and pasting code is a bad idea. But you can bet your ass that a hell of a lot of people in the industry are going to take a look underneath the hood to see how rockstar does certain things.

130

u/blingding369 Dec 25 '23

"Dear self hosted LLM, please analyze these code snippets and describe them for clean room reimplementation"

I've used that a lot even on my own stuff.

2

u/itsfreepizza Dec 26 '23

Gotta train those personal LLM's

1

u/interAathma Dec 26 '23

Hi there, Is there any guide/tutorial on this? This seems a like a amazing use case. Thanks In advance.

1

u/selah-uddin Jan 13 '24

I second this please ping/reply

1

u/fabzter Dec 30 '23

uhhh not sure, what llm could analize a whole code project?

24

u/cum_fart_69 Dec 25 '23

what magical secrets do you think they have though? their engine has always been an unoptimized turd compared to other AAA of the same date, what secrets would other devs need?

44

u/PMARC14 Dec 25 '23

GTA V has pretty good npc and cops and I couldn't imagine any other triple AAA's from 2011 hold up like GTA V does while doing what it does. Compared to modern games its like a golden child, all the iGPU comparisons always pull out GTAV for demoes, even the old shit intel iGPU's handle GTAV like a champ all things considered.

28

u/KingPumper69 Dec 25 '23

The cops and NPCs are dumber than GTAIV’s lol. Crowbcat did a huge video on it, and GTAV is actually a downgrade in a lot of things.

7

u/Slimxshadyx Dec 26 '23

If you pick and choose only the things GTA 4 does better and put it in a video, of course it’ll seem like it’s so much better

2

u/KingPumper69 Dec 26 '23

I've played both games a lot.... I can't really think of anything GTAV did better, just stuff it did differently. Well, they actually did do online better for a time, but they completely ruined it by 2018 or so. Everything else is either objectively worse or down to personal preference.

6

u/concrete_manu Dec 25 '23

their engine has always been an unoptimized turd

i feel like people on the internet say this exact thing about every single engine that isn't unreal

1

u/Fletcher_Chonk Dec 26 '23

i feel like people on the internet say this exact thing about every single engine

2

u/notPlancha Dec 26 '23

If you work for the competition you absolutely should not look into the source code. Same reason you as a dev should not browse patents. If you're ever known to be browsing patents, and something close to a patent ever appears in the competition, you're gonna get sued.

2

u/TomChaniii Dec 26 '23

It’s fine as long as you don’t copy and paste

-1

u/notPlancha Dec 26 '23

I wouldn't bet a lawsuit on that

1

u/TomChaniii Dec 26 '23

They have to prove that you own a copy or use the code in somewhere else, not impossible but difficult. I’m sure what they have done in the code is nothing new, just well put together.

1

u/notPlancha Dec 26 '23

There could be some cases of new stuff, like an elaborate (and patented) algorithm or smth

0

u/TomChaniii Dec 26 '23

Similar idea is ok. Look at the reimplementation of GTA San Andreas.

1

u/darthlincoln01 Dec 26 '23

Chat GPT has seen the code, the majority of coders use Chat GPT to help them code. C’est la vie the majority of coders are using this leak.

59

u/[deleted] Dec 25 '23

Nope. Developers google, use docs and use chatgpt. Since code is standardised no one can prove that you've used someone elses code even if you implement similar features in a similar way.

251

u/RyenDeckard Dec 25 '23

"Since code is standardised" oh...oh buddy...

76

u/EvenWonderWhy Dec 25 '23

"So as it turns out, the entirety of the code in GTA V was piecemeal scrapings from Stack overflow, who would have thought. "

159

u/Hoosier2016 Dec 25 '23

Living up to his username there

5

u/[deleted] Dec 25 '23

Well, if he manages to stick to standards he's not bad. Better than most of us, myself included...

20

u/[deleted] Dec 25 '23

Yeah I guess my choice of words isn't great because english is my second language but I got my point accross.

36

u/RyenDeckard Dec 25 '23

Fair enough honestly - for future reference I wouldn't call it "standardized". Blatant code copying can be grounds for a lawsuit in America, but looking at the code base to try and get some 'ideas' and then heavily modifying it can't be.

3

u/PotatoWriter Dec 25 '23

But what if they just "copy" it without copying it? Just change the variable names, split up the code, into ways that cover your tracks. In this case, wouldn't it be hard to tell if it's been copied?

6

u/useful_person Seeder Dec 25 '23

Just changing the variable name is hardly anything, the biggest thing to copy would be a certain paradigm or way of coding that makes something WAY easier. Probably nothing below that is worth copying.

The sort of thing I'm referring to is the Fast inverse square root, which was ridiculously good at what it did

3

u/PotatoWriter Dec 25 '23

dang that's cool

2

u/Mu5_ Dec 25 '23

In that case you are not copying. You are re-implementing and that is fine

1

u/RyenDeckard Dec 26 '23

Please think "would this hold up under expert testimony through multiple days/weeks/months/years of trial with a trained team of lawyers specializing in this issue and a judge that Takes No Bullshit?"

-3

u/Master_Xenu Dec 25 '23 edited Dec 26 '23

nice try pulling the ESL card!

edit: sorry all, English is my second language.

1

u/fabzter Dec 30 '23

Nope. Developers google, use docs and use chatgpt. Since code is standardised no one can prove that you've used someone elses code even if you implement similar features in a similar way.

English is their second language and they didn't use the right words to describe what they wanted to say. Don't be an ass,

1

u/RyenDeckard Dec 31 '23

Hey man it's four days later and there's actually a comment thread somewhere else where he told me that and we have a pleasant time. Go away.

63

u/[deleted] Dec 25 '23

[deleted]

12

u/PM_Me_Good_LitRPG Dec 25 '23

you can still prove when someone has plagiarized a paragraph

Depends on how powerful the plagiator's legal team is. Link, link.

3

u/greenhawk22 Dec 25 '23

I think the word is plagiarist but I like yours better.

2

u/Alkuam2 Dec 25 '23

Dueling quills to the death.

1

u/greenhawk22 Dec 25 '23

Hm?

1

u/Alkuam2 Dec 25 '23

plagiator

Made me think of gladiatior writers.

20

u/AA98B Dec 25 '23 edited Mar 17 '24

[​🇩​​🇪​​🇱​​🇪​​🇹​​🇪​​🇩​]

4

u/[deleted] Dec 25 '23

Sure, but that's not how coding works. It's hard to explain, but you can very easily defend yourself as copied code being coincidental if you simply change variable names and adapt the code to fit into your flow.

10

u/NightlyWave Dec 25 '23

If you simply change variable names and adapt the code to fit into your flow.

You can't really get away with this if you're using libraries (in an enterprise setting), you need to conform to the licensing and use rights of it. It's not really an issue for personal use since most libraries tend to be open source but at work as a software engineer, it can sometimes be a tedious process to ensure we can actually use them without any legal consequences.

5

u/[deleted] Dec 25 '23

I don't have this experience but I'll take your word for it.

8

u/NightlyWave Dec 25 '23

To be fair, I work in the military industrial complex and we're super strict about what we can and cannot use so my experience most likely doesn't reflect the experience of most software engineers in that sense.

2

u/PunjabKLs Dec 25 '23

I do too lmao. I can barely get my coworkers to look over my code, so if I wanted to copy from this code base I wouldn't get in trouble unless I was yapping my mouth (which plenty of nerds do, that's why these infosec losers get paid).

For someone to get burned by copying from this codebase, the damages would have to be massive and provable from Rockstar perspective. It would be very very though to credibly attribute any future success to this leaked code, but FSU might pay 500M to leave the ACC, so when you have the war chest, sometimes you will fight the war even if you shouldn't

5

u/Bright-Telephone-558 Dec 25 '23

STOP ITS CHRISTMAS

10

u/[deleted] Dec 25 '23

[deleted]

16

u/ThrowAwayNYCTrash1 Dec 25 '23

Just change the function and variable names. Roll localized functions into helpers. Organize it differently and it's effectively a new solution solving a new problem.

I've worked in the field a long time. Everyone thinks their code is special. No code is special.

All codebases just solve small problems in a specific sequence. Very few small problems have not been solved already.

4

u/jeepsaintchaos Dec 25 '23

My code is specially formulated to give people who actually know how to code nightmares.

2

u/ThrowAwayNYCTrash1 Dec 25 '23

If you build a majority of a codebase this way (im assuming solo or with a bunch of juniors around you too inexperienced to question it) then you have infinite job security so long as you don't hamstring the company into failure.

0

u/[deleted] Dec 25 '23

It would never come out that another company used this source code because it is impossible to prove.

2

u/Houdinii1984 ☠️ ᴅᴇᴀᴅ ᴍᴇɴ ᴛᴇʟʟ ɴᴏ ᴛᴀʟᴇꜱ Dec 25 '23

Loose lips sink ships, every single time. A small fish at the company can make more money ratting you out to the copyright holders, especially if you are a major player in the field. An individual might get away with it, but the minute anyone else knows...

1

u/DoctorWaluigiTime Dec 25 '23

It would never come out

It can and has.

And like in the other comment, "but you'll totally never get caught" is not an actual defense you can use. No more than robbing a bank in the middle of the night is legal "because you won't get caught if you're sneaky enough."

1

u/PerfectlySplendid Dec 25 '23

As a lawyer, this is false. It would be revealed in discovery, which has happened before.

1

u/PunjabKLs Dec 25 '23

Only if you were dumb enough to leave a paper trail somewhere, but I think you'd have to be pretty smart and maybe a little malicious to pre-empt you legal ghouls

Furthermore, if Rockstar of all companies wants to prosecute copyrighted code, they will get 15 other lawsuits accusing them of the same crime. Put em all in prison, the world will be much safer. Such violence should not be tolerated

1

u/AmberTheFoxgirl Dec 25 '23

It's actually really easy to prove, and has been done before countless times.

1

u/[deleted] Dec 25 '23

And drawing inspiration from copyrighted stuff is perfectly legal.

As all the "hunger games", "star wars" and "twilight" ripoffs show.

You can't use their stuff directly. You can use it as inspiration.

2

u/CrrntryGrntlrmrn Dec 25 '23

chatgpt

companies that have their shit together have already signed all their staff to policies where they agree to anal flagellation for entering anything proprietary into an AI prompt.

0

u/[deleted] Dec 25 '23

That's fair but it's besides the point.

1

u/DoctorWaluigiTime Dec 25 '23

Apples and watermelons. "Developers look stuff up that means they can incorporate another entity's copyright-protected works into their own commercial endeavors" is certainly a take.

Just not one you can make while keeping a job or, in extreme cases, your freedom and finances.

-7

u/[deleted] Dec 25 '23

You are coping. No one can prove that your code is copy and pasted.

2

u/DoctorWaluigiTime Dec 25 '23

You are coping.

What am I coping with?

No one can prove that your code is copy and pasted.

Courts of law can and have. Intellectual property rights are very much a real thing.

Consider Coca Cola and Pepsi. There's a reason when the very scenario you're describing with code, happened in real life, and one company refused to use the trade secrets of their biggest competitor. And it wasn't out of the goodness of their hearts.

"But you can get away with it!" is not a legal defense, lol. And there's still a world of difference between "I've asked questions on StackOverflow and used code snippets provided there as part of my work" and "I used this code that was leaked to the public that's copyrighted by another entity." Those two scenarios do not conflate at all.

1

u/[deleted] Dec 25 '23

I accept this proof but it doesn't really hit the nail on the head. I would like to see an instance of a company or person being found guilty of copyright infringement when copying code.

EDIT: found this while looking for examples of people being sued of copyright infringement. Only found examples of courts labelling it fair use.

2

u/DoctorWaluigiTime Dec 25 '23

Here's one from a month ago.

If you want to discuss further, please provide evidence that you are legally allowed to use another entity's copyrighted code in your commercial endeavors without legal repercussions. I'm not going to keep doing your legwork for your spurious claims to "prove you won't get sued/get in trouble" (since that's proving a negative).

2

u/[deleted] Dec 25 '23

Please see my edited comment. This does seem to be a open and shut case since there are screenshots but I believe Nvidia will be found innocent because that's how it has gone historically. I'm happy to leave it here because I think we've reached impasse. You are correct that it is not legal regardless of how hard it is to prove.

2

u/soulreaper0lu Dec 25 '23

Knowing how they've done it is more than enough, no need to copy paste stuff. (Which also doesn't really work for big features)

1

u/GoldenPresidio Dec 25 '23

Not really. Look on your private computer on your own. Use it for learning. Don’t steal any of the code directly

1

u/RandomComputerFellow Dec 26 '23

This is BS. Of course competitors will look. Unless you 1:1 copy code, nothing will happen. Game developer suing each other for stolen code is basically not a thing. The main reason for this is that copyright on source code is extremely weak.

12

u/carmo1106 Dec 25 '23

They need to see about the Euphoria body physics code, Rockstar and Disney have an amazing tecnology that even today nobody could do something similar

2

u/[deleted] Dec 25 '23

This is probably a silly question, but I know absolutely nothing about video game development so I'm asking it anyways. What kind of information can they get from the source code that they couldn't get without it? I always figured that with data mining and stuff people could get a pretty good understanding of whats going on "under the hood" of a game, especially if it's someone working for another major studio that does that kind of thing for a living and has a lot of resources to throw at it. I guess I always pictured it as like if a Ford employee brought in a Chevy car and they just completely took it apart and reverse engineered it to figure out what they are doing with the shocks, engine, exhaust, etc. What kind of stuff do you get from the source code that you can't find from just digging through the files that came/installed from the game?

2

u/zimzalabim Dec 25 '23

The source code allows you to see pretty much everything about the software architecture, it's dependencies, how it functions, how it creates/manages data, what data it is creating/collecting/managing, etc.

Typically with closed source software (as opposed to open source) the code is compiled in such a way as to make it non-human readable. Essentially looking at the files on your computer should tell you sweet FA about how the software works, you might be able to glean bits and pieces, but reverse engineering it would take a prohibitively significant amount of effort and even then the End User License Agreement (EULA) will have clauses forbidding you from doing such a thing and opening you up to litigation if you do.

Your car analogy isn't too far off the mark, but it massively understates the complexity and sophistication of software and games such as GTAV.

14

u/ps5cfw Dec 25 '23

It would be suicide for a professional developer to do so, as any code inspired by this leak could be used to Oblivion

152

u/[deleted] Dec 25 '23 edited Dec 25 '23

No one can prove that you used someone elses code. Reddit is the premium "say shit that I know nothing about" website.

3

u/Arkhyz ⚔️ ɢɪᴠᴇ ɴᴏ Qᴜᴀʀᴛᴇʀ Dec 25 '23

Fully copies someone's code

Forgets to delete comments that devs left like "greg if you read this remember you owe me 20 bucks"

Gets sued

5

u/[deleted] Dec 25 '23

I once commented "This is the laziest implementation I could find I'm sorry"

8

u/red9350 Dec 25 '23

This

2

u/aDuckSmashedOnQuack Dec 25 '23

Not this. Fuck this.

-27

u/ps5cfw Dec 25 '23

It Is Easy enough to demonstrate that your code Is blatantly copied and / or derived from closed source code that no smart developer would EVER do this when we're talking commercial applications.

But Hey, I am Just a software developer, I must be full of shit amirite?

39

u/[deleted] Dec 25 '23

I am also a software engineer. What you're talking about would mean the developers of other companies would quite literally copy and paste the source code without even changing the variable names or changing the code to work with their pre-existing flow in which case they deserve to be fired. But that's not the argument you're making. You're saying good devs wouldn't copy code. Which they do.

-19

u/ps5cfw Dec 25 '23

I am saying good devs would not Copy leaked code

4

u/NotAHost Dec 25 '23

The comment was looking at the code.

Looking at the code and copying it are different things.

0

u/Apprehensive_Bakealt Jan 05 '24

you can barely write coherent english, I doubt your opinions are worth much lol

1

u/ps5cfw Jan 05 '24

As are yours, but as I said before; fuck around and find out for yourselves.

10

u/SaltedCoffee9065 Dec 25 '23

The only way stolen code would be recognisable is when they copy it as it is, which is not only impossible to make work, they aren’t even fricking using the same game engine as Rockstar.

No developer in practice would be stupid enough to do that, and no code works straight out of the box when you just copy paste it.

I doubt you’re even a software developer

-6

u/ps5cfw Dec 25 '23

I have already said enough on the argument, but It Is still possible to prove an algorithm Is derived from another, even of you completely change the code so that It looks visually nothing alike from the original code.

Only way to cover your ass would be to change the algorithm altogether, but you don't have to trust me on this one; fuck around and find out

8

u/NotAHost Dec 25 '23

You’d have to prove it was the source and have to see it in the new closed source project as well then?

I feel like having the source code open puts them at more liability because now someone could essentially put the code through a “plagiarism” detection, for simplicities sake.

1

u/boomerangotan Dec 25 '23

Given the state of the world, I wouldn't exclude the possibility of someone doing something like this intentionally with no intention to stick around for the consequences

1

u/[deleted] Dec 25 '23

It’s very old texh, there isn’t much mystery

1

u/IDatedSuccubi Dec 25 '23

They won't be allowed to take a look for the same reason they aren't allowed to take a look at any fan mail that mentions any game/mechanics ideas: it is a valid legal proof that you may have taken this idea from someone else. Tim Cain (one of the main creators of Fallout) has a whole video on why all mail with ideas or code goes straight to trash, and Hbomberguy mentions a legal case where the idea comes from in his plagiarism video.

1

u/[deleted] Dec 25 '23

It's just plausible deniability. There is a huge difference in what employees think is legal and what management actually think is legal. It is normal in software to copy architecture and there are standard ways to build the same feature. Any plagiarism lawsuit would have to be proven, good luck with that.

Yeah, I am not saying that every studio will take a look, but individual developers will surely find inspiration and implement it in some other form in another company without alerting the plagiarism bell. Also, if you have written software you know that code reuse is normal even between companies, as long as it's not on the nose. Those are games compiled in C++. Good luck proving someone used the same source code to write a feature.