https://www.reddit.com/r/Games/comments/12jbb9d/age_of_empires_ii_de_major_update_81058/jfy2mqq/ Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts Search all of Reddit[ ] Get AppLog In User account menu [zOx8fQ]Found the internet! Feeds HomePopular Topics Gaming ValheimGenshin ImpactMinecraftPokimaneHalo InfiniteCall of Duty: WarzonePath of ExileHollow Knight: SilksongEscape from TarkovWatch Dogs: Legion Sports NFLNBAMegan AndersonAtlanta HawksLos Angeles LakersBoston Celtics Arsenal F.C.Philadelphia 76ersPremier LeagueUFC Business, Economics, and Finance GameStopModernaPfizerJohnson & JohnsonAstraZenecaWalgreensBest Buy NovavaxSpaceXTesla Crypto CardanoDogecoinAlgorandBitcoinLitecoinBasic Attention TokenBitcoin Cash Television The Real Housewives of AtlantaThe BachelorSister Wives90 Day Fiance Wife SwapThe Amazing Race AustraliaMarried at First SightThe Real Housewives of DallasMy 600-lb LifeLast Week Tonight with John Oliver Celebrity Kim KardashianDoja CatIggy AzaleaAnya Taylor-JoyJamie Lee Curtis Natalie PortmanHenry CavillMillie Bobby BrownTom HiddlestonKeanu Reeves More Topics Animals and PetsAnimeArtCars and Motor VehiclesCrafts and DIYCulture, Race, and EthnicityEthics and PhilosophyFashionFood and DrinkHistory HobbiesLawLearning and EducationMilitaryMoviesMusicPlacePodcasts and StreamersPoliticsProgrammingReading, Writing, and LiteratureReligion and SpiritualityScienceTabletop GamesTechnologyTravel Create an account to follow your favorite communities and start taking part in conversations. Join Reddit r/Games Posts r/Games 278 Posted by4 days ago Age of Empires II: DE, Major update 81058 ageofempires.com/news/a... [renderTimi] Update 55 comments share save hide report Sort by: best View all comments View discussions in 4 other communities [renderTimi] level 1 * 4 days ago Aztec monks with 1/55 HP no longer die when picking up or dropping a relic. This was caused by a floating point rounding error. A unit switching jobs internally becomes a different unit (i.e. a monk with a relic becomes a monk without a relic), and when doing that, HP is scaled proportionally based on the old and new max HP using 32-bit floating point maths. The exact formula most likely used to be something like: float convert_hp(float old_hp, float old_maxhp, float new_maxhp) { return new_maxhp * (old_hp / old_maxhp); } Due to floating point rounding errors, convert_hp(1, 55, 55) equals 0.999999940395355224609375, which is less than 1, which means the unit dies. The same issue plagued Bohemian villagers with enough upgrades (also 55 HP), and could in theory happen to other units with an appropriate number of max hp that switches jobs (like trebuchet). The smallest problematic HP values are 41 47, 55, 61, 82, 83, 94, 97, 107, 109, 110, 115, 121, 122, 123, 141, 159, 164, 165, 166, 188, 189, and 194. If the game used 64-bit floating numbers instead, the same same problem would happen, but for different max HP values: 49, 98, 103, 107, 161, 187, 196, and 197. I'm guessing the fix involves either changes to the formula (so it multiplies first instead of dividing first), a post-calculation adjustment (numbers between 0.999999 and 1 are rounded up to 1), or skipping the conversion if max HP is the same. 139 Reply Share ReportSaveFollow level 2 * 4 days ago Wow, such a niche issue. Was this reported by a player? 43 Reply Share ReportSaveFollow Continue this thread level 2 * 8 hr. ago For the numbers: 49, 98, 103, 107, 161, 187, 196, and 197 there is an OEIS sequence https://oeis.org/A309541, for the other numbers in the previous paragraph there isn't. 3 Reply Share ReportSaveFollow level 2 * 10 hr. ago An obvious and easy fix would be rounding the float to the nearest integer before returning them. roundf will be available pretty much everywhere. 1 Reply Share ReportSaveFollow Continue this thread About Community Subreddit Icon r/Games The goal of /r/Games is to provide a place for informative and interesting gaming content and discussions. Submissions should be for the purpose of informing or initiating a discussion, not just with the goal of entertaining viewers. Memes, comics, funny screenshots, arts-and-crafts, etc. will be removed. Created May 5, 2008 --------------------------------------------------------------------- 3.2m Members 7.2k Online Top 1% Ranked by Size --------------------------------------------------------------------- Join User AgreementPrivacy policy Content policyModerator Code of Conduct Reddit Inc (c) 2023. All rights reserved Back to Top Advertisement