![]() |
|
Release| Hit Simulator with Defense Calculation - Printable Version +- Southperry.net (https://www.southperry.net) +-- Forum: Maplestory (https://www.southperry.net/forumdisplay.php?fid=15) +--- Forum: Game Mechanics (https://www.southperry.net/forumdisplay.php?fid=33) +--- Thread: Release| Hit Simulator with Defense Calculation (/showthread.php?tid=13287) |
Release| Hit Simulator with Defense Calculation - Nikkey - 2009-11-14 MissingLink Wrote:The links for the Kortestanov's source and executable are in the first post of this thread, no need to hunt for it. It's actually quite simple to shorten the code. Just rationalize the decimal-values, and you get that they all turn into real fractions.
Spoiler
Release| Hit Simulator with Defense Calculation - Kortestanov - 2009-11-14 Devil's Sunrise Wrote:It's actually quite simple to shorten the code. Just rationalize the decimal-values, and you get that they all turn into real fractions. I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above). 2147483647 Wrote:I meant the ones you mentioned but didn't post:These are the formulas for W.Def\M.Def (not avoidability). I didn't post them because they are too complicated, you can look at the source code if you want. 2147483647 Wrote:Anego does 12K touch damage. Anego's slap does 18K damage. Anego's gun-thing does 5.4K damage. :f6:Because physical "attacks" can have a WATT of their own. Release| Hit Simulator with Defense Calculation - 2147483647 - 2009-11-14 Kortestanov Wrote:Because physical "attacks" can have a WATT of their own.Ok. This is really interesting. If physical attacks can have a WATT of their own, how come it never shows up in extractations? I never see it on the data Fiel posts, haha01haha posts, nor even on hidden-street. o_o Is that data somehow stored elsewhere or something? Release| Hit Simulator with Defense Calculation - Russt - 2009-11-14 Kortestanov Wrote:I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above).Can't you do "int / 9.0" or "int / 9.0d" or something like that? I don't know C# but I'm fairly sure it has some sort of facility for double division. @ above They're in the Mob.wz data and I have them extracted as of about 20 patches ago. It's just that neither Fiel's nor haha01's scripts output them. I actually don't know why; it's fairly relevant information. For example, here's an XML fragment of the data for Anego: (note that this is not "PServer format," it is my own thing that I derived from it) Code: <mob id="9400121">The relevant attack values are bolded. Release| Hit Simulator with Defense Calculation - MissingLink - 2009-11-14 Yes, mostly you just see the default Matt and Watt posted. I believe most of the ranged attacks use the defaults, but you can't tell from the appearance of the attack whether it is magical or physical. For example, both the Red Kent's stamping and spear throw attacks are classed as magical, even though you would think that they are physical. So I assume you would use the magical formula to estimate damage from those attacks. These attacks do not have a Matt specified, so whatever HS shows for Matt is probably valid. On the other hand, Jr Newties attacks are classed as physical, even though they look magical. So I assume you would use the physical formula for those. Also both attacks specify a PADamage value different from the default one as shown on HS. Sorry, I don't know anywhere that shows complete extractions. Release| Hit Simulator with Defense Calculation - 2147483647 - 2009-11-15 Russt Wrote:For example, here's an XML fragment of the data for Anego: (note that this is not "PServer format," it is my own thing that I derived from it)That's very interesting and helpful. It's my first time ever seeing this kinda data in the code, since I can't extract. L> rest of them: Zakum, Pap, Pianus, Newties, Skeles, TT mobs, and every other popular mob.
Release| Hit Simulator with Defense Calculation - Nikkey - 2009-11-15 Kortestanov Wrote:I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above).These are the formulas for W.Def\M.Def (not avoidability). I didn't post them because they are too complicated, you can look at the source code if you want. That's one thing, but the other thing is that it might give another result than multiplying by 0.11111111111 (Obviously depends on the implementation). For me, "int / 9." is easier and would most likely include such a small error-margin that it wouldn't be noticeable. Release| Hit Simulator with Defense Calculation - Kortestanov - 2009-11-15 Devil's Sunrise Wrote:That's one thing, but the other thing is that it might give another result than multiplying by 0.11111111111 (Obviously depends on the implementation).Okay, I changed that. No reason to re-post the application though, because it doesn't make any difference. Release| Hit Simulator with Defense Calculation - Russt - 2009-12-12 Devil's Sunrise Wrote:Not particularly.
Spoiler
Release| Hit Simulator with Defense Calculation - rainbowBean - 2009-12-14 Russt Wrote:Not particularly. i can make a readable function understood by "newbies" once i understand how each formula works. ![]() edit : russt check out the maplestory formula thread, i post a question there Release| Hit Simulator with Defense Calculation - Kevvl - 2010-01-10 Hey guys, just a heads up: Aran have a different multiplier than the others. Using the calculator for Warriors killed my friend, he can't take a hit from Zak's Arms unless he has roughly 300 more HP than he should need. =/ Aran take way more damage. Release| Hit Simulator with Defense Calculation - Hazzy - 2010-01-10 Maybe I did something wrong, but when I compiled the source in the OP, there was no icon. :| "Error, cannot find ___.ico" Release| Hit Simulator with Defense Calculation - Kortestanov - 2010-02-02 Hazzy Wrote:Maybe I did something wrong, but when I compiled the source in the OP, there was no icon. :| Yea, I didn't include the icon. Just remove it from the project properties. Kevvl Wrote:Hey guys, just a heads up: Aran have a different multiplier than the others. Using the calculator for Warriors killed my friend, he can't take a hit from Zak's Arms unless he has roughly 300 more HP than he should need. =/ When I created this program basing on a v60 client, I remember it used modulus and division in order to get the job ID, meaning 100 (warriors) and 2100 (aran) should be the same. It might have changed, though, I'll check it on my aran sometime in the next few months. |