Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting (http://www.chiefdelphi.com/forums/showthread.php?t=75272)

Basel A 05-03-2012 23:59

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
I'm having the same issue as Mr. Bill, but on XP x32 (I know, antiquated, right?).

billbo911 06-03-2012 00:38

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
1 Attachment(s)
I just tried installing the MS Visual C++ 2010 as well, and that didn't fix it either.
Now this is getting odd!

OK, it's a few minutes later now.
I just copied the MSVCP100.dll file from system32 into the folder with OPRNet.
I now get a different error. See the attached image.

I read a few message on the net saying something about linking the dll's statically. Does that make sense to you? This is way out of my league.

Bongle 06-03-2012 06:29

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Ah, I must have messed up my project settings. I changed its directory on my computer so I could get it in source control, and I must have forgotten to move something else or change a setting.

Edit: Whoops, I'm so used to developing on VS2008 I forgot I've moved to 2010 at home. Ok, so you need these runtimes: http://www.microsoft.com/download/en...s.aspx?id=5555

Bongle 06-03-2012 06:39

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
1 Attachment(s)
Here's v20. I made it so the overall OPR is also given the coopertition adjustment (coopertition points * 5, assuming that CPs are points you could have gotten if your alliance assigned you to a different bridge), and did a clean-and-build to attempt to fix the 0xc000007b errors people are getting.

billbo911 06-03-2012 10:05

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139965)
Here's v20. I made it so the overall OPR is also given the coopertition adjustment (coopertition points * 5, assuming that CPs are points you could have gotten if your alliance assigned you to a different bridge), and did a clean-and-build to attempt to fix the 0xc000007b errors people are getting.

Yep, working like a champ now!

Bongle,
Can I ask you a favor? Can you please make a single post describing all the command line options? I've been using this awesome little tool for a few seasons now and really love it. The problem is, my PC took a dive last fall and I lost all my batch files I used as templates. So, I need to start from scratch and I am, well, a bit lazy and don't want to read through 16+ pages of posts to find all the tricks I used to generate the data I used to use. :(

Thanks!

dodar 06-03-2012 10:25

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
It says i cant run because im missing the MSVCP100.dll and I cant find that .dll

Bongle 06-03-2012 10:29

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by billbo911 (Post 1140035)
Yep, working like a champ now!

Bongle,
Can I ask you a favor? Can you please make a single post describing all the command line options? I've been using this awesome little tool for a few seasons now and really love it. The problem is, my PC took a dive last fall and I lost all my batch files I used as templates. So, I need to start from scratch and I am, well, a bit lazy and don't want to read through 16+ pages of posts to find all the tricks I used to generate the data I used to use. :(

Thanks!

Here's the bat file I used for the week 1 regionals:
Code:

oprnet gg 2012 bridge r q > allopr-bridge.txt
oprnet stx 2012 bridge r q >> allopr-bridge.txt
oprnet sdc 2012 bridge r q >> allopr-bridge.txt
oprnet nh 2012 bridge r q >> allopr-bridge.txt
oprnet kc 2012 bridge r q >> allopr-bridge.txt
oprnet tn 2012 bridge r q >> allopr-bridge.txt
oprnet migl 2012 bridge r q >> allopr-bridge.txt
oprnet pah 2012 bridge r q >> allopr-bridge.txt

oprnet gg 2012 teleop r q > allopr-teleop.txt
oprnet stx 2012 teleop r q >> allopr-teleop.txt
oprnet sdc 2012 teleop r q >> allopr-teleop.txt
oprnet nh 2012 teleop r q >> allopr-teleop.txt
oprnet kc 2012 teleop r q >> allopr-teleop.txt
oprnet tn 2012 teleop r q >> allopr-teleop.txt
oprnet migl 2012 teleop r q >> allopr-teleop.txt
oprnet pah 2012 teleop r q >> allopr-teleop.txt

oprnet gg 2012 hybrid r q > allopr-hybrid.txt
oprnet stx 2012 hybrid r q >> allopr-hybrid.txt
oprnet sdc 2012 hybrid r q >> allopr-hybrid.txt
oprnet nh 2012 hybrid r q >> allopr-hybrid.txt
oprnet kc 2012 hybrid r q >> allopr-hybrid.txt
oprnet tn 2012 hybrid r q >> allopr-hybrid.txt
oprnet migl 2012 hybrid r q >> allopr-hybrid.txt
oprnet pah 2012 hybrid r q >> allopr-hybrid.txt

Let's take one line:
"oprnet nh 2012 hybrid r q >> allopr-hybrid.txt"

Broken down:
oprnet - you need this part to start the program :)
nh - indicates you care about the new hampshire regional
2012 - indicates you want results for 2012
hybrid - indicates the statistic you want to print (other options for 2012: opr, teleop, hybrid, bridge)
r - sort teams by ranking (as opposed to 't', which sorts them by team number)
q - quiet mode: makes it not print out status data. Also changes the output format so it's easier to copy/paste into excel. If you want loud mode from the command line for whatever reason, just omit the q.
>> - tells DOS to append all output from oprnet to a text file. The single greater-than ('>') tells it to clear out the file and start over.
allopr-hybrid.txt - which file you want to output to.

The q is optional, and the ">> blah.txt", being a DOS command, is also optional. If you don't have the ">> blah.txt", it'll just spit to your command-line window.

Note that because I'm lazy and because I doubt there's that much use nowadays of the more esoteric parameters like SAA, PM, or DPR, I don't really support them and if the app crashes when you try to use one, I am not that bothered. In 2013, I'm likely to not care very much if the bridge/teleop/hybrid feature gets broken as well.

billbo911 06-03-2012 11:35

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139964)
Ah, I must have messed up my project settings. I changed its directory on my computer so I could get it in source control, and I must have forgotten to move something else or change a setting.

Edit: Whoops, I'm so used to developing on VS2008 I forgot I've moved to 2010 at home. Ok, so you need these runtimes: http://www.microsoft.com/download/en...s.aspx?id=5555

Quote:

Originally Posted by dodar (Post 1140052)
It says i cant run because im missing the MSVCP100.dll and I cant find that .dll

Dodar,
First, follow the link in Bongle's message above and add the Visual 2010 runtimes. Then download and run his v.20 and you should find it works again.

Quote:

Originally Posted by Bongle (Post 1140054)
Here's the bat file I used for the week 1 regionals:
Code:

oprnet gg 2012 bridge r q > allopr-bridge.txt
oprnet stx 2012 bridge r q >> allopr-bridge.txt
oprnet sdc 2012 bridge r q >> allopr-bridge.txt
oprnet nh 2012 bridge r q >> allopr-bridge.txt
oprnet kc 2012 bridge r q >> allopr-bridge.txt
oprnet tn 2012 bridge r q >> allopr-bridge.txt
oprnet migl 2012 bridge r q >> allopr-bridge.txt
oprnet pah 2012 bridge r q >> allopr-bridge.txt

oprnet gg 2012 teleop r q > allopr-teleop.txt
oprnet stx 2012 teleop r q >> allopr-teleop.txt
oprnet sdc 2012 teleop r q >> allopr-teleop.txt
oprnet nh 2012 teleop r q >> allopr-teleop.txt
oprnet kc 2012 teleop r q >> allopr-teleop.txt
oprnet tn 2012 teleop r q >> allopr-teleop.txt
oprnet migl 2012 teleop r q >> allopr-teleop.txt
oprnet pah 2012 teleop r q >> allopr-teleop.txt

oprnet gg 2012 hybrid r q > allopr-hybrid.txt
oprnet stx 2012 hybrid r q >> allopr-hybrid.txt
oprnet sdc 2012 hybrid r q >> allopr-hybrid.txt
oprnet nh 2012 hybrid r q >> allopr-hybrid.txt
oprnet kc 2012 hybrid r q >> allopr-hybrid.txt
oprnet tn 2012 hybrid r q >> allopr-hybrid.txt
oprnet migl 2012 hybrid r q >> allopr-hybrid.txt
oprnet pah 2012 hybrid r q >> allopr-hybrid.txt

Let's take one line:
"oprnet nh 2012 hybrid r q >> allopr-hybrid.txt"

Broken down:
oprnet - you need this part to start the program :)
nh - indicates you care about the new hampshire regional
2012 - indicates you want results for 2012
hybrid - indicates the statistic you want to print (other options for 2012: opr, teleop, hybrid, bridge)
r - sort teams by ranking (as opposed to 't', which sorts them by team number)
q - quiet mode: makes it not print out status data. Also changes the output format so it's easier to copy/paste into excel. If you want loud mode from the command line for whatever reason, just omit the q.
>> - tells DOS to append all output from oprnet to a text file. The single greater-than ('>') tells it to clear out the file and start over.
allopr-hybrid.txt - which file you want to output to.

The q is optional, and the ">> blah.txt", being a DOS command, is also optional. If you don't have the ">> blah.txt", it'll just spit to your command-line window.

Note that because I'm lazy and because I doubt there's that much use nowadays of the more esoteric parameters like SAA, PM, or DPR, I don't really support them and if the app crashes when you try to use one, I am not that bothered. In 2013, I'm likely to not care very much if the bridge/teleop/hybrid feature gets broken as well.

Bongle,
As always, you have exceeded my expectations. Thanks for getting exactly what I am looking for spelled out so quickly!!:D

The Lucas 06-03-2012 12:45

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Great work as always.
Where do get the data from? FMS Twitter Feed? FRCspy?

Bongle 06-03-2012 14:26

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by The Lucas (Post 1140113)
Great work as always.
Where do get the data from? FMS Twitter Feed? FRCspy?

USFirst, with TheBlueAlliance as a backup*. The bridge/hybrid/teleop stuff requires the USFirst team rankings page to be up.

*I haven't actually tested the TBA backup code in a while, I'm not sure it still works since it is at least 2 years old.

Basel A 06-03-2012 14:28

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
This is awesome. Thank you!

Bongle 07-03-2012 14:21

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
1 Attachment(s)
I've been fairly googlish with my posting of source code, but here's v20's. It's fairly hackish code because I keep patching it with new features each year that I didn't originally envision, so please don't judge me on the quality.

Ether 07-03-2012 14:45

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1140668)
source code ... here's v20's.

Just curious: what are you using LU decomposition for ?



RogerR 07-03-2012 15:11

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139965)
Here's v20. I made it so the overall OPR is also given the coopertition adjustment (coopertition points * 5, assuming that CPs are points you could have gotten if your alliance assigned you to a different bridge), and did a clean-and-build to attempt to fix the 0xc000007b errors people are getting.

Bongle,

I might be doing this wrong, but I seem to be having a problem; whenever I submit a response to the final query (i.e. 'r' for sort teams by rank), it creates two temporary files, then shuts down. A couple years ago, when I fooled around with one of your earlier versions, it worked fine. Now however, apparently I'm doing something wrong. Any idea what I've done?

Bongle 07-03-2012 17:32

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by RogerR (Post 1140686)
Bongle,

I might be doing this wrong, but I seem to be having a problem; whenever I submit a response to the final query (i.e. 'r' for sort teams by rank), it creates two temporary files, then shuts down. A couple years ago, when I fooled around with one of your earlier versions, it worked fine. Now however, apparently I'm doing something wrong. Any idea what I've done?

If you rename the temporary files to .html and try to view them in a browser, they should just be the FIRST results pages. If they aren't, or they look stylistically different than this one, then the parser that extracts the scores might be having trouble.

Quote:

Just curious: what are you using LU decomposition for ?
I believe that's the technique the matrix solving library I use (JAMA) uses. I don't know too many details about it.


All times are GMT -5. The time now is 21:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi