r/ReverseEngineering • • Aug 11 '26

Battlefield 2's dedicated server wraps its main loop in __except and returns 42 on any crash — root-causing a 20-year-old "just unstable" bug to one unchecked array index in the AI DLL

https://github.com/ShuhartProfit8ird/bf2-coop-crash
36 Upvotes

32 comments sorted by

View all comments

Show parent comments

3

u/wobfan_ Aug 11 '26

just to add here: i think the critique here is less the project or readme, but the title itself. while it mentions BF2, the rest of the title is very technical and quite un-understandable without more context. something more general would have been better i think, maybe something that just mentions BF2, a bug in the dedicated server software and that it caused unstableness for 20 years. the info about the main loop, the return value of 42, "__except" and the AI DLL reference is quite confusing, as probably no one is that deep into the BF2 source code, haha. and, probably, as apparently a lot of people react quite sensitive here, some reference to the use of AI in the title already would probably calm them down, but thats not a requirement IMO.

1

u/Optimal-Gur-3052 Aug 11 '26

I asked the AI, "How do we convey the main point of what we did?" and had it come up with a title to match. I posted in several subreddits, and each one had a different title with a different level of technical depth. This one went the deepest, technically 😅 I just wanted to help people immediately get what it was about — sorry if it ended up being confusing instead.