NUEVO!! Kitserver 6.4.1.1 (21/03/2007) Vista compatible
Moderator: Moderadores
-
dr13
- Aficionado

- Posts: 32
- Joined: Fri Nov 25, 2005 12:00 am
-
Mitalca
- Goleador

- Posts: 651
- Joined: Fri Dec 31, 2004 12:00 am
y no lo podrias repetir aca?
<img src="http://img266.imageshack.us/img266/2775/forofireho5.png" />
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725
-
dalsimcapo
- RecogePelotas

- Posts: 51
- Joined: Mon Nov 13, 2006 12:00 am
-
semao
- Expulsado

- Posts: 1548
- Joined: Mon May 22, 2006 11:00 pm
- Location: exilio
segun dice dr13 en el foro de soccergaming, la forma de obtener los ids para el map del pro 6 es de esta manera
todos los creditos, van para el, yo no quiero saber nada, solo reproduzco sus palabras. si esto no se puede hacer, pues lo siento, lo borrais y listo, pero creo q puede ser muy util por no andar entrando al juego para ver el id cada vez q se qiera meter una cara
tampoco lo e probado, no se si funcionara
You need PESFAN Editor 6. Open your option file with it. In the menu bar, select Tools -> Make csv stats file...
Select all three options in the right part (Column Headings, Extra Players, Created Players). Then save the csv file in any folder.
Now open a new file in Excel. Select A1, and go to Tools -> Macros -> Visual Basic Editor (I don't know exactly what names the menus have, because i have the spanish Office). Now see the top-left part of the Editor, below the icons, ubicate where it says Page1, Page2..., double click in Page1, it will open the code editor. Copy and paste there this code:
Public Sub ImportTextFile(FName As String, Sep As String)
Dim RowNdx As Integer
Dim ColNdx As Integer
Dim TempVal As Variant
Dim WholeLine As String
Dim Pos As Integer
Dim NextPos As Integer
Dim SaveColNdx As Integer
Application.ScreenUpdating = False
'On Error GoTo EndMacro:
SaveColNdx = ActiveCell.Column
RowNdx = ActiveCell.Row
Open FName For Input Access Read As #1
While Not EOF(1)
Line Input #1, WholeLine
If Right(WholeLine, 1) <> Sep Then
WholeLine = WholeLine & Sep
End If
ColNdx = SaveColNdx
Pos = 1
NextPos = InStr(Pos, WholeLine, Sep)
While NextPos >= 1
TempVal = Mid(WholeLine, Pos, NextPos - Pos)
Cells(RowNdx, ColNdx).Value = TempVal
Pos = NextPos + 1
ColNdx = ColNdx + 1
NextPos = InStr(Pos, WholeLine, Sep)
Wend
RowNdx = RowNdx + 1
Wend
EndMacro:
On Error GoTo 0
Application.ScreenUpdating = True
Close #1
End Sub
Public Sub DoTheImport()
Dim FName As Variant
Dim Sep As String
FName = Application.GetOpenFilename _
(filefilter:="Text Files(*.txt),*.txt,All Files (*.*),*.*")
If FName = False Then
MsgBox "You didn't select a file"
Exit Sub
End If
Sep = InputBox("Enter a single delimiter character.", _
"Import Text File")
ImportTextFile CStr(FName), Sep
End Sub
Now click the "play" button in the standard toolbar. It will show the Open dialog. First where it says to open "text files", select "all files", then search for the first created csv file you saved before. Then it should open a message asking about the "separator". There write "," (without the "") and Accept. Wait some time, and then you should have a table with all option file data, divided by columns. I copied it to another excel file, to have it without macros. Then I inserted a column as the first column, with title "IDs". In this column, simply write 1 in A2, 2 in A3, and fill in all the column A incrementing the numbers, until you get to 5183.
The important thing is that PESFAN Editor makes the csv file ordering it with the player ID, so you can fill those numbers correctly.
I copied to another excel file only these columns: IDs, Name, Club Team.
Now you can for example order all the file by Name, or by Club Team, or even use filters. I applied a Filter in the first row (Data -> Filter -> "autofilter" or "self-filter", don't know the english name). So I can select any team "FC Barcelona" for example, as the Club Team, and it will show all Barça players with their IDs.
This process was long to write, but should take you less than 10 minutes. So you can do it everytime you change a lot of data in the option file, to update it.
todos los creditos, van para el, yo no quiero saber nada, solo reproduzco sus palabras. si esto no se puede hacer, pues lo siento, lo borrais y listo, pero creo q puede ser muy util por no andar entrando al juego para ver el id cada vez q se qiera meter una cara
tampoco lo e probado, no se si funcionara
-
Tristan_9
- Calentando

- Posts: 170
- Joined: Mon Feb 06, 2006 12:00 am
-
Mitalca
- Goleador

- Posts: 651
- Joined: Fri Dec 31, 2004 12:00 am
pues yo lo he hecho sin tanto Visual Basic
una vez q tienes exportado el csv, lo abres con Excel o similar y listo
los jugadores estan ordenados por ID, asi que con solo restarle uno al numero de fila (para compensar la primera fila, que tiene los titulos de las distintas estadisticas) ya tienes el ID de cada uno
lo compare con los IDs que vienen en el Kitserver por defecto, y los jugadores concuerdan (Barthez y Klose)
Igual, todo lo q hice fue basado en la data de Dr13, asi que mis mayores agradecimientos para vos
una vez q tienes exportado el csv, lo abres con Excel o similar y listo
los jugadores estan ordenados por ID, asi que con solo restarle uno al numero de fila (para compensar la primera fila, que tiene los titulos de las distintas estadisticas) ya tienes el ID de cada uno
lo compare con los IDs que vienen en el Kitserver por defecto, y los jugadores concuerdan (Barthez y Klose)
Igual, todo lo q hice fue basado en la data de Dr13, asi que mis mayores agradecimientos para vos
<img src="http://img266.imageshack.us/img266/2775/forofireho5.png" />
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725
-
dalsimcapo
- RecogePelotas

- Posts: 51
- Joined: Mon Nov 13, 2006 12:00 am
-
Mitalca
- Goleador

- Posts: 651
- Joined: Fri Dec 31, 2004 12:00 am
es lo q yo hice, elimine la primera fila y todas las columnas con los stats, asi me queda lo mas limpio posible
<img src="http://img266.imageshack.us/img266/2775/forofireho5.png" />
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725
<img src="http://img251.imageshack.us/img251/2875/forodreamlz7.png" />
Mi post de banderas:
http://www.pesoccerworld.com/modules.php?name=Forums&file=viewtopic&t=45725



