Dakitess a écrit :Sans rire ça ne vous exciterait pas de partager au sujet de nos vaillants kerbonautes qui nous suivraient de Save en Save, auraient leur propre historique, pouvoir montrer des fiches ou même mieux, de belles infographies générées au fur et à mesure par le jeu ? Avec même un système de screenshots qui prendrait des images à des moments clés (déclenché par exemple à moins de 100m de la surface d'un astre) pour nourrir l'infographie en question et permettre de conserver des souvenirs et tout...
ça c'est probablement facile à faire.
La sauvegarde conserve pour chaque kerbal un objet CAREER_LOG, qui tiens le compte du nombre de vols effectués, et le détails des opérations (fly-by, orbit, landing, EVA, flag...) ainsi que l'astre relatif.
Voici un exemple extrait de ma sauvegarde :
Code : Tout sélectionner
KERBAL
{
name = Valentina Kerman
gender = Female
type = Crew
brave = 0.55
dumb = 0.4
badS = True
tour = False
state = Available
ToD = 0
idx = 1
CAREER_LOG
{
flight = 26
0 = ExitVessel,Kerbin
0 = Land,Kerbin
0 = Flight,Kerbin
0 = BoardVessel,Kerbin
0 = Recover
1 = Flight,Kerbin
1 = Land,Kerbin
1 = ExitVessel,Kerbin
1 = BoardVessel,Kerbin
1 = Recover
2 = Flight,Kerbin
2 = Land,Kerbin
2 = ExitVessel,Kerbin
2 = BoardVessel,Kerbin
2 = Recover
3 = Flight,Kerbin
3 = Land,Kerbin
3 = ExitVessel,Kerbin
3 = BoardVessel,Kerbin
3 = Recover
4 = Flight,Kerbin
4 = Land,Kerbin
4 = ExitVessel,Kerbin
4 = BoardVessel,Kerbin
4 = Recover
5 = Flight,Kerbin
5 = Suborbit,Kerbin
5 = Land,Kerbin
5 = Recover
6 = Flight,Kerbin
6 = Suborbit,Kerbin
6 = Orbit,Kerbin
6 = Land,Kerbin
6 = Recover
7 = Flight,Kerbin
7 = Suborbit,Kerbin
7 = Orbit,Kerbin
7 = Land,Kerbin
7 = ExitVessel,Kerbin
7 = BoardVessel,Kerbin
7 = Recover
8 = Flight,Kerbin
8 = Suborbit,Kerbin
8 = Land,Kerbin
8 = Recover
9 = Land,Kerbin
9 = Flight,Kerbin
9 = Suborbit,Kerbin
9 = Recover
10 = Flight,Kerbin
10 = Suborbit,Kerbin
10 = Orbit,Kerbin
10 = Flyby,Mun
10 = Escape,Mun
10 = Flyby,Kerbin
10 = Land,Kerbin
10 = Recover
11 = Flight,Kerbin
11 = Suborbit,Kerbin
11 = Orbit,Kerbin
11 = Land,Kerbin
11 = Recover
12 = Flight,Kerbin
12 = Suborbit,Kerbin
12 = Orbit,Kerbin
12 = Land,Kerbin
12 = ExitVessel,Kerbin
12 = BoardVessel,Kerbin
12 = Recover
13 = Flight,Kerbin
13 = Suborbit,Kerbin
13 = Orbit,Kerbin
13 = Land,Kerbin
13 = Recover
14 = Flight,Kerbin
14 = Suborbit,Kerbin
14 = Orbit,Kerbin
14 = Land,Kerbin
14 = Recover
15 = Flight,Kerbin
15 = Suborbit,Kerbin
15 = Orbit,Kerbin
15 = Flyby,Mun
15 = Escape,Mun
15 = Orbit,Mun
15 = Suborbit,Mun
15 = Land,Mun
15 = ExitVessel,Mun
15 = PlantFlag,Mun
15 = BoardVessel,Mun
15 = Flyby,Kerbin
15 = Land,Kerbin
15 = Recover
16 = Recover
17 = Flight,Kerbin
17 = Suborbit,Kerbin
17 = Orbit,Kerbin
17 = ExitVessel,Kerbin
17 = BoardVessel,Kerbin
17 = Flyby,Mun
17 = Escape,Mun
17 = Flyby,Kerbin
17 = Land,Kerbin
17 = Recover
18 = Flight,Kerbin
18 = Suborbit,Kerbin
18 = Orbit,Kerbin
18 = Flyby,Mun
18 = Escape,Mun
18 = Orbit,Mun
18 = Flyby,Kerbin
18 = Land,Kerbin
18 = Recover
19 = Flight,Kerbin
19 = Suborbit,Kerbin
19 = Orbit,Kerbin
19 = Flyby,Minmus
19 = Escape,Minmus
19 = Orbit,Minmus
19 = ExitVessel,Minmus
19 = BoardVessel,Minmus
19 = Suborbit,Minmus
19 = Flyby,Kerbin
19 = Land,Kerbin
19 = Recover
20 = Flight,Kerbin
20 = Suborbit,Kerbin
20 = Orbit,Kerbin
20 = Flyby,Minmus
20 = Escape,Minmus
20 = Orbit,Minmus
20 = Suborbit,Minmus
20 = Land,Minmus
20 = ExitVessel,Minmus
20 = PlantFlag,Minmus
20 = BoardVessel,Minmus
20 = Flyby,Kerbin
20 = Land,Kerbin
20 = Recover
21 = Recover
22 = Flight,Kerbin
22 = Suborbit,Kerbin
22 = Orbit,Kerbin
22 = Land,Kerbin
22 = Recover
23 = Flight,Kerbin
23 = Suborbit,Kerbin
23 = Orbit,Kerbin
23 = Flyby,Minmus
23 = Escape,Minmus
23 = Orbit,Minmus
23 = Flyby,Kerbin
23 = Flyby,Mun
23 = Escape,Mun
23 = Land,Kerbin
23 = Recover
24 = Flight,Kerbin
24 = Suborbit,Kerbin
24 = Orbit,Kerbin
24 = Flyby,Minmus
24 = Escape,Minmus
24 = Suborbit,Minmus
24 = Orbit,Minmus
24 = Land,Minmus
24 = ExitVessel,Minmus
24 = PlantFlag,Minmus
24 = BoardVessel,Minmus
24 = Flyby,Kerbin
24 = Land,Kerbin
24 = Recover
25 = Flight,Kerbin
25 = Suborbit,Kerbin
25 = Orbit,Kerbin
25 = Flyby,Mun
25 = Escape,Mun
25 = Flyby,Kerbin
25 = Flyby,Minmus
25 = Escape,Minmus
25 = Escape,Kerbin
25 = Flyby,Sun
25 = Orbit,Sun
25 = ExitVessel,Sun
25 = BoardVessel,Sun
25 = Land,Kerbin
25 = Recover
}
FLIGHT_LOG
{
flight = 26
}
}
On a déjà une bonne base, juste pour mettre en forme un CV. Mais : pas de quoi identifier l'équipage qui l'aurait accompagné sur tel vol, ou de savoir s'il a été 1er, 2e ou 3e à approcher Mun (ou autre). Les astronautes sont quand même très attachés aux "premières" quitte à ce le motif soit ridicule. Aldrin s'est vanté d'être le premier à pisser sur la Lune par exemple...
(à confirmer) Mais on retrouve les données de ces records dans un objet SCENARIO nommé ProgressTracking
Voici un exemple :
Code : Tout sélectionner
SCENARIO
{
name = ProgressTracking
scene = 7, 8, 5
Progress
{
FirstLaunch
{
completed = 802.365649414052
}
FirstCrewToSurvive
{
completed = 61.880000000004
crew
{
crews = Valentina Kerman
}
}
RecordsAltitude
{
completed = 3594.25857238516
record = 70000
}
RecordsSpeed
{
completed = 39162.4521156813
record = 2500
}
RecordsDistance
{
completed = 3694.65857238506
record = 100000
}
ReachedSpace
{
completed = 3594.25857238516
vessel
{
name = Gagarine 1
flag = Squad/Flags/nsun
}
crew
{
crews = Jebediah Kerman
}
}
Spacewalk
{
completed = 110848.115372461
crew
{
crews = Bill Kerman
}
}
SpaceCrewTransfer
{
completed = 161706.653874829
}
Sun
{
reached = 126020.040518461
Flyby
{
completed = 126020.040518461
}
Orbit
{
completed = 8117520.35770543
vessel
{
name = Orion 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Jebediah Kerman
}
}
Escape
{
completed = 8117571.35770543
}
Science
{
completed = 8185486.45805672
vessel
{
name = Orion 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Jebediah Kerman
}
}
ReturnFromFlyBy
{
completed = 8563597.10795423
vessel
{
name = Orion 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Jebediah Kerman
}
}
ReturnFromOrbit
{
completed = 8563597.10795423
vessel
{
name = Orion 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Jebediah Kerman
}
}
}
Kerbin
{
completed = 8117520.35770543
Flyby
{
completed = 75818.6184894048
}
Orbit
{
completed = 5132.84953920241
vessel
{
name = Gagarine 2
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman
}
}
Escape
{
completed = 62831.5591241507
}
Landing
{
completed = 26.9599999999995
vessel
{
name = Valentina Kerman
flag =
}
crew
{
crews = Valentina Kerman
}
}
Splashdown
{
completed = 922.045649413943
}
Science
{
completed = 61.880000000004
vessel
{
name = Untitled Space Craft
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman
}
}
Rendezvous
{
completed = 161188.000320357
}
Docking
{
completed = 331811.864602285
}
SurfaceEVA
{
completed = 18.3599999999997
crew
{
crews = Valentina Kerman
}
}
FlagPlant
{
completed = 779320.32908453
}
BaseConstruction
{
completed = 3074033.8217481
base
{
name = Gas - ISRU
flag = Squad/Flags/nsun
}
}
StationConstruction
{
completed = 331811.864602285
station
{
name = Hallen 2 S T4
flag = Squad/Flags/nsun
}
}
ReturnFromFlyBy
{
completed = 110302.599183399
vessel
{
name = Hallen 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bob Kerman
}
}
ReturnFromOrbit
{
completed = 17894.6050079651
vessel
{
name = Gagarine 2
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman
}
}
}
Mun
{
reached = 62831.5591241507
Flyby
{
completed = 62831.5591241507
}
Orbit
{
completed = 823290.583790967
vessel
{
name = Hallen 2 S T4
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bill Kerman, Bob Kerman
}
}
Escape
{
completed = 75818.6184894048
}
Landing
{
completed = 824781.747194147
vessel
{
name = Mun Hallen Lander 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman
}
}
Science
{
completed = 110309.5591834
vessel
{
name = Hallen 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bob Kerman
}
}
Rendezvous
{
completed = 834930.61150608
}
Docking
{
completed = 835413.440257811
}
SurfaceEVA
{
completed = 824879.707194238
crew
{
crews = Valentina Kerman
}
}
FlagPlant
{
completed = 824954.727194308
}
StationConstruction
{
completed = 835413.440257811
station
{
name = Hallen 2 S T4
flag = Squad/Flags/nsun
}
}
ReturnFromFlyBy
{
completed = 110302.599183399
vessel
{
name = Hallen 1
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bob Kerman
}
}
ReturnFromOrbit
{
completed = 861708.262860789
vessel
{
name = Hallen 2 S T4
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bill Kerman, Bob Kerman
}
}
}
Minmus
{
reached = 1014169.7437588
Flyby
{
completed = 1014169.7437588
}
Orbit
{
completed = 2082242.31438351
vessel
{
name = Magellan Station 1
flag = Squad/Flags/nsun
}
crew
{
crews = Jebediah Kerman
}
}
Escape
{
completed = 1060967.53760656
}
Landing
{
completed = 2818432.73062226
vessel
{
name = Magellan 3 - Lander
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Bob Kerman
}
}
Science
{
completed = 1014244.9285928
vessel
{
name = June 1
flag = Squad/Flags/nsun
}
crew
{
crews = Jebediah Kerman, Sigpond Kerman
}
}
Rendezvous
{
completed = 2314199.60765417
}
Docking
{
completed = 2315242.43667322
}
SurfaceEVA
{
completed = 2818562.55062238
crew
{
crews = Valentina Kerman
}
}
FlagPlant
{
completed = 2818585.6506224
}
BaseConstruction
{
completed = 8814595.03852032
base
{
name = Foreuse Minmus Greater Flats
flag = Squad/Flags/nsun
}
}
StationConstruction
{
completed = 2315242.43667322
station
{
name = Magellan Station 1
flag = Squad/Flags/nsun
}
}
ReturnFromFlyBy
{
completed = 1294564.87472438
vessel
{
name = June 1
flag = Squad/Flags/nsun
}
crew
{
crews = Jebediah Kerman, Sigpond Kerman
}
}
ReturnFromOrbit
{
completed = 2591139.68587397
vessel
{
name = Magellan 2 - Sanliana rescue
flag = Squad/Flags/nsun
}
crew
{
crews = Valentina Kerman, Jebediah Kerman, Sanliana Kerman
}
}
}
}
}
Dans les données de chaque drapeaux, on retrouve aussi l'identité de celui qui l'a planté et la date.
Bref, en combinant ces 3 types d'objets, ça peut parfaitement se faire.
En tant que mod, je ne saurais pas dire. Mais c'est tout à fait envisageable de faire un site web, où tu upload ton fichier de sauvegarde, et en rélutat te produit des CV, un hall of fame, un organigramme... (j'en parle, parce que ça je saurais le faire. Il me manque juste la motivation)
Par contre, ce que je n'ai pas trouvé dans les données, c'est l'historique de tous les vols avec la liste de son équipage..
Du coups, hormis les vols "historiques (premières), on ne peut probablement pas tout recouper.
Moi c'est un truc qui me manque : la planification et l'historique des missions. C'est un peu dommage, enfin c'est un autre sujet peut-être.
note : (KSP save file parser javascript)
http://bigorangemachine.github.io/ksp_j ... _sci_list/
https://github.com/bigorangemachine/ksp ... .parser.js