|
|||||||
| Earlier versions of OOTP: General Discussions General chat about the game... |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Injuries in OOTP
I've been experimenting with modifications to injuries.txt, hoping to produce an injuries database that more closely models modern-day MLB. I've run into a few difficulties, and I'm hoping someone can help-
-are there injuries that occur in real life which aren't in the current database? I've included off-field incidents- steroid suspensions, dui arrests, etc- but haven't looked into on-field injuries; -how exactly are diagnoses and descriptions linked? It seems if I create a new injury which is linked to a particular description in injuries.txt, the diagnosis actually ends up being used for other descriptions as well. So I end up with situations like 'Player X was injured in a car accident. Diagnosis: Suspension for corked bat'. This also seems to happen with on-field injuries; -is there any way to control the frequency of individual injuries? I want to include suspensions for corking bats and doctoring baseballs, but if I use these as short-term injuries that happen during a pitch, they occur far too often- they become as likely as any other mild in-pitch injury; -is there any reason why some entries in the original injuries.txt file have an extra comma at the end, and should it matter? -does anyone know what happens to injuries.txt after game creation? The customization guide mentions an injuries.dat file, but no such file exists. Any help or suggestions appreciated! |
|
|
|
|
|
#2 (permalink) |
|
Global Moderator
Join Date: Feb 2006
Location: Here
Posts: 6,113
Blog Entries: 3
Thanks: 38
Thanked 309x in 179 posts
|
I have found an injuries.dat, but it was from Rolen's OOTP 2006 set, and it doesn't match the structure of the injuries.txt file.
And if you click help after it claims to have reimported the injuries.txt you get sent to a completely different help page (think it was to do with releasing a player) |
|
|
|
|
|
#3 (permalink) |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Yes, as I understand an injuries.dat file was generated on game creation in OOTP 2006, but doesn't seem to exist as a separate file in '07. Apparently the format of injuries.txt was changed slightly from '06 as well- it may be that one entry was added per line- or at least that's what I read in a thread in the Mods forum.
|
|
|
|
|
|
#4 (permalink) | ||
|
All Star Reserve
Join Date: Jun 2006
Posts: 818
Thanks: 0
Thanked 0x in 0 posts
|
Speculation follows...
Quote:
You'd probably have to remove all the other off-field injuries that are currently set to type 6 (undisclosed), or reassign them to one of the other injury types. Alternatively... Quote:
|
||
|
|
|
|
|
#5 (permalink) | |
|
Hall Of Famer
Join Date: Aug 2006
Location: Yankee Stadium, back in 1998.
Posts: 8,364
Thanks: 442
Thanked 651x in 435 posts
|
Quote:
injury log, thanks for the tips in that other thread, especially "Duplicating off-field injuries in the text file is the best way to control the relative frequency of different injury types." Will try that, along with making most of them not serious injuries, but that does not do my current game any good. I am hoping that the next patch (of which there has been recent mention) will have the re-import feature fixed. |
|
|
|
|
|
|
#6 (permalink) |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
I should point out that the re-import half works; while it doesn't erase the injuries from the previous database, it does add in the new ones from the file you import. I'm not sure if re-importing has any effect on overall injury frequency, but I would be surprised if it did, so you could probably use the re-import to dilute the pool of serious off-field injuries, if that's your goal. I'll check into this- I'm planning to run a few more tests so I can really figure things out, and I'll post results. I'll also investigate how the game handles exact duplicate lines in the .txt file; it may ignore them (I've always used slightly different text for each line, just in case). I also expect there's a workaround for the re-import bug; there must be a maximum number of injuries that can be stored in the database, so if you re-import with a long enough injury list, you can probably force the old ones out.
Zeyes, a belated thanks for your helpful suggestions- I think I can get what I want by removing entire categories of injury from the off-field file. I still have two questions, if anyone can help- -does anyone know where the injuries go, since the injury.dat file doesn't seem to exist? -does anyone have suggestions for injuries missing from OOTP that would belong in a realistic modern-day injury database? Halladay reminded me of appendectomies... The intention had been to produce an injury file for optional use with Cubbyfan's roster set, but this is predicated on a fix of the re-import function... Last edited by injury log; 06-13-2007 at 07:25 PM. |
|
|
|
|
|
#7 (permalink) |
|
Hall Of Famer
Join Date: Aug 2006
Location: Yankee Stadium, back in 1998.
Posts: 8,364
Thanks: 442
Thanked 651x in 435 posts
|
Just thinking out loud, and seeing if you have a comment about the procedure. Following what Zeyes said about linking the two injury files through the booleans, I notice that the off field injuries file has no linkage to the illness boolean. I am guessing that is probably because none of the illnesses in injuries.txt are serious enough to warrant mention during the off-season; the only ones that I see with a 1 for that boolean are migraine, cold, bronchitis, strep throat, flu.
Pursuant to your suggestion for introducing more serious off-season illnesses like appendicitis, I am thinking of introducing another section of illness triggers in off_field_injuries.txt with the number 5 leading off each entry; I think this will refer to illnesses in injuries.txt. Then, I would need some serious illnesses under that boolean in that file; I will wait to see if you get any response to your request for suggestions. By the way, do you (or anyone) know what happens with off-season injury type 6, undisclosed? Is that just randomly linked to one boolean or another in injuries.txt? There is an undisclosed injury in that file as well, but it's all zeroes so I don't think that would do anything. |
|
|
|
|
|
#8 (permalink) | |
|
All Star Reserve
Join Date: Jun 2006
Posts: 818
Thanks: 0
Thanked 0x in 0 posts
|
Quote:
"was abducted by aliens" -> "suffered an undisclosed injury", rather than "was abducted by aliens" -> "suffered a hyperextended elbow" That said, I have no idea how/whether that's currently handled by the game, since those zeros in the undisclosed injury line do look odd. |
|
|
|
|
|
|
#9 (permalink) | |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Quote:
I'll get back to the first part of your question later- must make roster moves, my closer just got injured for the season! Last edited by injury log; 06-13-2007 at 09:19 PM. |
|
|
|
|
|
|
#10 (permalink) |
|
All Star Reserve
Join Date: Jun 2006
Posts: 818
Thanks: 0
Thanked 0x in 0 posts
|
It looks like undisclosed injuries can take on pretty much any length. In my 15-year sim, 148 players (out of about 15,000) suffered one of them, and here are the observed duration frequencies as per the player history files:
Code:
8 3 days 8 4 days 9 5 days 10 6 days 24 1 week 17 1-2 weeks 35 2 weeks 2 2-3 weeks 12 3 weeks 6 4 weeks 2 5 weeks 1 8 weeks 1 8-9 weeks 2 2 months 3 2-3 months 1 3 months 1 4 months 2 7 months 2 8 months 2 13 months |
|
|
|
|
|
#11 (permalink) | |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Quote:
[EDIT- Thanks Zeyes, I guess they can be of long duration. I'd think then that it's random, but within the same distribution the game ordinarily uses for injury severity. Surprising to see what must be season-ending undisclosed injuries in your results, given that the Boolean is set to 0...] I'm curious how undisclosed injuries affect ratings. I've assumed, perhaps incorrectly, that body part codes are linked with certain sets of ratings (so leg injuries might affect speed, while arm injuries would not). If that's the case, I wonder what effect, if any, an undisclosed injury has. Last edited by injury log; 06-13-2007 at 09:36 PM. |
|
|
|
|
|
|
#12 (permalink) |
|
Hall Of Famer
Join Date: Aug 2006
Location: Yankee Stadium, back in 1998.
Posts: 8,364
Thanks: 442
Thanked 651x in 435 posts
|
This supports what you guys are saying. Basically, type 6 undisclosed off-season events just result in down time of random length as Zeyes showed. But, this begs the question that injury log brought up; would these non-specific injuries ever affect ratings, or are they just "time off"?
This has been a very interesting discussion. Thanks, guys. |
|
|
|
|
|
#13 (permalink) |
|
All Star Reserve
Join Date: Jun 2006
Posts: 818
Thanks: 0
Thanked 0x in 0 posts
|
Yes, I was wondering about that, too...the 6+ months ones certainly look like season-ending injuries under normal circumstances. Maybe it's the lack of a defined maximum duration that causes it?
|
|
|
|
|
|
#14 (permalink) |
|
Hall Of Famer
Join Date: Aug 2006
Location: Yankee Stadium, back in 1998.
Posts: 8,364
Thanks: 442
Thanked 651x in 435 posts
|
Maybe the zeros in the undisclosed injury entry in injuries.txt are just placeholders, and the undisclosed injury events in off_field_injuries.txt just generate a random amount of time off by design.
|
|
|
|
|
|
#15 (permalink) | |
|
All Star Reserve
Join Date: Jun 2006
Posts: 818
Thanks: 0
Thanked 0x in 0 posts
|
Quote:
![]() Edit: Hmm, now that I've written that...does anyone know exactly which settings "connect" an injury line to the type 6 off-field events? I see two possibilities...Body Part Code = 0, or all five injury type booleans = 0. Last edited by Zeyes; 06-13-2007 at 10:15 PM. |
|
|
|
|
|
|
#16 (permalink) | |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Quote:
I'm almost certain illnesses from injuries.txt happen in the off-season, incidentally, though thinking about it, there's a small chance I added them to the off-field database. I have noticed players in mid-January who are day-to-day with the flu. Thanks for re-opening this thread- it seemed to disappear quickly the first time around. |
|
|
|
|
|
|
#17 (permalink) | |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Quote:
|
|
|
|
|
|
|
#18 (permalink) |
|
Hall Of Famer
Join Date: Aug 2006
Location: Yankee Stadium, back in 1998.
Posts: 8,364
Thanks: 442
Thanked 651x in 435 posts
|
You and Zeyes mentioned injuries.dat again; going back to your earliest posts here, we have established that that file does not exist in 2007 and we are still unsure where injuries data is stored (my guess is world.dat). You mean injuries.txt, correct?
Also, I am happy to report that if you create a new game from a saved quick-start, the injury data is fresh. I was concerned that injuries were saved with the quick-start and could not be changed (or re-imported until that feature is fixed). I experimented by eliminating all injuries except the first one in the file, bruised cheekbone. When I started a new game with my saved quick-start, all the injuries were bruised cheekbones. |
|
|
|
|
|
#19 (permalink) |
|
Global Moderator
Join Date: Feb 2006
Location: Here
Posts: 6,113
Blog Entries: 3
Thanks: 38
Thanked 309x in 179 posts
|
It's not stored in world.dat unless it is stored in some really bizarre format that doesn't involve text strings. I've pulled apart and decoded world.dat and there's nothing injury like in there.
|
|
|
|
|
|
#20 (permalink) |
|
Hall Of Famer
Join Date: Apr 2007
Location: Toronto
Posts: 4,714
Thanks: 189
Thanked 500x in 258 posts
|
Good to know about the quickstart; that gives a simple workaround for the reimport issue. And of course you're right, I didn't mean injuries.dat- I meant to refer to the injury database, wherever that is! redsoxford looked at world.dat and didn't find injuries there either, as he reported in this thread:
No Rosters? ... Let's Get to Work. So it's still a mystery... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|