Project 1999

Go Back   Project 1999 > Class Discussions > Melee

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2024, 06:09 PM
Jimjam Jimjam is offline
Planar Protector


Join Date: Jul 2013
Posts: 12,736
Default

Quote:
Originally Posted by bcbrown [You must be logged in to view images. Log in or Register.]
I'm putting this one in a spoiler tag because I don't want to give anyone a jump scare.
 
[You must be logged in to view images. Log in or Register.]
Thank you for reviewing my post, I appreciate that. It turns out the distribution which Torven claims to have created created was "For TAKP, I have replicated this curve by employing the Box-Muller Transform to generate a gaussian distribution". Do you have any further info on what defines that (yes I know I could google search it, but you deliver so eloquently, and you seem to enjoy explaining and posting textbook jumpscares)?

Edit: I thought this would be an interesting extra point, according to a quick search, p99 branched from eqemu in 2009. Now obviously, Torven may have written the code before making the post (2014) but I'd say there is a good chance p99 is using either a more rudimentary damage roll OR on of the p99 devs may have either copied Torven's work or created their own die. I'd love to know which it may be.

Edit edit: DSM I'm gonna dig further into that post you made which included the code now I feel I have a rough estimation of what was posted there and it's potential relevance (or maybe not!) to p99.
Last edited by Jimjam; 11-24-2024 at 06:19 PM..
Reply With Quote
  #2  
Old 11-24-2024, 06:26 PM
bcbrown bcbrown is offline
Fire Giant


Join Date: Jul 2022
Location: Kedge Keep
Posts: 752
Default

Quote:
Originally Posted by Jimjam [You must be logged in to view images. Log in or Register.]
Edit edit: DSM I'm gonna dig further into that post you made which included the code now I feel I have a rough estimation of what was posted there and it's potential relevance (or maybe not!) to p99.
While I watch some football and come up with a good answer to your initial question, I thought i'd point to another eqemu implementation of this same method: https://github.com/EQEmu/Server/blob...cpp#L999-L1020

This is probably what you were thinking of when you described it as a roll-off.
Reply With Quote
  #3  
Old 11-24-2024, 06:38 PM
bcbrown bcbrown is offline
Fire Giant


Join Date: Jul 2022
Location: Kedge Keep
Posts: 752
Default

Quote:
Originally Posted by Jimjam [You must be logged in to view images. Log in or Register.]
Thank you for reviewing my post, I appreciate that. It turns out the distribution which Torven claims to have created created was "For TAKP, I have replicated this curve by employing the Box-Muller Transform to generate a gaussian distribution". Do you have any further info on what defines that (yes I know I could google search it, but you deliver so eloquently, and you seem to enjoy explaining and posting textbook jumpscares)?
I know nothing other than what I read on Wikipedia and Torven's post, but I think I can explain. The Box–Muller transform is a way to build a normal distribution from a random number generator. You start with two random numbers between 0 and 1, and you end up with two samples from a normal distribution. This is stuff that is deep in the bowels of scientific computing - most normal people should use a library that implements it for you.

If you compare the code to the wiki page, you can see what Torven did. First, there's some futzing around to come up with some multiplier values, and then they're used to modify some value calculated for the mean. Then, the Box-Muller transform is used to draw a random sample from a normal distribution with the mean calculated earlier, and standard deviation of 8.8. So two thirds of the time it'll be within +/- 8.8 of whatever that mean value is. Then the tails are clipped so any values outside [-9.5, 9.5] are set to -9.5 or 9.5. Then you add 11 and round down, so now it'll be between 1 and 20.

It's doing essentially the same thing as the other implementation I posted, just using a slightly different distribution to pick which DI from 1 to 20 to use.
Last edited by bcbrown; 11-24-2024 at 06:40 PM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:57 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.