r/freelancer • • Oct 17 '26

Freelancer Decomp is here!

https://github.com/FreelancerDecomp/Freelancer-Decomp

[removed] — view removed post

121 Upvotes

46 comments sorted by

42

u/Giperion Oct 17 '26 • Bravo

This project has been hell of a ride! It's constructed from 26 dlls, 2 exe and 8 resource dlls! I started work on it 22 August 2026 and finished today (17 October 2026). I processed 8,98 Mb of binary code.

13

u/fligglymcgee Oct 17 '26

How did you process it

16

u/Giperion Oct 17 '26

I used my own set of tools, rules and a special MCP

11

u/str3ss_88 Oct 17 '26

What exactly does this ?

18

u/Giperion Oct 17 '26

It's a source code of Freelancer which was restored from binary code

4

u/str3ss_88 Oct 17 '26

But if I'm not a programmer, this won't do anything for me? Not an attack, just asking?

14

u/PermanentRoundFile Oct 17 '26

It means more expansive mods and expansions in the future. Folks who like to do that kind of stuff can add things to the game in ways they couldn't before.

6

u/crowwizard Oct 18 '26

If you're not a programmer or willing to use programming tools (or AI) not really, but it means people could update or fix things here. Make it more compatible with newer hardware, etc. You don't have to find hacks to make mods, you can see all the code and build with FAR LESS trial and error.

Reverse engineering is tedious process. The new A.I. tools that let you decompile code cut out a LOT of the work that would go into something like this. The legal battles around this are going to be interesting, but it's going to be phenomenal for the modding and emulating scenes.

1

u/Giperion Oct 17 '26

Nowdays you don't need to be a programmer to use a source code. You can use this source code with any AI agent for modification or just simply understanding how things works in the game. You can even use it for generating documentation for original game.

13

u/Michael_Taz Oct 17 '26

Real win would be to get Freelancer on Steam with a workshop to download and install mods.

7

u/Giperion Oct 17 '26

Microsoft have rights to use those source code to get Freelancer on Steam =)

-4

u/workster Oct 17 '26

I might be mistaken but I think legally anyone could use the source code to have their own game on Steam but they couldn't use the content like images, music, videos, etc as all of that's copyrighted

8

u/Thenhz Oct 17 '26

Source code is covered copyright as well, and as this is reverse engineered it is also copyrighted by Microsoft as well.

2

u/crowwizard Oct 18 '26

That is not at all how copyright works - and trademark is what would cover things like characters more. Art, music, videos, etc. are more under the copyright umbrella, but code and writing fall under there as well.

The thing that is free to use is GENERALLY game mechanics. There was a lawsuit around rolling a d6 a moving that many spaces on a board, but it was ruled that was too generic and since then game mechanics are far more open.

You couldn't easily sue over a rule of "roll a d20 and add modifies and compare it to a target number" but you could sue someone if they copied the exact wording of the paragraphs out of D&D rulebooks that conveyed that concept. The core mechanic would need built in a different way.

To pull it back to video games, WASD for movement isn't copyrightable, but if the code was exactly like (or VERY similar) to the way it is handled in a game, that would fall under copyright - at least in the U.S. and IIRC most of Europe, UK, Canada, etc. China has some leaner copyright rules, Russia and most of the eastern bloc as well - IF I am remembering all this correctly, but IANAL.

2

u/HenShotgun Oct 18 '26

But then how projects like Librelancer, OpenRCT2 and OpenMW are not taken down? So, I assume they are reconstructing the full engine from the scratch to replicate game mechanics, and therefore it is not an issue as long as they do not ship the game assets (e.g., textures, audio), right?

And I assume that having access to the original source code makes the reconstruction process easier as long as you do not carbon copy the code, right?

1

u/Trainwiz Oct 18 '26

Correct, at least in the case of OpenMW. OpenMW specifically got the green light from Bethesda, with the caveats being that they can't distribute any assets from Morrowind, and that they can't port it to things like Android.

1

u/crowwizard Oct 18 '26

I'd guess the reason they don't get taken down is because it's not worth the effort from whoever holds the various rights.

My understanding is limited (web dev and jack of all trades, not a reverse engineering coder) of how exactly the code differs, but in most cases the metaphor is this:

Original from Monopoly - Go to jail. Go directly to jail. Do not pass Go. Do not collect $200.
Rebuilt to avoid direct copy - Move your piece to the prison square. Do no pass the start square. Collect no money on your way to the prison square.

Same destination, same mechanic, different way of getting there.

With code it's more complex, sometimes you need to hit exact end points or factor in a specific variable. So for emulation, you read the same files and formats, you just have to write your own code to do whatever the original did.

In decomps, you're de-compiling the original source code. So you don't have to guess at as much. You may need to rewrite some things, and if you want to avoid direct copy legal issues you should.

Reverse engineering completely from an encrypted source means you have to do a bit of guesswork at how the code is built based on what factors you have available (save game format, cracked encryption on some files, etc.). You know it needs to read a certain format and output a certain result, the stuff in the middle you need to piece together yourself.

1

u/haywire Oct 18 '26

It’s IP

6

u/alvarkresh Oct 17 '26

People have been trying to get it officially licenced out by GOG, but no official word there yet.

4

u/pipmentor Oct 18 '26

It's also one of the highest ranked games on the GOG Dreamlist for preservation.

2

u/Danny_Delicious Oct 17 '26 edited Oct 17 '26

Is this a decomp of v1.1 or 1.0? Also how accurate is this to the original? was it a get close or a byte match?

4

u/Giperion Oct 17 '26

It's made on 1.1 version. It's not byte to byte, but it is a function to function match with the same behavior and verified by listing file.

1

u/Danny_Delicious Oct 17 '26

Ah. Yeah I had a look through.

1

u/alvarkresh Oct 17 '26

Did you use the official Freelancer update issued by Microsoft to get to 1.1? (you can still get it from moddb)

1

u/Danny_Delicious Oct 17 '26

Ah I can see it's 1.1 nvm

17

u/Schaf-Unschaf Oct 17 '26

Welp, you beat me to it. I started the same two weeks ago. Glad I can spend my tokens somewhere else. Good job!

19

u/massav Oct 17 '26

Wow that's alot of work / patience, well done!

Didn’t Microsoft say they didn't want to put it on any online retail stores because they "lost" the original source code? Well there ya go! 😂

4

u/alvarkresh Oct 17 '26 edited Oct 18 '26

I happen to know that's BS because Ubisoft had a licence to issue Freelancer as well, meaning they had access to that source code as well.

In fact it was a known issue regarding mod compatibility because Ubisoft patched the EXE to remove the CD/DVD check and if you installed some mods, Freelancer would throw errors.

4

u/outer-or-inner Oct 17 '26

Is it work or patience when you sit there letting an ai do it?

6

u/nagix97 Oct 17 '26

Finally!!!

5

u/ValueForMone Oct 17 '26

Good job! Thanks!

3

u/mikefinch74 Oct 17 '26

This is actually huge. Astonishing work!

3

u/nagix97 Oct 17 '26

I'm already thinking of demonstrating using of this decomp by creating fully playable and cinematic mission 014 after nomad city destruction..

3

u/FL_Lancer Oct 18 '26

Ohhh OP (crossfire) will like this!

2

u/spoollyger Oct 17 '26

Thanks! This will help a lot of my unity style editor for making modded content

1

u/fultre Oct 18 '26

You guys are amazing

1

u/SappinSandviches Oct 18 '26

I was just debating starting this, been talking to people about how I bet someone was already doing it. you're a legend, freelancer modding it about to go insane

1

u/B0ltr0n Oct 18 '26

10/10 would jizz pants if this gets ported to android

-17

u/Huge-Formal-1794 Oct 17 '26

So its AI slop?

13

u/Grydian Oct 17 '26

Its not generated no. Its decompiled. Did he likely use AI tools to do this? Sure but its not generated and not slop. If you don't like AI being used in normal coding tasks then turn off your phone and PC because windows and andriod and IOS are all AI assisted code. Right now you can't get a job as a coder if you do not use AI tools to accelerate your work flow.

3

u/husqi Oct 17 '26

Year wait, was this decomped via vibes or humans? 

4

u/confused_applause Oct 17 '26

AI usually decompiles the binaries, then makes it more human-readable because it has seen thousand of variations of binary instructions and what they "mean“. So it‘s still sort-of-vibes, or more like educated guesses. Not humans, tho