Jump to content

[Plugin][WIP][1.0.2]Flight and Kerbonauts History


DennyTX

Recommended Posts

I am a person who loves keeping order, and I lacked the accounting with some minimum flight statistic in the KSP. I waited a long time, and once discovered "FinalFrontier", but there were not enough info for me. Also, I did not have any programming skill at that moment, but i decided to try to do something myself. Spent about three months for understanding the basic knowledge and got the result now (not without the help and assistance of respected people). To be honest, I still do not understand how some things work, code samples which were taken from different tutorials and mods, but "if it works, do not touch anything."

well, here we have a simplified missions statistics, which divided to two pages, first - for unique flight data of each flight and second - the data for each pilot. In addition to formal statistics, it helps to plan you own space program and not to forget where you were and what you already done. This plugin is graphicsless, only tabular forms. All data is stored in a separate file in the JSON format.

YWW40SWh.png

Left page. Here we have a list of flights that contains the name, start date and the cost of the ship. By clicking on any record we get the window with the following information: vessel name, its mass at launch, cost, launch date, the weight in a stable orbit, the amount of dockings and EVAs, maximum speed, number of landings, end date, duration and final weight, also show the amount of points earned science. On right side of this window we have data about SOI changes and the initial and final crew. The duration of the flight is always calculated dynamically. Completed missions (recovered) are painted in green. Current flight or a dedicated flight - stands a bright white color. Crashed - are painted in red. Missions can be sorted by date (by default, the new above), by the title of the series, or by cost. At the bottom of the window we can see a summary of the number of starts, total costs and total duration.

LWLCSkHh.png

nOhCc7Zh.png

rXjJSMrh.png

Right page, with the telling name - Kerbals - used to store data about every kerbonauts. Initially, there is a list of the flyed pilots with the name, the number of flights and total duration of the raid. Clicking on the entry opens a window with more information, the number of flights, total time in flights, number of dockings, the number of EVA and total time in open space, the number of landings.

4rWEWHfh.png

7XySYwth.png

Note1: personally i play on hard mode career only, and plugin has been tested in it. but "Revert to VAB" must operate normally, details of the flight will be removed. In other modes plugin has not been tested.

Note2: currently there are no own statistic for separated units, such as Landers. When spacecraft divided on the orbit to several vessels, data of both fall into one entry (eg Landings)

Installation: The zip files are all structured so that you only have to extract them into your kerbal folder and overwrite the folder.

download

REDACTED

License: CC-NC-ND

I hope that this plugin will be useful not only for me.

comments and suggestions are welcome

Edited by sjwt
No source
Link to comment
Share on other sites

Ausgezeichnet!

This, together with some other mods, helps to improve the sense of immersion of a hardcore carrer. Personally, I've been waiting for something like this for a long time! A thousand thanks.

PS: you need to make the sources available: http://forum.kerbalspaceprogram.com/threads/87843-Forum-Rules-Add-on-Posting-Rules-August-21st-2014

Link to comment
Share on other sites

yup, of course. but i thought only this is only for final code. for release. i'm wrong?

Thx been waiting for this. Maybe test it with Kerbal Construction Time mod?

hmm, never tried it. what does it do?

Link to comment
Share on other sites

yup, of course. but i thought only this is only for final code. for release. i'm wrong?

I always thought the point is to check out that you are not doing some unpleasant thing in our computers with a "black box". But it doesn't really matter as I am using your binaries, not going to rebuild the dll's... If the bosses said nothing so far, I guess everything is fine.

More important than that: I've found a nasty bug! Playing in Debian x64 there's an incompatibility with Kerbal Inventory System (KIS). You just cannot attach something to your Vessel, it is dropped as if you used the "drop" option instead of "attach" (x key) option.

[LOG 01:28:49.997] [KIS] Move part & attach[LOG 01:28:49.997] [KIS] Attach type : Surface | ID : srfAttach
[EXC 01:28:49.998] NullReferenceException: Object reference not set to an instance of an object
OLDD.EventProcessor.OnPartCouple (FromToAction`2 action)
EventData`1[GameEvents+FromToAction`2[Part,Part]].Fire (FromToAction`2 data)
Part.Couple (.Part tgtPart)
KIS.KIS_Shared.CouplePart (.Part srcPart, .Part tgtPart, System.String srcAttachNodeID, .AttachNode tgtAttachNode)
KIS.KISAddonPickup.MoveAttach (.Part tgtPart, Vector3 pos, Quaternion rot, System.String srcAttachNodeID, .AttachNode tgtAttachNode)
KIS.KISAddonPickup.OnPointerAction (PointerTarget pointerTarget, Vector3 pos, Quaternion rot, .Part tgtPart, System.String srcAttachNodeID, .AttachNode tgtAttachNode)
KIS.KISAddonPointer.UpdatePointer ()
KIS.KISAddonPointer.Update ()

I may supply the full log and anything else if needed.

Thanks and Salud!

Link to comment
Share on other sites

yup, of course. but i thought only this is only for final code. for release. i'm wrong?

Yes. If you actually follow that link and read the terms, there is no mention of any special state of development. As electroconvulsivo mentioned, the purpose of this requirement is code review, which is supposed to happen at any time, not limited to some arbitrary definition of "finality". The moment you make your plugin available to others, you have "released" it.

Link to comment
Share on other sites

electroconvulsivo and Corax are correct - any plugin released on these forums, even if WIP, must be accompanied by source code.

To make things easier for you, DennyTX, you should create a repository on GitHub and push your source code to it, so that whenever you update your code and push commits, it automatically becomes available to everyone.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...