Home | Webstore
Latest News: OOTP 27 Buy Now - FHM 12 Available - OOTP Go! 27 Available

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: General Discussions

Earlier versions of OOTP: General Discussions General chat about the game...

Reply
 
Thread Tools
Old 06-09-2006, 08:02 AM   #1
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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!
Attached Files
File Type: txt injuries.txt (12.8 KB, 329 views)
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 09:21 AM   #2
Mr.Opinion
All Star Reserve
 
Mr.Opinion's Avatar
 
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.
__________________
Mr.Opinion is offline   Reply With Quote
Old 06-09-2006, 09:48 AM   #3
andymac
Hall Of Famer
 
andymac's Avatar
 
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?
__________________
June Madness: Links

FTB: andymac
andymac is offline   Reply With Quote
Old 06-09-2006, 09:54 AM   #4
BravesSince66
Minors (Triple A)
 
BravesSince66's Avatar
 
Join Date: Oct 2004
Posts: 238
Thumbs up Great Stuff

thanks Arlie!
BravesSince66 is offline   Reply With Quote
Old 06-09-2006, 09:56 AM   #5
BigLou
Minors (Double A)
 
BigLou's Avatar
 
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..
BigLou is offline   Reply With Quote
Old 06-09-2006, 10:04 AM   #6
Cooleyvol
Hall Of Famer
 
Cooleyvol's Avatar
 
Join Date: Dec 2001
Location: Union City, TN
Posts: 6,383
Quote:
Originally Posted by BigLou
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..
Read the top line of the file. It tells you the sequence of numbers and their meanings.
Cooleyvol is offline   Reply With Quote
Old 06-09-2006, 10:04 AM   #7
Raidergoo
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Posts: 9,005
Quote:
Originally Posted by BigLou
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..
That will be explained soon, it just has not been written up yet.

The zeros and one mean something. If you can figure it out, tell me if you are playing with your mashed potatos at suppertime.
Raidergoo is offline   Reply With Quote
Old 06-09-2006, 11:02 AM   #8
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 11:18 AM   #9
Raidergoo
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Posts: 9,005
It's a great interpretation.
Raidergoo is offline   Reply With Quote
Old 06-09-2006, 11:27 AM   #10
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 11:34 AM   #11
battists
Hall Of Famer
 
battists's Avatar
 
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 #
Value
Description
1
Minimum Injury Time
The minimum number of days the player will be injured with this injury.
2
Maximum Injury Time
The maximum number of days the player will be injured with this injury.
3
DTD %
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
Season Ending Boolean
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
Career Ending Possible Boolean
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
While Pitching/Throwing Boolean
If this is 1, then this injury may occur while the player is pitching or throwing. Otherwise it is 0.
7
While Running/Sliding Boolean
If this is 1, then this injury may occur while the player is running or sliding. Otherwise it is 0.
8
Collision Boolean
If this is 1, then this injury may occur when the player is in a collision. Otherwise it is 0.
9
HBP/Fight Boolean
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
Illness Boolean
If this is 1, then this injury may occur due to illness. Otherwise it is 0.
11
Body Part Code
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
Diagnosis
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!
battists is offline   Reply With Quote
Old 06-09-2006, 11:34 AM   #12
battists
Hall Of Famer
 
battists's Avatar
 
Join Date: Jul 2004
Posts: 18,506
Alright, that came out ugly. But, check out how the DTD% works in particular.
battists is offline   Reply With Quote
Old 06-09-2006, 12:06 PM   #13
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 12:27 PM   #14
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 02:05 PM   #15
james17
All Star Starter
 
james17's Avatar
 
Join Date: Nov 2004
Posts: 1,305
Quote:
Originally Posted by Arlie Latham
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.
Excellent question. I'd be interested to know if that works.
james17 is offline   Reply With Quote
Old 06-09-2006, 02:09 PM   #16
BigLou
Minors (Double A)
 
BigLou's Avatar
 
Join Date: Apr 2004
Location: Florida
Posts: 122
thanks for your help guys
BigLou is offline   Reply With Quote
Old 06-09-2006, 02:13 PM   #17
battists
Hall Of Famer
 
battists's Avatar
 
Join Date: Jul 2004
Posts: 18,506
Quote:
Originally Posted by Arlie Latham
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.
Now, that's an excellent idea. I do know that the game will fail if you delete the .dat. I tried that in the vain hope that it would say, "Hey, it's not here, I'd better generate a new one."

Please PM me if you find out the answer to this!
battists is offline   Reply With Quote
Old 06-09-2006, 02:38 PM   #18
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Arlie Latham is offline   Reply With Quote
Old 06-09-2006, 03:00 PM   #19
HoustonGM
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?
HoustonGM is offline   Reply With Quote
Old 06-09-2006, 03:15 PM   #20
Arlie Latham
Major Leagues
 
Arlie Latham's Avatar
 
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.
Attached Files
File Type: txt Additional Injuries.txt (3.6 KB, 99 views)

Last edited by Arlie Latham; 06-09-2006 at 03:21 PM.
Arlie Latham is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:31 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments