Archive for glbscripts.myfreeforum.org Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 



       glbscripts.myfreeforum.org Forum Index -> Original Scripts
rockitsauce

Defensive AI Enhancements

I just got picked up as a defensive coordinator and immediately realized the UI was cumbersome.  I thought I'd give these greasemonkey scripts a try.  Haven't written one before, but I do know how to write javascript.

Here's the link:  http://userscripts.org/scripts/show/38237

Please give feedback.  Suggestions or bugs or complaints welcome.
rockitsauce

Future considerations include:

Allow ordering of output options
Global updates by property with a match filter (Ex: All output with name containing "Short", update Play Focus to run)
Display input/output count next to toggle link


I'll keep this updated.
blazzinken

That is really cool. Really helps setting up the AI
mw54finest

Thanks for the script!  I fix the link for you so it's clickable.
rockitsauce

mw54finest wrote:
Thanks for the script!  I fix the link for you so it's clickable.


Haha.  Man, I should learn basic HTML someday.  Smile
222

Can't get it to work for me? Keeps failing to run properly and I get an error message asking if I want to retry, or end the script. Clicked on retry/keep running and it pops up another box with the same options?
rockitsauce

222 wrote:
Can't get it to work for me? Keeps failing to run properly and I get an error message asking if I want to retry, or end the script. Clicked on retry/keep running and it pops up another box with the same options?


How many input/outputs do you have?
GG

Very good script.

Any chance you could do the exact same script for the Offensive AI, please?
rockitsauce

GG wrote:
Very good script.

Any chance you could do the exact same script for the Offensive AI, please?


I don't have access to the Offensive AI interface.  I'm just a DC right now.  When I do I'll write one.
cougah

rockitsauce wrote:
222 wrote:
Can't get it to work for me? Keeps failing to run properly and I get an error message asking if I want to retry, or end the script. Clicked on retry/keep running and it pops up another box with the same options?


How many input/outputs do you have?


It does have the tendency to time out alot if you have tons of input/outputs but I kept hitting continue and it eventually worked for me.  My computer is also slow as dirt so that might also have something to do with it.

@Rockitsauce I can make you a GM on my team if that will help you create a script for the Offense.
rockitsauce

cougah wrote:
rockitsauce wrote:
222 wrote:
Can't get it to work for me? Keeps failing to run properly and I get an error message asking if I want to retry, or end the script. Clicked on retry/keep running and it pops up another box with the same options?


How many input/outputs do you have?


It does have the tendency to time out alot if you have tons of input/outputs but I kept hitting continue and it eventually worked for me.  My computer is also slow as dirt so that might also have something to do with it.

@Rockitsauce I can make you a GM on my team if that will help you create a script for the Offense.


I'd write one for the offensive AI if you were kind enough to let me root aroundin there.  But it will have to be after the new year.  I'm taking vacation until then starting next Friday.  In the mean time I'm going to work on the timeout issue.  I can recreate it, and I'm afraid that there isn't much I can do.  There is just too much stuff on the page.
Augie

Holy freaking crap! You sir are my hero.

Honestly this is something I was looking to build into an actual addon.  Using a sidebar and exporting settings to your computer. But wow.... WOW... This is going to be fun to play with.

It works perfectly with my exporter as far as I can tell.
http://userscripts.org/scripts/show/34502
rockitsauce

Script timeout recreation

I thought I'd be able to easily recreate the timout issue, but it hasn't gone well.  I have a game plan with over 100 inputs and each of those inputs have over 8 outputs.  That's 800 input/outputs and yet I still do not get the timeout.

I have recreated the timeout while attempting to add some other features.  But recreating it in this manner is inaccurate because it was those other features that caused the timeout.

So I'll ask again.  If you are getting timeouts, please tell me how many input/outputs you have.  You can estimate.
rockitsauce

Nevermind

Forget what I wrote earlier.  I turned off script timeouts.  I'm on it.
rockitsauce

UPDATE!!!

I've pinpointed the culprit of the script load slowness.  Based on the tests I performed I believe I improved the performance by 1200%.  Scripts that were loading around 72 seconds are now loading less than 5 seconds.

Remember that you must uninstall the script before installing the update.
rockitsauce

Added new functionality.  It now allows multiple copies in the clipboard.
222

rockitsauce wrote:
222 wrote:
Can't get it to work for me? Keeps failing to run properly and I get an error message asking if I want to retry, or end the script. Clicked on retry/keep running and it pops up another box with the same options?


How many input/outputs do you have?



Sorry for the delay in responding as I have been busy. No issues with the update so far and this script is SICK! Thanks for putting this together!
Falanor

Nice!

Excellent work on the load time issue.  Also, the script works on the O side if you just tell it to add the following page to work on:

http://goallineblitz.com/game/team_offense_ai.pl?team_id=*
rockitsauce

Re: Nice!

Falanor wrote:
Excellent work on the load time issue.  Also, the script works on the O side if you just tell it to add the following page to work on:

http://goallineblitz.com/game/team_offense_ai.pl?team_id=*


Are you serious?  I expected much of the logic to work, but not the entire thing.  If it does, that's awesome.
Falanor

Re: Nice!

rockitsauce wrote:
Falanor wrote:
Excellent work on the load time issue.  Also, the script works on the O side if you just tell it to add the following page to work on:

http://goallineblitz.com/game/team_offense_ai.pl?team_id=*


Are you serious?  I expected much of the logic to work, but not the entire thing.  If it does, that's awesome.


Totally serious.  Tried it myself and my O scheme works.
taurran

Edit:  I tried the suggestion to add the page in for the Offensive AI and it seems to work so far!  I'll let you know if I run into any more snags.
taurran

Okay, I checked this in the offense planning for today's game, and it doesn't appear to be copy/pasting complete information over between the two.  I assume that you'd just have to add in a few more fields/variables that it grabs when performing the copy/paste and it would work fine for the offensive AI.

I have a team with an offensive AI you can use to test if you'd like.  PM me in GLB and I'll add you as a GM with OC access.  (my username is the same there)
taurran

Also, I think I found a bug.  

When you add a new input, the button for Add Output doesn't show the output that was created.  It actually creates the output but it remains hidden.  You have to save the AI then you can see the outputs under the new input.
Falanor

taurran wrote:
Also, I think I found a bug.  

When you add a new input, the button for Add Output doesn't show the output that was created.  It actually creates the output but it remains hidden.  You have to save the AI then you can see the outputs under the new input.


Good spotting, haven't fully tested it out, ah well.  It almost works perfectly.  Damn!  Very Happy
ddcunderground

this doesn't seem to be working now and did we ever get it working for offense?
rockitsauce

Patience

I'm coming back from vacation tomorrow.  In a very sad turn of events I actually did some work on this plug in while on vacation.  I'll clean it up and post the new version soon.  Once I get back I'm going to look for OC access from my current GM and see what I need to do to get it working there.  

Some new features:

Copy all
Clipboard scrolling (although this adversely affects the dragging, but you can work around it)

Still have plans on creating global adjustments using filters.  

Trying to keep myself from digging deeply into defensive scouting through reading the replays.  I'm extremely interested in this, and I think I can do it.  Big project though.
rockitsauce

Posted a new version.  Many new features.  

I'm going to start a thread in the edit topic.
rockitsauce

Changed to general AI enhancer.  Started a new thread.  Go here to discuss:

http://glbscripts.myfreeforum.org/sutra1795.php#1795
GG

Great work, bro.
Imo, this is the best and most useful script ever done.
As this should be a default implemented thing in GLB.
Riggs_Inator

I can't get it to actually paste multiple ones.  I have them on the clipboard, but I cannot highlight them or paste them.  They just sit there and it pastes nothing.
rockitsauce

Riggs_Inator wrote:
I can't get it to actually paste multiple ones.  I have them on the clipboard, but I cannot highlight them or paste them.  They just sit there and it pastes nothing.


When you click on them, in the clipboard, does an orange background show?  If so, when you click the "paste" link none of the settings are placed?

This has never been a problem, but still check on the latest version too.

       glbscripts.myfreeforum.org Forum Index -> Original Scripts
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum