User Pass
Home Sign Up Contact Log In
Page:
 
avidday
offline
Link
 
Have you ever wondered what the SP Value of that fantastic build you just came up with in the VPB? Now you can find out, thanks to my new:

GLB Player Value Calculator script:

http://userscripts.org/scripts/show/114383

This Greasemonkey script adds a player value calculator to the player skills screen so that you can determine the SP value of any build. You can run it before you start the builder to show your current value, then compare that to the end build, or at any point along the way. Just click the button to re-calculate at any time.

EDIT: Now works with Google Chrome!
Edited by avidday on Oct 3, 2011 07:41:01
 
Redster
offline
Link
 
all hail avidday.



BH
 
pabst
offline
Link
 
My script to do the same thing: http://userscripts.org/scripts/review/100848

Borrow some code and you can make yours a lot shorter.
 
mandyross
offline
Link
 
Don't they both give the wrong value at the moment? Take a look at this which has the correct formula buried within:


https://spreadsheets.google.com/ccc?key=0Ao39eFeqMw_ZdDZjaTdmQkU0UlFEdmlKalZtOENqOVE&hl=en&authkey=COmi3eAM
 
pabst
offline
Link
 
Originally posted by mandyross
Don't they both give the wrong value at the moment? Take a look at this which has the correct formula buried within:

https://spreadsheets.google.com/ccc?key=0Ao39eFeqMw_ZdDZjaTdmQkU0UlFEdmlKalZtOENqOVE&hl=en&authkey=COmi3eAM


Which one is right depends on where you believe is the correct place to calculate the fractional points. The spreadsheet does it Bort's way which is wrong as far as I'm concerned, but it's mostly a Swift-esque Big Endian/Little Endian argument. But as a proud citizen of Blefuscu, I refuse to submit!

FWIW, I was mostly talking about my function to calculate the value of an SA. He uses 80 lines. I use 7.

 
xhail2skinsx
offline
Link
 
that was a good laugh
 
avidday
offline
Link
 
Originally posted by pabst
Which one is right depends on where you believe is the correct place to calculate the fractional points. The spreadsheet does it Bort's way which is wrong as far as I'm concerned, but it's mostly a Swift-esque Big Endian/Little Endian argument. But as a proud citizen of Blefuscu, I refuse to submit!

FWIW, I was mostly talking about my function to calculate the value of an SA. He uses 80 lines. I use 7.



I see your script pulls from an array, which is what i was doing originally. What does your script do when an ability score exceeds 106.98? For any value above that, your script is wrong. Mine, however is right (with the exception of a mysterious 0.000000000000002 variance it throws on at random...) because I use the actual formula that Bort uses.

Also, my script pulls in existing player information from the player page with which to calculate a value. Yours will only be accurate for a newly built player and not for an existing player, especially if they're accrued and spent VA points. Does yours even take VA points into account? They do figure into the equation.

Originally posted by mandyross
Don't they both give the wrong value at the moment?


With the exception of the 0.000000000000002 problem stated earlier, mine is right on the money. Please feel free to load up an existing player, without even running the VPB, and compare what my script does compared to Bort's value. I think you'll be pleased.

EDIT: If you have an Android device, you might want to try this Player Value Calculator that I also wrote as part of a bigger player builder package I'm working on:

http://slideme.org/application/player-value-calculator

The other thread it's mentioned in, including screenshots of the player builder:

http://goallineblitz.com/game/forum_thread.pl?thread_id=4740988

Direct link to screenshot post: http://goallineblitz.com/game/forum_thread.pl?thread_id=4740988&page=3#43652663

Edited by avidday on Oct 2, 2011 21:49:36
Edited by avidday on Oct 2, 2011 21:44:46
 
mandyross
offline
Link
 
Originally posted by avidday


With the exception of the 0.000000000000002 problem stated earlier, mine is right on the money. Please feel free to load up an existing player, without even running the VPB, and compare what my script does compared to Bort's value. I think you'll be pleased.



My apologies, it's right on the money in Firefox.

On Chrome, which I was using earlier, it doesn't seem to be able to grab the SA skill points. I assume due to the ongoing problems with certain functions.
 
mandyross
offline
Link
 
But thank you this is a great addition for sure, being able to check with 1 click that VPB runs get you to a reasonable end point.
 
pabst
offline
Link
 
Originally posted by avidday
What does your script do when an ability score exceeds 106.98? For any value above that, your script is wrong.

I've never bothered to figure out what the caps are beyond 106.98 and will never have anyone above 107 natural anyway so I'm content with what I've got.


Originally posted by avidday
Also, my script pulls in existing player information from the player page with which to calculate a value.Yours will only be accurate for a newly built player and not for an existing player, especially if they're accrued and spent VA points. Does yours even take VA points into account? They do figure into the equation.

The only thing mine is "inaccurate" on is VA's because I completely ignore them. You can't buy VA's no matter how many spare SP you have, so it's pointless to include them at all in a value that represents the number of SP required to create that player.

Edited by pabst on Oct 2, 2011 22:13:26
 
Redster
offline
Link
 
Originally posted by pabst

The only thing mine is "inaccurate" on is VA's because I completely ignore them. You can't buy VA's no matter how many spare SP you have, so it's pointless to include them at all in a value that represents the number of SP required to create that player.



What's with all the hatin? All he did was figure out what numbers Bort used for his effective levels and make the calculator match it. That was the goal after all
 
avidday
offline
Link
 
Originally posted by pabst

I've never bothered to figure out what the caps are beyond 106.98 and will never have anyone above 107 natural anyway so I'm content with what I've got.



Um, formula. There's a simple formula that makes it work EXACTLY.


Originally posted by pabst

The only thing mine is "inaccurate" on is VA's because I completely ignore them. You can't buy VA's no matter how many spare SP you have, so it's pointless to include them at all in a value that represents the number of SP required to create that player.



So you admit yours is totally wrong because it's missing VA points entirely... Why are you in my thread talking crap about my script that actually works?
Edited by avidday on Oct 3, 2011 05:40:20
 
avidday
offline
Link
 
Originally posted by mandyross
My apologies, it's right on the money in Firefox.

On Chrome, which I was using earlier, it doesn't seem to be able to grab the SA skill points. I assume due to the ongoing problems with certain functions.


Originally posted by mandyross
But thank you this is a great addition for sure, being able to check with 1 click that VPB runs get you to a reasonable end point.


I hadn't really tested it on Chrome. Thanks for having a look at it. Feel free to post your player value vs. what's being calculated by my script and I'll try to take a look at it in Chrome to get it working as well.


EDIT: Chrome Workaround: before calculating for an existing player, start up the VPB and press cancel to load the current build. Once it's finished loading, you can run my script to calculate your current player value. I might be able to fix something in the existing script to make it work without having to load the VPB. Let me work on it for a bit, but the workaround above should be fine for now.

EDIT2: Script should now be working in Chrome. Apparently Chrome doesn't like it when you attempt to load the contents of a div that doesn't exist. Greasemonkey just assigns the variable to be null, while chrome throws an exception. The script now checks to see if the VPB div exists before attempting to assign it, so you shouldn't get the Chrome exception any more. Please reinstall it and let me know if it's working for you now.

EDIT3: I may have also fixed the 0.000000000000002 problem. I guess we'll see.
Edited by avidday on Oct 3, 2011 07:38:26
Edited by avidday on Oct 3, 2011 07:36:06
Edited by avidday on Oct 3, 2011 07:00:28
 
pabst
offline
Link
 
Originally posted by Redster
What's with all the hatin? All he did was figure out what numbers Bort used for his effective levels and make the calculator match it. That was the goal after all

Hating??? Wow. You guys have really thin skin.
 
pabst
offline
Link
 
Originally posted by avidday
So you admit yours is totally wrong because it's missing VA points entirely... Why are you in my thread talking crap about my script that actually works?

I was in your thread to point out that you can borrow some of my code to get rid of that absolutely absurd switch/case mess you have for SA's and shorten yours considerably in the process. But, nevermind. Don't use it.



mandyross brought in the correctness issue so blame him if you don't like your thread being derailed, but seriously ...
Originally posted by pabst
Bort's way which is wrong as far as I'm concerned, but it's mostly a Swift-esque Big Endian/Little Endian argument

Are xhail2skinsx and I the only people who get this reference?!?!?!? Christ.
Edited by pabst on Oct 3, 2011 21:29:33
 
Page:
 


You are not logged in. Please log in if you want to post a reply.