|
||||
| ||||
|
|
#1 |
|
Hall Of Famer
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,640
|
So who can make a jersey number generator?
One that generate random numbers in an excel file that stresses number 1-55 with a few (but not many #'s) exceeding 55?
If you can I'd love to see it. |
|
|
|
|
#2 |
|
Hall Of Famer
Join Date: Jun 2004
Posts: 4,332
|
please make it smart enough so that a number isnt on a team more than once. thank you.
__________________
2 Wild Cards, 11 Division Champs, 4 League Champs, 3 World Champs, and 3 Best GM awards Baseball Maelstrom - New York Mets - 180-149 .547 Corporate League Baseball - Coke Buzz - 889-649 .578 Western Hemisphere Baseball League - Santiago Saints - 672-793 .459 Record - 2428-2271 .517 |
|
|
|
|
#3 |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
Something like this? There's a readme sheet but the gist is it will give you 2,500 random numbers with most results in the 1-55 range with a macro that will produce 25 unique results for a team.
*EDIT* See post #7 for the file. I want to say thank you to blueturf as I borrowed shamelessly from his origin maker spreadsheet to form the guts of this. I hope you don't mind. Last edited by gubaru; 06-18-2005 at 11:22 PM. |
|
|
|
|
#4 | |
|
Hall Of Famer
Join Date: Jun 2004
Posts: 4,332
|
Quote:
![]() is there anything spreadsheet/database/programming/computer related you cant do? |
|
|
|
|
|
#5 | |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
Quote:
|
|
|
|
|
|
#6 |
|
Hall Of Famer
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,640
|
Good Times. Thanks.
|
|
|
|
|
#7 |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
I played around with this a little more and modified it to use the macro for all processing and prompt for both the total jersey #s needed and the unique #s needed. If you don't want to generate unique #s, answer 0 to that question.
This should work a little better for leagues with more than 2500 players or a non-standard roster size. If you'd prefer not to use the macro, I attached a ...nm (no macro) version as well that only generates 2500 #s with no built-in option for unique numbers. Last edited by gubaru; 06-25-2005 at 12:07 AM. |
|
|
|
|
#8 | |
|
Hall Of Famer
Join Date: Jan 2004
Location: The Real Northern California
Posts: 2,488
|
This is probably a stupid question but where do you paste it into the .csv file for ootp so that you get 25 unique numbers for each team.
__________________
Quote:
|
|
|
|
|
|
#9 | |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
Quote:
Last edited by gubaru; 06-19-2005 at 10:17 PM. |
|
|
|
|
|
#10 |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
Since the above process is kind of a PITA, I reworked the file to include an option to automatically update the players_general.csv file with unique jersey numbers for all players on major league rosters. It renames the players_general.csv to a .txt file; so, you wont lose heights of 6' 0". For the process to work three things must be done:
* players_general.csv must be exported. * players.csv must be exported using the BOSI exporter. * you must know how many players are in the league. The file is attached to post #7 above. I ran through this a few times and it looks to be working correctly. If you see any problems or errors, let me know. |
|
|
|
|
#11 |
|
Hall Of Famer
Join Date: Jun 2004
Posts: 4,332
|
the new version of this mod is great, Jason. it makes the tedious task of redoing numbers a breeze. sure did come along way in a short time. Thanks a million. a question....when you DO automatically generate unique # for each team, the last question asks, "Unique #". does this get answered true/false like the rest or can we put in an actual # of unique # we want for each team? ie. a 22-man Major league roster or filling the 40-man with unique # a comment...you might want to make a note in the readme that says you have to reimport the players_general.csv to get the new numbers to show up
Last edited by disposableheros; 06-21-2005 at 11:05 PM. |
|
|
|
|
#12 | |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
Quote:
I'm tinkering a little more with this. So far, I've added some error handling to take care of common problems (players_general.csv open when it tries to rename it, etc.), consolidated the message boxes into one message box with some checkboxes and a couple text fields and I believe I've got everything working to allow the user to set their own weights for the numbers. I'm trying to work out a way to allow split ranges (1-25,33-40) and to assign unique numbers to players on all roster levels (A, AA, AAA and ML). |
|
|
|
|
|
#13 |
|
Major Leagues
Join Date: Apr 2004
Location: Camp Hill, PA
Posts: 326
|
I've made a couple more changes to this and the new version will be the last for a while. The changes are:
* While there was no code in the no macro version, I forgot to delete the module. I deleted it so that the macro message no longer shows up. * Redesigned the interface to put everything on a couple forms instead of multiple message boxes. * Allow custom weights to be set for the jersey #s. There are three weighting levels and split ranges are allowed. * Assign unique number to all rosters (A, AA, AAA and ML). * Check for extra commas in the name and/or origin fields and diplay the player causing the problem in a message box. There is a readme sheet with instructions. Any questions or problems, let me know. |
|
|
|
|
#14 |
|
Hall Of Famer
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,640
|
If anyone has a problem with the heights not formatting properly (because they don't follow instructions, like me) this will help.
http://www.ootpdevelopments.com/boar...ad.php?t=70316 |
|
|
| Bookmarks |
|
|