|
||||
| ||||
|
|||||||
| Earlier versions of OOTP: General Discussions General chat about the game... |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
Fights, Cholera, Dying players, It's all here!
I have spent several days adding to the already great injuries your boys can suffer during a season. Back up your default injuries and put this one in there.
Then, watch as the season unfolds and your players not only get the familiar injuries, but life-threatening ones as well. They'll get into scrapes with the manager, other team, the owner, and possibly get into hot water with the commissioner for breaking the cardinal rule of baseball. Just click on the data and then database folders. The text file goes in there. Have fun and let me know what you think! |
|
|
|
|
|
#2 |
|
All Star Reserve
Join Date: May 2003
Location: SkiFree Lodge
Posts: 883
|
Much more gruesome. I like the description of how he was coughing up blood while running around the bases.
|
|
|
|
|
|
#3 |
|
Hall Of Famer
Join Date: Feb 2002
Location: Effingham, IL
Posts: 5,725
|
Does anybody know whether you can go over 365 for length in the injury.text file?
|
|
|
|
|
|
#4 |
|
Minors (Triple A)
Join Date: Oct 2004
Posts: 238
|
thanks Arlie!
|
|
|
|
|
|
#5 |
|
Minors (Double A)
Join Date: Apr 2004
Location: Florida
Posts: 122
|
I'd like to add a few of my own to that..
what is the method for editing the injrues.. I see a bunch of 1's and 0's and commas.. |
|
|
|
|
|
#6 | |
|
Hall Of Famer
Join Date: Dec 2001
Location: Union City, TN
Posts: 6,383
|
Quote:
|
|
|
|
|
|
|
#7 | |
|
Hall Of Famer
Join Date: Mar 2003
Posts: 9,005
|
Quote:
The zeros and one mean something. If you can figure it out, tell me if you are playing with your mashed potatos at suppertime. |
|
|
|
|
|
|
#8 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
This one was one of my favorites....
300,365,0,1,1,1,1,1,1,0,2,Pulled up seemingly injured--The Baseball Commissioner is looking into allegations that he was in a gambling scheme to throw games--Suspended, I can give an explanation of these from what I have learned. We will need this top line in the injury file as reference. This is not an in-depth analysis, just nuts and bolts of how I got the injuries to work. Min Inj Time,Max Inj Time,DTD %,Season End Bool,Career Ending Possible Bool,While Pitching/Throwing Bool,While Running/Sliding Bool,Collision Bool,HBP/Fight Bool,Illness Bool,Body Part Code,Diagnosis,, There are 11 numbers to each injury. After each number there is a comma. The first two are easy. That's the total number of days injured. I believe a random number between the two is generated. The third number is Day to Day percent. You will see this one on some of the more minor injuries. I believe this to be the percent chance that the player can play through the injury. The next two numbers are of utmost importance. These are numbers 4 and 5. If either one of these is a 1, the player has a chance for an either season ending or career ending injury. So, if it looked like this 90,180,0,1,0 That would mean the following: A 90 to 180 day injury with no chance of being day to day. The one in the 4th column means that it could be a season ending injury. The Zero in the last column means that it will not result in a career ending injury. So, a potentially devastating injury would look like this: 255,365,0,1,1 That one would be bad! Alright, let's look at the next few lines...numbers 6 through 9 indicate how the injury happened, be it while throwing, while running or sliding, in a collision at the plate, or in a confrontation with another player--be it hit by pitch or in a fight, So, if you have a 1 in that slot for any of those, that is where on the field the injury would occur. If you wanted a chance for it to happen anywhere, your line would read like this 1,1,1,1 You would likely want to tailor the location to the injury. The 10th digit is supposed to cover illnesses, but it does not seem to fire off any illnesses. A 1 represents an illness and a 2 represents and injury in that line. The last number is, if I am not mistaken, where on the body it takes place. I think it breaks down like this: 1....arm injuries 2....injuries to the legs, chest 3....injuries to the neck or back 4....head injuries Well, that does it. For any of you Bool coders who worked on this, let me know if I made a mistake. This is merely a layman's attempt to break this down. Arlie Last edited by Arlie Latham; 06-09-2006 at 11:05 AM. |
|
|
|
|
|
#9 |
|
Hall Of Famer
Join Date: Mar 2003
Posts: 9,005
|
It's a great interpretation.
|
|
|
|
|
|
#10 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
The fun part for me was writing a few that will add a role playing element to it. If I am playing as a team GM and that rare one for gambling comes up, then I will put that player on the bench, edit his personality ratings etc.,
I also wrote a few positive injuries. For example, one of my injures read as such 3,7,0,0,0,1,0,0,0,0,1,After being taken out by the manager this player stoically accepted the decision and showed leadership qualities to his teammates, Now that guy would get edited in a positive direction in his leadership stat. Hell, I might even give him a bonus next year of $100 dollars. I also added at least ten varieties of more standard injuries by going to a MLB disabled list website. That way, you have a larger body of injuries for the engine to pull from. Last edited by Arlie Latham; 06-09-2006 at 11:30 AM. |
|
|
|
|
|
#11 |
|
Hall Of Famer
Join Date: Jul 2004
Posts: 18,506
|
Arlie, some of it's not quite right. Let's see if this pastes OK:
1.0Injuries Not happy with the run-of-the-mill rotator cuff injuries? Want to pretend that the plague has infested your league? Hey injuries are customizable in OOTPB, too! See Section 12.0 for more information on editing OOTPB text files using Microsoft Excel. 1.1. Where is the Injury File? Just one text file controls the injury data in OOTPB: injuries.txt. This file is located in the data\database directory in your OOTPB installation directory: 1.2. When is the Injury File Used? Like the names files, the injury data is transferred to a file called injury.dat in your saved game directory when the game is created, so after the creation of a game, you cannot modify the injury data being used for that game. Injury data is used, unsurprisingly, any time an injury occurs in your league. 1.3. Understanding the Injury File Like most OOTPB data files, injury.txt is comma-separated, which means it can be edited quite easily. See Section 12.0 for more information about comma-separated files. The injury file stores twelve pieces of data for each injury, as follows: Field # Description 1 The minimum number of days the player will be injured with this injury. 2 The maximum number of days the player will be injured with this injury. 3 This number should be between 0 and 100. If this number is greater than 0, this injury will be considered a "day-to-day" injury. Furthermore, the % of loss in player performance will be around the number entered here. So, if this is set to 10, then the injury is day-to-day, and will cause somewhere around a 10% loss in performance. There are some variables involved, so it may not be exactly 10%. 4 If this is 0, then there is no chance for this injury to be season-ending. If it is 1, there is a chance for the injury to be season-ending. 5 If this is 0, then there is no chance for this injury to be career-ending. If it is 1, there is a chance for the injury to be career-ending. 6 If this is 1, then this injury may occur while the player is pitching or throwing. Otherwise it is 0. 7 If this is 1, then this injury may occur while the player is running or sliding. Otherwise it is 0. 8 If this is 1, then this injury may occur when the player is in a collision. Otherwise it is 0. 9 If this is 1, then this injury may occur when the player is hit by pitch, or is in a fight. Otherwise it is 0. 10 If this is 1, then this injury may occur due to illness. Otherwise it is 0. 11 The body part code is a number from 1 to 4, representing broad categories, as follows: 1 – Arm (from the shoulder to the fingers) 2 – Legs (from the abdomen to the feet) 3 – Back (back, rib cage) 4 – Other (head, illnesses) 12 Description of the injury. Note: The order of the injuries in the injuries.txt file is not important. 1.4. Example: Adding a New Injury Let's say you decide that you want to introduce the possibility that some of your players will contract terminal illnesses. Here's a quick example of how you could do this. Let's create an option of "mononucleosis": 1. Close OOTPB, if it's open. 2. Back up the injuries.txt file in your OOTPB directory. 3. Open injuries.txt. 4. Scroll to the end of the file. Create a new row, and type the following: "15,90," This is saying that players who contract mononucleosis will be out somewhere between 15 and 90 days. Your new row should look like this so far: 15,90, 5. Type the following in your new row: "0,". This is saying that the injury is not a day-to-day injury. Your new row should look like this so far: 15,90,0, 6. Type the following in your new row: "1,0,". This is saying that mononucleosis might be season-ending, but cannot be career-ending. Your new row should look like this so far: 15,90,0,1,0, 7. Type the following in your new row: "0,0,0,0,1,". This is saying that mononucleosis cannot occur in throwing, running, in collisions, or when hit by a pitch. It can only happen due to illness. Your new row should look like this so far: 15,90,0,1,0,0,0,0,0,1, 8. Type the following in your new row: "4,Mononucleosis". This is saying that mononucleosis is part of the body part 4 category ("other"), and that it is called, of course, "Mononucleosis." Your new row should look like this: 15,90,0,1,0,0,0,0,0,1,4,Mononucleosis 9. Save the file and quit. In the next OOTPB game you create, mononucleosis will be an option in your game! |
|
|
|
|
|
#12 |
|
Hall Of Famer
Join Date: Jul 2004
Posts: 18,506
|
Alright, that came out ugly. But, check out how the DTD% works in particular.
|
|
|
|
|
|
#13 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
Great! I was trying to figure this out on my own. I have some reading to do! Maybe I can inflict some George Carlinesque baseball injuries now...
Except I do not believe the illnesses are working, only the injuries. Last edited by Arlie Latham; 06-09-2006 at 12:10 PM. |
|
|
|
|
|
#14 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
Modifying the injury files. I did all of that correctly. I don't know why I wrote 2 for injuries. It's a zero in all the ones I created.
Here is a question for you. Since the injury file is saved to a .dat file, couldn't you just replace that .dat file with one you work on later? I think I will test that theory out now on an older league file I have. |
|
|
|
|
|
#15 | |
|
All Star Starter
Join Date: Nov 2004
Posts: 1,305
|
Quote:
|
|
|
|
|
|
|
#16 |
|
Minors (Double A)
Join Date: Apr 2004
Location: Florida
Posts: 122
|
thanks for your help guys
|
|
|
|
|
|
#17 | |
|
Hall Of Famer
Join Date: Jul 2004
Posts: 18,506
|
Quote:
![]() Please PM me if you find out the answer to this! |
|
|
|
|
|
|
#18 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
No, replacing the .dat file did not work. All that did was erase the existing injuries. When I simmed the next year, it was still reading the old injury file.
That stinks, because I wanted to start playing soon and I have to create a new universe. |
|
|
|
|
|
#19 |
|
Major Leagues
Join Date: Apr 2006
Location: New Jersey
Posts: 448
|
Is an off-the-field injury possible? For example, John Smoltz once burnt his chest while ironing a shirt. If I want to add this to the injury file, what would I do? Below is what seems likely:
2,5,50,0,0,0,0,0,0,0,4,Burnt chest while ironing clothes Would that injury happen off the field? If not, would setting it to an "illness" cause it to happen off the field? Also, Arlie, I'm thinking of making my own injury database and might post it on the board, would you mind if I used some of yours? |
|
|
|
|
|
#20 |
|
Major Leagues
Join Date: Apr 2004
Location: Iowa Cornfields
Posts: 472
|
No, but you could put it for a sliding injury and write....Came up injured while on the basepaths--That foolish stunt of ironing his shirt while wearing it stings now,
Of course you can use my list. I think we could come up with a nice one. As a matter of fact, here is an updated list. I modified someone else's list. About half of these are illnesses. However, you should put some of those in. I have a feeling that a patch down the road will fire those illnesses off. Last edited by Arlie Latham; 06-09-2006 at 03:21 PM. |
|
|
|
![]() |
| Bookmarks |
|
|