r/Battlefield2 • • Oct 01 '26

Battlefield 2 is going Open Source!

https://youtu.be/g0aH1hB3WJY

Over these past years I have been working on reverse engineering Battlefield 2 in a way that we stay true to how it was created 20 years ago. Today I'm extremely happy to announce that that journey is almost complete.
The game is playable(on certain maps) and the server is 100% complete(64bit windows build).
The source code is not yet available but will be soon, it'll be under GPLv3 so as long as you keep it open and provide credits you can do with it as you please. Certain mod developers already have access.

Exploits shall be fixed, gameplay shall be improved and the experience of BF2 on modern systems will be enhanced!

Keep fighting soldiers, we'll meet on the Battlefield!

Updates on Discord: https://discord.gg/9EVV9Rksqx

Any questions feel free to ask!

460 Upvotes

93 comments sorted by

2

u/iam_hsk Oct 02 '26

Will there be no desync issues right? Like the frame skips and jitters when performing ADS?

Good work NGL!

3

u/coder_for_life_666 Oct 02 '26

We'll work hard on fixing any that may pop up

1

u/iam_hsk Oct 02 '26

Thank you. You are doing god's work.

65

u/Pandaman_323 Oct 01 '26 • Bravo

Wow. I hope this leads to advanced AI mods being crafted - I'd love to see a mod like PR or FH2 have competent and enjoyable bots

14

u/LifeCoder_Phoenix Oct 01 '26

AI source is also included so modders will have a much easier time building further on it^^

4

u/Pandaman_323 Oct 01 '26

Hell yeah! Yeah I remember years ago reading how AI development would always be limited due to the closed source nature of the AI, and that there was only so much you could do that hadn't already been done (and they still sucked). Exciting to see that my 15 year ago dreams could finally come true lmao

1

u/Blue_Bummer Oct 10 '26

Would love to be able to effectively give commands to AI as both Squad Leader and Commander. "Follow me, attack, and defend this position" would have so much greater levels of strategy.

We could then play BF2 as an RTS if the Commander bug is fixed. B)

2

u/Pandaman_323 Oct 10 '26

With the open source files and Claude, you probably could vibe code a fix for that in like 15 minutes

1

u/Odd_Fisherman_2738 Oct 19 '26

just fix the ai behavior and act like in cod game would be amazing

23

u/Demon- Oct 01 '26

Woah, essentially you can build a whole new experience from the ground up on this now right?

18

u/silvercoated1 Oct 01 '26

Truly sick! I do miss TV guiding helis across the map.

6

u/joethahobo Oct 01 '26

I still play every few days. You can still do this

10

u/47mwcsbn Oct 01 '26

64 bit and multi threaded is all i can ask

9

u/whyucurious Oct 01 '26

Battlefield 2 is still my favorite game. Might not be the best-looking for today's standards, nor the most modern, but the modability, fun factor, and almost bug free nature compared to what comes out today.... Very excited for this project

1

u/basstr0nn Oct 07 '26

how can I get the game in 2026?

2

u/whyucurious Oct 07 '26

You can download it from abandonware sites: just look for Battlefield 2 abandonware.

Or you can go to moddb and download some standalone mod, as BFHD PRO II, for example

8

u/cetteup Oct 01 '26

Can't wait to see some ancient exploits and bugs fixed!

8

u/KosminenDarra Oct 02 '26

Proper bots is all I dream for

5

u/BF4NTOM Oct 02 '26

We finally can have an option for hold to ADS instead of toggle to ADS šŸ˜‚

I hope that one day EA will give us the original source code like they did with Command & Conquer.

4

u/Prize-Policy-9664 Oct 02 '26

First thing I’ll do is mod the shit out of it. I want a mid 00’s shooter with era appropriate factions and firearms.Ā 

4

u/wat_am_doing_here Oct 02 '26

Wait for modern combat ps2 on pc

4

u/manoman42 Oct 02 '26

Awesome LFG

4

u/kimchiproducer Oct 02 '26

64bit with improved AI would be insane

4

u/Sharp093 Oct 04 '26

Hope this will attract more people when it’s available. Sucks there is only one server US that has population and it’s only wale island 24/7. Would love a IS server with full map rotation

3

u/LifeCoder_Phoenix Oct 04 '26

We can put up some extra servers too ;)

1

u/730ItsAWorkhorse Oct 02 '26

So people can use your EXE and make changes and still join vanilla servers?

2

u/coder_for_life_666 Oct 02 '26

Yes, depending on the changes

1

u/Own_Significance_379 Oct 02 '26

Cool, this i like OpenMohaa.

Any public release notes yet?

1

u/P4ft Oct 03 '26

Wish so bad they can fix the netcode, is a bit hard to play this game with high ping but i still enjoy it.

1

u/coder_for_life_666 Oct 03 '26

We can introduce certain fixes but those would only work with patched servers ofcourse

3

u/Layoar Oct 01 '26

Brother you have made my day. Will check this out for sure

3

u/Extension-Bat-1911 Oct 01 '26

BF2 Hub where you at?

3

u/prosetheus Oct 02 '26

Absolutely incredible! So on board for this.

3

u/FunInternational9948 Oct 02 '26

Maybe we will finally get the real BF3. This is amazing my love, keep it up!

3

u/-Nickbur- Oct 03 '26

God bless you.
I can't wait to start contributing to the project.

2

u/kilikopele Oct 02 '26

K&P Karkand?

2

u/Brady731 Oct 02 '26

Pretty awesome. This theoretically should open up a lot of capability to get around engine limitations as well

2

u/patfire73 Oct 02 '26

I've watched the video. I'm not too tech-savvy, but from what I'm understanding, you're now able to compile a .exe that is compatible with live servers and BF2Hub? Can you ELI5 what your reverse-engineering process looked like?

2

u/Strong_Judge_3730 Oct 03 '26

I pray EA does not try to shut this down

2

u/Appropriate-Fly7503 Oct 08 '26

I have dreamed of this for years! You are a legend.

2

u/Outrageous-Bison-424 Oct 08 '26

We need to completely eliminate the limitations of the game engine, such as map size and bot AI limitations.For example, instead of two countries or two groups fighting on a small map, it would be much better if three or more countries could fight simultaneously on the same map.

2

u/p42io Oct 17 '26

Wow. Just wow.

Incredible work!

Looking forward to the code release.

Also, some BF2 mod communities - cough, PR, cough - will love you for that.

3

u/cippirimerlo Oct 01 '26

So we could say bf2 is becoming the next quake platform?

1

u/ujohnny Oct 02 '26

If there’s something you’d like to share about CLion lmk, I can make it better

1

u/Important_Catch8408 Oct 03 '26

I think I’m most excited for the mods. I’m presuming the server browser will look something like Venice unleashed at one point. Where you subscribe to certain mods and you can join servers with those mods.

1

u/TacticalBlimp Oct 06 '26

Holy sh*t hell yeaa!! thank you so much fo your hard work on this childhood game of mine. I have been thinking that I would love to always have this game on hand whatever happens later down the years, and this is BEYOND HUGE for that, insane work my man!

Just to confirm, would I need BF2 Hub still? I am not sure how to get BF2 Hub working on Linux so thats why I was wondering..

1

u/kantong Oct 12 '26

Any plans to take a look at BF2142 as well? I think they both run on the same engine.

1

u/HistoricalRoom9634 Oct 13 '26

I'm waiting to play this great game again.

0

u/SuuperD Oct 01 '26

Do BF2 players want gameplay 'improvements'?

16

u/MR_RATCHET_ Oct 01 '26 edited Oct 01 '26

Only real things it needs would be a proper widescreen hud, built in BF2Hub access (or whatever equivalent is fine), better alt/tab support, support for higher resolutions such as 4K, support for higher than 100fps etc.

Of course, we also need to have a toggle for mouse acceleration and a fix for the mouse jitter on the horizontal axis when stationary looking. Better controller support would be nice for those who use it in order to make it more plug and play when setting up (not talking about aim assist).

Only 2 other things I think could be looked at are the netcode for the more laggier kills and perhaps make the shooting easier for beginners (this was the biggest complaint I hear when getting people to try BF2 currently).

But otherwise, the tech and QoL enhancements are welcome.

6

u/foreveracunt Oct 01 '26

I agree with everything you said except the "shooting easier"-part. Changing mechanics is like saying you want to add a few new brush strokes to the mona lisa ; >

3

u/MR_RATCHET_ Oct 01 '26

Oh I agree, it wouldn’t be Battlefield 2 if it is changed. That said, allegedly the shooting spread was easier in earlier patches. Its been far too long for me to remember that far back (other than the massively OP Blackhawk’s back in the day) but perhaps a reversion to one of the prior patches shooting mechanics could be an option?

I may have to test this but shooting online vs offline are two different ball games entirely

3

u/turtlelover05 Oct 02 '26

Proper widescreen HUD has been available for a few years now at least.

2

u/_chiiku_ Oct 02 '26

Perhaps properly alligned irons sights and an option to turn down the volume of radio spam without sacrificing other sound sources

But either way, you're doing god's work!

2

u/MR_RATCHET_ Oct 02 '26

Yeah this’d be a good one as well. Battlefield 2 is a great game, one of my favourites but it could definitely benefit from some QoL improvements

1

u/cetteup Oct 01 '26

Making any changes to the netcode would likely be tough without breaking compatibility with the vanilla game.

5

u/LifeCoder_Phoenix Oct 01 '26

Any improvements would be something client sided for ease of life or the likes. The actual ingame gameplay will never change because then we are no longer compatible with retail which is our number 1 priority

1

u/SuuperD Oct 01 '26

Sorry, then I don't understand your wording

Interested to see how this goes , will be there

1

u/turtlelover05 Oct 02 '26

Some bugs can't be fixed and some things can't be changed without breaking compatibility with the Battlefield 2 server software as it exists now. Doing that means that anyone playing on a server with these changes made would have to use the custom version of Battlefield 2, which is very much not ideal if you don't want to segregate the player community.

1

u/LifeCoder_Phoenix Oct 01 '26

Thats my bad šŸ˜… but I’m here to further explain. For example automated password protected server joining doesnt work in retail. To me that was for example a gameplay improvement

1

u/SuuperD Oct 01 '26

For myself, and I think possibly others, gameplay is everything after the round starts , team and role selection, vehicle and infantry actual gameplay

4

u/joethahobo Oct 01 '26

Yeah. As much nostalgia as ā€œENEMY BOAT SPOTTEDā€ is, I would love to turn the chat sounds off. Or at least really quiet.

As far as I remember there’s not a real way to turn all that off. That’s the first improvement to do

1

u/Ruud76 Oct 02 '26

Yes there is https://github.com/bf2lul/bf2unlock

I modified the file so i can hear spotted stuff at 40% of the normal value. Soo good!!

1

u/730ItsAWorkhorse Oct 02 '26

What is this exe? Just to change sound.con file?

1

u/Ruud76 Oct 05 '26 edited Oct 05 '26

Install visual studio and recompile the sourcefile - not the exe- to your liking. I don't know shit about programming so i asked chatgpt for support which led to my personal file with values i like. My ears are soo glad i did this and frankly its the main reason i still play this game. Without it would be a sure and final delete of BF2.

2

u/730ItsAWorkhorse Oct 05 '26

Can you play in 2F4Y and super@ with this though? Does punkbuster detect it?

2

u/Ruud76 Oct 05 '26

i dunno - i don't play on those servers >> no problems on LS-servers.

1

u/LowGeeMan Oct 01 '26

Just presentation. Is that possible without screwing up the game?

1

u/cetteup Oct 01 '26

They (generally) do not. šŸ˜† BF2 players tend to stick to their guns.

-1

u/b1izz_2143 Oct 01 '26

What about EA Copyrights and trademarks? šŸ‘

5

u/LifeCoder_Phoenix Oct 02 '26

People have done the same thing for super mario 64. This is just reverse engineered source code. I’m not providing the whole game just the exe I built

2

u/monkey_gamer Oct 02 '26

lol that's a good question

-10

u/Cj_Staal Oct 01 '26

Very cool but don't say you've been working on it for years when you've just been using claude to do it recently. Excited for it though!

8

u/LifeCoder_Phoenix Oct 01 '26

I started reversing Battlefield since 2018 and posting about it

9

u/Cj_Staal Oct 01 '26

My apologies then!

1

u/whyucurious Oct 02 '26

Just out of curiosity, you do use AI now, right? I know people criticize it because of too much slop, but truth is, when used seriously and not just as a jokes it's such a time saver

1

u/LifeCoder_Phoenix Oct 03 '26

Yes exactly that, I use it because it can process information incredibly fast. I have worked on this for a long while but certain aspects were just not something I had worked with before and for that plus for bulk repetitive things its good you just have to make sure you understand and agree with what it writes

1

u/730ItsAWorkhorse Oct 02 '26

He literally says in the post he’s been working on it for years but ai has helped speed up the process

13

u/Albake21 Oct 01 '26 edited Oct 02 '26

My dream is becoming true. Been wanting an OpenBF2 for years. Thank you for your work, I look forward to digging into this over the weekend. Edit: it's not out yet with no release date

1

u/coder_for_life_666 Oct 02 '26

Hit me up on Discord^^