Hi,
Ich bin dabei mir eine Koordinaten Datenbank für das Spiel Spacepioneers zu schreiben. Den Parser hab ich schon fast fertig und die Werte werden in eine Ini Datei eingetragen.
Das Ganze sieht nun so aus:
236:28: 2=
236:28: 3=
236:28: 4=
236:28: 5=
236:28: 6=
236:28: 7=
236:28: 8=
236:28: 9=
236:28: 10= AYSXDC (i) Flotte: 0
236:28: 11=
236:28: 12= Lord Richi Flotte: 88240
236:28: 13=
236:28: 14=
236:28: 15=
236:28: 16=
237:28: 1=
237:28: 2=
237:28: 3=
237:28: 4=
237:28: 5=
237:28: 6=
237:28: 7=
237:28: 8= Sybille (u) Flotte: 5916816
237:28: 9=
237:28: 10=
237:28: 11=
237:28: 12=
Nun will ich z.B. einen Spieler suchen und will das die ganze Zeile angezeigt wird damit ich auch die Flottenpunkte usw. sehe auserdem muss das ganze inifile durchsucht werden da ein Spieler mehrere Koordinaten besitzt und ich alle sehen will. Eine suche wie z.b. Zeige alle Spieler unter 1.000.000 Flottenpunkte soll auch noch hinzukommen.
Leider habe ich Derzeit überhaupt keinen Ansatz wie ich das schreiben soll. Wie kann ich nach einen Namen suchen und dann die ganze Zeile z.B. in der Console ausgeben?