User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Training Points calculator
Page:
 
jcross
offline
Link
 
Since training points for the career are static now, would there be a script that could give a countdown on how many BT can be accrued for the remainder of the dot's career for each training regimen? I know we can calculate it using our math, but thought it might be helpful for people
 
melon27
online
Link
 
Originally posted by jcross
Since training points for the career are static now, would there be a script that could give a countdown on how many BT can be accrued for the remainder of the dot's career for each training regimen? I know we can calculate it using our math, but thought it might be helpful for people


vpb handles this but its kind of a pain to run it through over and over if you keep adjusting. Otherwise a simple excel sheet helos.

When you get to light training: (add 108 BT for the last 36 TP dump for beginning of plateau)

tp's/day
160 tp's/season
36 lump tp's
196 total tp's
2 tp's/training
98 # of trainings
6 BT's/training
588 BT's/season



 
RyanCane26
online
Link
 
I use the VPB as noted above but would be helpful it was elsewhere
 
SeattleNiner
NINERS
offline
Link
 
I am just returning to the game so not sure if the logic is correct, this runs on the training page. Someone feel like verifying where it is good or bad?

https://greasyfork.org/en/scripts/559546-sn-s-glb-trains-remaining-early-warning
 
jcross
offline
Link
 
That location works really well! I don't think the number of trainings remaining is correct, and I'm not sure it is an easy fix or not as Melon above has the total numbers up there or the progression from creation would be as follows(tell me if I'm wrong below anyone):

Season 0-56 TP
Season 1-80 TP
Season 2-116 TP
Season 3-116 TP
Season 4-116 TP
Season 5-36 TP

These could be wrong so if someone can verify to make sure then please do so!
 
slughead42
Don't panic!
offline
Link
 
I'm not getting correct results on one of my players, it's got too many trains left calculated, even though (as far as I can tell from looking at the code) it isn't adding in for the 36 TP dump that jcross is talking about (he's added it in to the season itself for seasons 2-4).

I don't know how to/if it's possible to troubleshoot those scripts while they're actually running, because the math LOOKS like it should be correct for calculating all of that (except, as noted above, that it should actually be too low because of leaving out the TP dump).

Edit: But thank you for doing this, and I hope that you can tease out what's making it not get the right answer, b/c it would definitely be of help to a lot of folks, I think.
Edited by slughead42 on Dec 20, 2025 10:16:05
 
slughead42
Don't panic!
offline
Link
 
One thing to consider/add in to the calculation of training points left is that just knowing the age of the dot is not enough information, you also have to know the day of the season. This is because if a dot is 120 days old, for example, and it's day 43 of a season, for example, then the dot will get 36 TP on the rollover to day -4 of the next season. If the dot is 120 days old and it's day -2, then that training point dump has already occurred for that dot. So 2 dots of the same "age" will have a different number of TP left depending on when it is, whether postseason or preseason of the next year.
 
SeattleNiner
NINERS
offline
Link
 
Originally posted by slughead42
I'm not getting correct results on one of my players, it's got too many trains left calculated, even though (as far as I can tell from looking at the code) it isn't adding in for the 36 TP dump that jcross is talking about (he's added it in to the season itself for seasons 2-4).

I don't know how to/if it's possible to troubleshoot those scripts while they're actually running, because the math LOOKS like it should be correct for calculating all of that (except, as noted above, that it should actually be too low because of leaving out the TP dump).

Edit: But thank you for doing this, and I hope that you can tease out what's making it not get the right answer, b/c it would definitely be of help to a lot of folks, I think.


I definitely did not add the 36 TP after plateau (oops) I have that fixed now + it now remembers that player id when a goal is set. Now a question I have is when there is a 36TP off season dump, what exact day does it happen on? Documentation is hard to find!

 
SeattleNiner
NINERS
offline
Link
 
This one should be better! https://greasyfork.org/en/scripts/559646-sn-s-glb-trains-remaining
 
slughead42
Don't panic!
offline
Link
 
Originally posted by SeattleNiner
I definitely did not add the 36 TP after plateau (oops) I have that fixed now + it now remembers that player id when a goal is set. Now a question I have is when there is a 36TP off season dump, what exact day does it happen on? Documentation is hard to find!



It happens on the day the season rolls over, which is day -4. The length of the postseason can vary (Bort had originally said that we'd probably end on day 44, going to day -4 of the following season the next day, but in practice it's usually longer, we're already on day 46 of this season, for example), but the preseason is always days -4 to day 0 (5 days), and then day 1 is the first day of the regular season, and all training points start getting assigned again, etc.
 
slughead42
Don't panic!
offline
Link
 
So, I'm trying the new script and it's still fundamentally broken for me. I went to the training page for a dot 400 days old (so WELL past plateau), and it's saying I have 330 trains or so left. This makes me think that it must not be finding the Age correctly.

For this line of code:
const currentAge = parseInt(document.body.innerText.match(/Age:\s*(\d+)/i)?.[1] || 0);

There's no visible Age for players on the training page that this lives on, is the Age value still somewhere in the pages's code where you can get to it via that line of JS? Or is it failing and then defaulting to zero since it failed?

Forgive my blistering ignorance of Javascript, I'm just a dumbass who is sometimes stubborn enough to monkey around with it long enough to update things other people wrote, so my understanding of any of this is inches deep.
Edited by slughead42 on Dec 20, 2025 16:15:33
 
RyanCane26
online
Link
 
Age is not on the training page anywhere so it would need to be fetched from another page.. alternatively and probably easier is to just put a box to input age
 
SeattleNiner
NINERS
offline
Link
 
OK, scraped the player age and season date - https://greasyfork.org/en/scripts/559650-sn-s-glb-trains-remaining

Does this look OK?
 
RyanCane26
online
Link
 
Originally posted by SeattleNiner
OK, scraped the player age and season date - https://greasyfork.org/en/scripts/559650-sn-s-glb-trains-remaining

Does this look OK?


Age looks correct, looks to be missing the +36 TPs at the end
 
slughead42
Don't panic!
offline
Link
 
Your skills are WAY beyond me. That said, I installed your latest version, and when I check it on a day 80 player that I have, it looks like it's missing 2 seasons worth of the 36 TP dump that happens on day -4 of each new season rollover. Here's the copy/paste of what it shows for my day 80 player:

S117 D46 | Age: 80d | 181 trains left

This should be 217 trains left, which is a difference of 36 trains, or 2X the 36 TP dump per season rollover. I hope this is helpful in troubleshooting.
 
Page:
 


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