Live data from Hacker News

Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

reddit.com

41–50 of 267 posts

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#41

Earlier quoted context omitted.

> Seems all that could have been avoided by using rationals in general It's 2023: I'm still surprised that so many new languages/platforms still only provide only basic integer and IEEE-754 types for numerics: Rust, C#, Java, Swift and others still lack built-in, runtime-provided, nor even standard-library-provided rational types, which I assume really should be the preferred type for most business/domain/application…

Aren't rationals subject to exponential blowup in storage/precision? IMO the best approach for business logic values is picking the smallest meaningful unit and representing it with integers. Precision and storage requirements become very easy to reason about.

> IMO the best approach for business logic values is picking the smallest meaningful unit and representing it with integers.

How would you design an RTS unit stats system to avoid this AoE Monk HP bug using only integer types?

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#42

It’s great that Microsoft are still actively maintaining a ~24 year old game! Blizzard ought to take note. A few years back they announced “Warcraft 3 reforged” with great fanfare: a remastered version of the classic Warcraft 3, updated for modern systems with improved graphics etc. It looked/sounded fantastic! But despite it being a paid upgrade, what they released was a buggy mess that did little justice to the cla…

It's actually worse, they pulled the legacy version from the users and forced the (effectively) downgraded version to everyone. Even the owners of the legacy version were shafted as they forced a update which removed much of the functionality of the legacy version. To this date still the best version was the pre-patch one for everyone who has the original installers and the latest pre-upgrade patch

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#44

What a weird coincidence. I thought at first this would be about the Guild Wars game, but turns out they both have something to do with monks and 55: https://wiki.guildwars.com/wiki/55_Monk

Ahh nostalgia. I thought so too. This was such a fun build. I miss GW1 a lot, GW2 missed the mark, and is no true successor.

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#45

What’s the best way to play AoE on a MacBook? I can’t afford a dedicated game rig so any pointers would be of great help.

I use a small machine at Paperspace (P4000 with 100GB) and play it remotely with Parsec. The experience is very good and costs me about 10-15$ a month.

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#47
post #29

Earlier quoted context omitted.

Could you explain to a noob why does this happen, exactly? Is it because 55/55 != 1, or 1*1 != 1? I understand float can't store certain integer/finite decimal precisely, but why would a/a not be 1 if both numerator and denominator are the same (imprecise) number?

it's because the calculation (1/ 55) is less than the real number 1/55, so when you multiply it by 55 you get a result less than 1. for an easier to follow example, say you can only work with two decimal places, hp was 1, old max hp was 3 and new max hp was also 3. if you do (3 * 1) / 3 you get 3 / 3 = 1 as intended. if instead you do 3 * (1 / 3) you get 3 * 0.33 = 0.99 which is less than 1

Thanks!

I misread the equation and thought it's `old_hp * (new_maxhp / old_maxhp)`.

Re: Aztec monks with 1/55 HP no longer die when picking up or dropping a relic

#50
post #33
post #22

Earlier quoted context omitted.

Wow, the logic to model these kinds of social structures makes my head hurt. But you would have to do it. And I wonder about dead children. I remember one game where there could be no dead children.

If you don't want to see terrible things happening to children, I'm afraid CK is not the game for you. The game goes out of its way to model the worst aspects of medieval life.

[deleted]
Post reply on HN