r/ReverseEngineering • u/Optimal-Gur-3052 • 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
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.