Jump to content

[0.24.x] Zords KSP Multi-calculator


Lord_Zord

Recommended Posts

Zords KSP Multi-calculator

Version 0.6 beta

3.png4.png

Download: http://sourceforge.net/projects/zordskspcalc/files/0.6/KSP_calc.zip/download

This is an external program that lets you do several kinds of calculations easily.

This program have features both for planning missions and features for on-the-go "planning".

Combined with a delta-v map or maneuver nodes you can get the numbers for what a ship needs before you start to build it.

The "Delta v from fuel" and "fuel to delta v" options are intended as problem solvers.

For example: You are in Mun orbit and wonder if you have sufficient fuel to fly out to Minmus and drop of a kerbal at the station there or if you need to go home. Just type in your numbers and the program will tell you how much delta v you have at your disposal.

List of features:

  • Rocket equation
  • Reverse rocket equation
  • Rocket constructor
  • Fuel needed for delta v
  • Delta v available from fuel
  • Average isp from engine cluster
  • T/W-ratio calculator
  • Acceleration calculator
  • Print results to file
  • Some functions also work with the (now outdated) "Real Fuels" and "Real solar system" mods.

User manual available in the download.

Tutorial video coming SoonTM.

Doesn't kerbal engineer/MJ already do this but better?

Yes but, they are mods. This program has several advantages.

1: You can have an KSP install be 100% stock and still have access to these features. Because this is not a mod, it is an external program.

2: You do not need to install anything.

3: Any .craft-file you make will be compatible which everyone else (no MJ parts).

And you feel a bit smarter running the calculations yourself rather then just having a computer tell you everything (in my opinion)!

Lastly, the parts of this program that does not use "units" of fuel are just as applicable to real life as to KSP.

Please note that this program is still in beta and I have not found all the bugs yet. If you find any bugs (or typos) please report them back to me so that I can fix them.

Written in python. You do not need to install anything to run this. Tested on Win7 and Linux.

Planed features:

An option to calculate the Isp of a stage during Kerbin ascent. (or to put a stage in program 3 as ascent stage and have the Isp value preform properly)

Option to calculate T/W (acceleration) of the surface of different bodies

This work is released under The MIT License (MIT). Link

Edited by Lord_Zord
New version
Link to comment
Share on other sites

---Version History---

v0.6

-Revived

-Updated to run with KSP version 0.24

-Added working option to use the "LFB KR-1x2" in program 3.

-mod_mode is now obsolete, no not use!

v0.5.2 - unreleased update

-Fixed some bugs in program 1.

v0.5.1

+Added mod_mode support in program 5

+Gave program 5 the same print-overhaul that most functions got in the latest version

v0.5

+Updated to run with KSP version 0.23

+Added limited first version of support for the "Real Solar System", "Realism Overhaul" and "Real Fuels" mods in all programs except 3, 5 and some options in 6. You can activate it in the settings file

+Fixed a major issue where program 4 would calculate a lower mass then needed (this always happened, my math bad)

+Reworked program 2 in the same way as program 4. It should now give accurate results and more data

+There is now an option to skip the engine selector in program 6-2 and enter the isp manually

+Added option to quit program in the main menu

+Cleared up the T/W-ratio and acceleration printing in option 6.3, it should now use the correct words

+Added first version of new log printing code, should have little to no effect on the average user

-General code clean-up

-Fixed bug with single stage result formatting in program 1

-Fixed some more bugs

-Fixed some grammar

v0.4

+If the settings file is missing the program will now create a new one. -Thanks to Vorlax

+Fixed issues with the program making a .pyc-file and not reading the original settings.py file. -Thanks to Vorlax

+There is now an option to skip the engine selector in program 6-3 and enter the thrust manually.

+Cleared up result formatting in program 1 for single stage crafts.

-Fixed bug where program 1-U printed a to height total mass (the calculations was correct, the printed numbers was wrong).

v0.3 - First advertised release

+Changed program 3 from "T/W-ratio (in Kerbin gravity)" to "T/W-ratio (acceleration)" as it seems more relevant

+Added the use of a settings file to remove the constant asking if you want to print to file or not

+Added user manual

-Values of zero or negative values are no longer accepted by the program

-Fixed some typos

v0.2

+Fixed all input fields, entering the wrong characters should now not crash the program

+Added a quitting mechanism in option 1. If you want to quit type in anything other than a number when asked for a mass, units of fuel or isp.

+Fixed file printing for option 1-U

+Added .txt to printed files so that windows users don't have to add it themselves

+Fixed name

-Removed debugging messages

-Fixed program crash if unreasonable fuel and mass values was entered in option 1-U, 4 or 5.

-Fixed a few other small bugs

v0.1

+Initial release

Edited by Lord_Zord
New version
Link to comment
Share on other sites

Could you perhaps include a feature to use this calculator for Real Solar System & Modular Fuel System? It would be extremely useful.

Yes I can.

I have been thinking about starting to use those mods myself. I will put this on the "Planed features" list.

I have not yet started to look at how exactly the fuel systems mod works so I can not give an ETA at this time.

Link to comment
Share on other sites

OK, I have done a fair amount of coding to get the "Modular Fuel System" mod data into the program.

The next version will include a limited deployment of Modular Fuel System comparability. But I am having some problems with getting the numbers just right. My program does a fair amount of calculations using constant, such as the ratios between fuel and the amount of fuel units per tonne fuel.

The problem I am having is that with a few exceptions I can not find the exact ratios to use in the calculations. I could easily figure out those used by the stock game, but it's much harder with this mod.

So if anyone knowns for example the consumption ratio of MMH to H2O4 or any other fuel, please let my know. I will try to ask in the Modular Fuel System thread as well.

EDIT: Never mind. It turns out that you find what you need if you bother to look properly.

Edited by Lord_Zord
doh
Link to comment
Share on other sites

  • 2 months later...

Time to revive this project.

I have updated the OP with the new version 0.5.

I have spent a lot of time the last 3-4 months working on a new version for this (and a lot more not working on it) and now I have something I think I can post.

The most important change is that I have added support for the "Real Solar System", "Realism Overhaul" and "Real Fuels" mods in most of the calculations.

But almost every part of the code have gotten some kind of improvement. Some errors have been corrected and lots of bugs have been squashed. The biggest improvement of existing functions is in the printing of results, both to the console and to file.

This is of course not the finished version, there are functions to add and more bugs to kill. But at least this version is (should be) a lot more stable.

I still want help finding any bugs and crashes, so if you use this program and encounter any problems, please tell me.

Edited by Lord_Zord
Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...