Why is reverse engineering still sch a thing knowing how version control works ?
In my example i'll refer to the game Apex legends as it's the one making me wonder how is it possible. So about this game, every new update some people go dig into the code and find some of the next game addition before it's revealed (e,g https://www.youtube.com/watch?v=32klp7gasnQ&t=53s).
I work in software development and have a fairly advanced understanding of git and versioning. It looks like everything they work on is in the final build; if it's a future thing they'll just hide it from the menu, ect. Why ?!
I understand they have to make changes to the whole code base between two version, for features but also bug fixes. But why don't they have a different features branches for each bug/feature and only merge it just before the release ?
I know leaks are super annoying for the devs and it looks like there is an easy solution they are not exploiting. I guess there is good reasons about this but I cannot figure out what are they and I would love to exchange with someone on this matter as I love exploring git and build process in general.
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- ijkxik
15 comments
A large part of testing is making sure there are no unintended consequences for a change... So for the work that I do, we actively merge disabled code in all the time so we know that it doesn't break anything else. And then we can control it with a simple configuration change. If something goes wrong, then undoing a configuration change is a lot easier than undoing a code merge. Merging is often a messy affair and can sometime really mess things up.
I can't speak to how this plays out for games at all... but in my field, doing a "merge it just before the release" would be the exact opposite of what we try to do.
The problem you describe is why rebasing got invented in git I think. Every onve in while; or at least one time before merging you rebase the master branch on your feature branch (like a merge in the other way; one commit at a time). Once this is done, you can test all changes on your branch without affecting the master branch. Even better when you merge after a full rebased branch, you're sure their will be no conflict as your branch has all the master changes as well.
All my project have the master branch set up to accept only fast forward merge (no conflicts resolution); so the one/team developing the feature is the one responsible to ensure they dont break anything by rebasing often. Then the lead dev can decide to merge any feature without having to resolve any conflict.
TL;DR why don't you bring master changes in your feature to test beforehand instead of merging your half done feature in master ?
I think "merge conflict" was the wrong way for me to describe it. We end up having many layers of "test" in our environment, which stem from CI testing that's purely software, through to integration testing with hardware (which, unfortunately, has a manual element to it), and then production canary which is necessary because there's elements of the production environments that are impracticable to extract out. The best common equivalent I can think of is browser compatibility... You can only do so much in dev, and then there's a layer of QA across browsers, and then there's the big-wide-world of ALL the supported browsers people use.
It's more about "include feature and enable it at the same time" is the problem. Rather than "include feature but leave it disabled" -- and the core difference is the difference between "code change caused the problem" vs. "enabling the feature caused the problem" -- one of those is much easier to roll-back than the other.
As I understand it games generally don't use heavy branching strategies as seen in other forms of software development due to it's incompatibility with merging conflicting binary assets. Popular engines like UE4 your game code is baked directly into the editor so that would mean each branch would need build pipelines and assets compiled and sync'd to designers machines which would quickly get out of control for the build farms and developers would have to do full re-compiles every branch switch. As a result game development is very focused on the a single branch for the express reason of avoiding merge conflicts. Obviously YMMV based on engine, team size, game format but those are some big problems that crop up with branches.
That makes total sense indeed. Thanks for your time !
I always assumed that for future enhancements and such, if they're already done but waiting to deploy, it's much easier to just flip a flag server side to turn the enhancement on, rather than requiring the client to download a new version with the new content every time they want to release new content at certain times
That would be a perfectly good reason but it's not always the case; in the video linked in my post the reverse engineer found 3d models not even textured. And also references to future heroes/legend to be added to the game (smth like 10 of them witch represent 1 or 2 year). Obviously another update is required before that goes public; so it's not linked to a feature flag obviously.
This is probably just a workflow thing. Perhaps they aren't using git and perforce streams aren't as nice as gits. It could also be that the art team just doesn't understand how git or perforce works so they all work on one branch or steam and the developers just pull it all in. Unfinished and unreferenced models represents a low risk change.
When I had to use perforce the team I was on very very rarely used it's branch feature "streams" because it was super clunky and would take many minutes to change streams and when a single stream was over 100gb you also needed lots of disk space. If my QA team needed multiple Terabyte hard drives to have versions of each game or branch in development and then needed several minutes to switch streams I would be kind of pissy, they might spend more time changing branched than actually testing.
I can see very easily why low risk content would make it in. Game development isn't anything like software development, the best practices aren't the same.
This exactly
I don't think so because some of this content is not even releasable thus implying another update anyway. See other comment on the parent one
I'd just go ahead and assume leaks are good for business. That or they're just really sloppy.
I'm pretty not sure it isn't; I don't work in that field but from dev reactions ou can see it's not what they intended. Why would they try to keep it secret then ?
I see those events as surprised to the game community; they want to surprise us as a director wants with a good movie or TV show. Some people will always try to spoil it for them self and share it to people interesting in it. That's ok; but it seems that they would prefer it not to exists and could prevent it but don't do it for some technical reasons I ignore.