Jump to content

KSP Fuel Amount Calculator


PatPL

Recommended Posts

Hello!

It's small standalone program written in C++ (I'm surprised that it didn't made any error during building first time, WOW)

Pictures:

20141119-ez8v-18kb.jpg20141119-0wp1-18kb.jpg20141119-qoks-17kb.jpg

Source code (simple but working):

DOWNLOAD(.EXE)

Back soon.

Licence:

Attribution-NonCommercial-ShareAlike 4.0 International

(CC BY-NC-SA 4.0)

You are free to:

Share  copy and redistribute the material in any medium or format

Adapt  remix, transform, and build upon the material

More at: http://creativecommons.org/licenses/by-nc-sa/4.0/

Changelog:

1.2 - Two new options, small redesing

1.1 - Redesigned TUI (Not GUI, because there's no graphics)

1.0 - Initial release

Edited by technicalfool
Removed Adfly link.
Link to comment
Share on other sites

It might be a good idea to make a web-based version, if possible, that way people on multiple OSes can use it. If you use Unity and C# you'll have to assemble a GUI but can definitely port to multiple platforms. Heck, that might be a nice small project for me to tackle right now. My schedule will open up next semester so I'll use that time to work on other things. Let me know if you want to work on something like that, PatPL. :)

Edited by OrbitusII
Link to comment
Share on other sites

I don't really know how to port it to Mac or web version, but i think i may TRY to learn making gui. It'll look like windows calculator

I'd let you handle the calculations and underlying maths. I've got a fair bit of experience with Unity and coding for it so I would handle the translation into C# as well as the porting to Mac/Linux/Web versions if we were to work on something like that.

I would prefer a spreadsheet on google docs or something.

Actually, a spreadsheet on docs would work very well. I'd recommend doing that for the ease of use.

Link to comment
Share on other sites

I'd say even spreadsheet is overkill, it's a job for perl or bash oneliners

echo "total: "; read t; f=$(($t*9/20)); o=$(($t-$f)); echo -e "fuel: $f\noxidizer: $o";

But that's just me.

More practical advice for PatPL, if you don't mind: globals are generally not a good idea, restructure the source to eliminate them. Also, a simple tool like that does not really benefit from system-specific (windows-specific, in this case) calls and headers.

Link to comment
Share on other sites

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...