09-05-2020, 11:36 PM
Actualización sobre el proyecto
Como podréis ver, he encontrado todos los patrones del archivo PKF y soy capaz de extraer todos los datos (aunque hay algún que dato el cual desconozco y los he llamado unknownXX.
PD: Es una pena que los del FIFA ya no actualicen la base de datos del FUT. Los datos todavía se pueden descargar, pero Hazard esta en el Chelsea ...
Código:
# Length bytes:
* ../dat/pcf0060/DBDAT/EQ022022.PKF: 3629752
# Parse teams:
* ../dat/pcf0060/DBDAT/EQ022022.PKF:
[ T { index = 1
, tid = 1964
, unknown01 = 525
, unknown02 = 0
, kind = False
, name = "F.C. Barcelona"
, stadium = "Camp Nou"
, country = 22
, unknown03 = 41
, fullname = "Fútbol Club Barcelona"
, capacity = 108428
, standing = 0
, width = 72
, length = 107
, founded = 1899
, built = Just 1957
, members = Just 104000
, president = Just "Josep Lluís Núñez Clemente"
, budget = Just 12434
, budgetpro = Just 1000
, sponsor = Just "NO TIENE"
, supplier = Just "KAPPA"
, reserve = Just 28
, stats =
Just
T { unknown00 = 65535
, unknown01 = 3
, lastdecade = [ 6 , 2 , 3 , 1 , 1 , 1 , 1 , 4 , 3 , 2 ]
, seasons = 66
, matches = 2002
, win = 1091
, draw = 414
, gf = 4122
, ga = 2380
, points = 2646
, champion = 14
, runnersup = 19
, lastseason =
[ 3
, 3
, 2
, 2
, 1
, 2
, 1
, 1
, 1
, 1
, 1
, 1
, 1
, 2
, 2
, 3
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
, 2
]
, uefa = ( 20 , 4 )
, cup = ( 92 , 23 )
, championsleague = ( 8 , 1 )
, cupwinnerscup = ( 9 , 4 )
, supercup = ( 9 , 5 )
, intercontinental = ( 1 , 0 )
, eufasupercup = ( 4 , 1 )
}
, formation =
T [ ( 1
, P { area = ( ( 0 , 66 ) , ( 42 , 66 ) )
, defence = ( 0 , 88 )
, offence = ( 0 , 88 )
}
)
, ( 2
, P { area = ( ( 0 , 117 ) , ( 250 , 81 ) )
, defence = ( 35 , 147 )
, offence = ( 159 , 165 )
}
)
, ( 3
, P { area = ( ( 0 , 0 ) , ( 181 , 100 ) )
, defence = ( 34 , 43 )
, offence = ( 122 , 48 )
}
)
, ( 4
, P { area = ( ( 16 , 30 ) , ( 220 , 138 ) )
, defence = ( 64 , 88 )
, offence = ( 170 , 93 )
}
)
, ( 5
, P { area = ( ( 0 , 41 ) , ( 160 , 110 ) )
, defence = ( 30 , 88 )
, offence = ( 118 , 93 )
}
)
, ( 6
, P { area = ( ( 0 , 0 ) , ( 245 , 78 ) )
, defence = ( 81 , 43 )
, offence = ( 193 , 29 )
}
)
, ( 7
, P { area = ( ( 78 , 110 ) , ( 239 , 87 ) )
, defence = ( 117 , 156 )
, offence = ( 256 , 124 )
}
)
, ( 8
, P { area = ( ( 34 , 96 ) , ( 283 , 101 ) )
, defence = ( 91 , 131 )
, offence = ( 226 , 140 )
}
)
, ( 9
, P { area = ( ( 106 , 38 ) , ( 212 , 106 ) )
, defence = ( 140 , 95 )
, offence = ( 298 , 88 )
}
)
, ( 10
, P { area = ( ( 72 , 46 ) , ( 245 , 99 ) )
, defence = ( 97 , 93 )
, offence = ( 253 , 88 )
}
)
, ( 11
, P { area = ( ( 62 , 0 ) , ( 255 , 95 ) )
, defence = ( 117 , 20 )
, offence = ( 257 , 45 )
}
)
]
, tactics =
T { possession = 70
, counter = 57
, playstyle = Attacking
, tackling = Medium
, coverage = ManToMan
, clearance = Short
, preasure = Midfield
}
, staff =
[ M (E C { mid = 1069 , name = "Van Gaal" }
D { fullname = "Aloysius Paulus Maria Van Gaal"
, unknown02 = 1
, unknown03 = 25
, tactics = "…"
, honours = "…"
, miscellaneous = "…"
, lastseason = "…"
, managercareer = "…"
, unknown04 = 3
, playercareer = "…"
, statements = "…"
})
, P (E C { pid = 3595
, number = 13
, name = "Hesp"
, fullname = "Ruud HESP"
, index = 1
, origin = 1
, positions = [ 1 ]
, country = 27
, skin = 1
, hair = 6
, position = 0
, birthday = ( 31 , 10 , 1965 )
, height = 194
, weight = 93
, pace = 78
, stamina = 79
, aggression = 77
, skill = 78
, finishing = 19
, dribbling = 22
, passing = 18
, shooting = 23
, tackling = 22
, goalkeeping = 85
}
D { unknown00 = 27
, born = "Bussum (Holanda)"
, fromteam = "Roda, HOL (97)"
, nationalteam = "0"
, unknown01 = 1
, unknown02 = 6400
, features = "…"
, honours = "…"
, intcaps = "…"
, miscellaneous = "…"
, lastseason = "…"
, career = "…"
})
…
(todos los equipos, entrenadores y jugadores (con todo el texto de la base de datos)
…
, P (E C { pid = 17178
, number = 19
, name = "Usandi"
, fullname = "Jon USANDIzaga Beldarraín"
, index = 19
, origin = 1
, positions = [ 9 , 13 , 14 , 17 ]
, country = 22
, skin = 1
, hair = 6
, position = 3
, birthday = ( 15 , 1 , 1979 )
, height = 176
, weight = 72
, pace = 84
, stamina = 89
, aggression = 87
, skill = 80
, finishing = 77
, dribbling = 86
, passing = 86
, shooting = 82
, tackling = 76
, goalkeeping = 21
}
D { unknown00 = 22
, born = "-"
, fromteam = "Real Sociedad"
, nationalteam = "0"
, unknown01 = 1
, unknown02 = 6400
, features = "x"
, honours = "x"
, intcaps = "x"
, miscellaneous = "x"
, lastseason = "x"
, career = "ND,ND,ND,ND,ND\r\n"
})
]
}
]
Como podréis ver, he encontrado todos los patrones del archivo PKF y soy capaz de extraer todos los datos (aunque hay algún que dato el cual desconozco y los he llamado unknownXX.
PD: Es una pena que los del FIFA ya no actualicen la base de datos del FUT. Los datos todavía se pueden descargar, pero Hazard esta en el Chelsea ...