|
|||||||
| OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Hall Of Famer
Join Date: Mar 2002
Location: Tampa, FL USA
Posts: 4,276
Thanks: 26
Thanked 43x in 29 posts
|
How to tell if a player is retired in DB Dump
I would think this would show up in the status field, but for me, the status is set to zero for every player. Anyone know how to tell if a player is retired?
__________________
When is good enough, good enough? |
|
|
|
|
|
#2 (permalink) |
|
Hall Of Famer
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,870
Thanks: 0
Thanked 22x in 14 posts
|
Good luck in finding out, I asked this question over 3 weeks ago and never got an answer.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
|
|
|
|
|
|
#3 (permalink) |
|
Hall Of Famer
Join Date: Jul 2002
Location: Detroit, MI
Posts: 3,494
Thanks: 41
Thanked 45x in 24 posts
|
I have yet to figure it out as well. Hopefully in time when most of the bugs are squashed out, Markus will be able to explain some of the fields in these tables.
__________________
Useful OOTP Links: Webstore -- Download -- Download (OLD VERSIONS) -- Tech Support -- License Problems -- Newsletters -- Padresfan's Mod Site -- OOTP Merchandise |
|
|
|
|
|
#4 (permalink) |
|
Hall Of Famer
Join Date: Mar 2003
Location: Location:
Posts: 3,411
Thanks: 0
Thanked 0x in 0 posts
|
If you're just using the 'players' table, retired players have no skills in certain areas, at least in the 'Players' table. When I run DB queries, I use 'running ratings', which for retired players are always set to 0. All active players will have running ratings >0, so a simple conditional (where running_rating_1>0) should weed out the retired.
As for the other tables, which I presume you're more interested in, I've no idea. Sorry. |
|
|
|
|
|
#5 (permalink) | |
|
Hall Of Famer
Join Date: Mar 2002
Location: Tampa, FL USA
Posts: 4,276
Thanks: 26
Thanked 43x in 29 posts
|
Quote:
__________________
When is good enough, good enough? |
|
|
|
|
|
|
#6 (permalink) |
|
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 6,468
Thanks: 146
Thanked 1,088x in 415 posts
|
There should be a flag "retired" in the player table... Markus and I are currently in London but I'll check that out tomorrow! It will be in the patch 2.
__________________
Andreas Raht andreas@ootpdevelopments.com Out of the Park Developments Out of the Park Baseball Development Team Title Bout Development Team |
|
|
|
|
|
#7 (permalink) | |
|
Hall Of Famer
Join Date: Jul 2002
Location: Detroit, MI
Posts: 3,494
Thanks: 41
Thanked 45x in 24 posts
|
Quote:
__________________
Useful OOTP Links: Webstore -- Download -- Download (OLD VERSIONS) -- Tech Support -- License Problems -- Newsletters -- Padresfan's Mod Site -- OOTP Merchandise |
|
|
|
|
|
|
#8 (permalink) |
|
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 6,468
Thanks: 146
Thanked 1,088x in 415 posts
|
I've just added the "retired" flag to the SQL dump player table for patch 2. It was actually missing! Also several other fields have been added. The player table has been split into 4 tables now.
__________________
Andreas Raht andreas@ootpdevelopments.com Out of the Park Developments Out of the Park Baseball Development Team Title Bout Development Team |
|
|
|
|
|
#9 (permalink) | |
|
Hall Of Famer
Join Date: Mar 2002
Location: Tampa, FL USA
Posts: 4,276
Thanks: 26
Thanked 43x in 29 posts
|
Quote:
__________________
When is good enough, good enough? |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|