Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > MFD Questions & Help
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

MFD Questions & Help Post your questions here for help with the Multi-Function Displays.

Reply
 
Thread Tools
Old 10-13-2016, 12:37 AM   #1
Reese
Orbinaut
Default Storing user input into external file

Is it possible to create a MFD that can take user input and store it into an external file(text,xml or something else), that can be loaded in different scenarios?

I've seen some VSA spreadsheets that i thought were nice, but if that info could be entered/stored/recalled inside an MDF that would be even nicer.

So is something like this possible?
Reese is offline   Reply With Quote
Old 10-13-2016, 03:00 AM   #2
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default

The orbiter api supports read/write to basic text files so I dont see why not. What sort of data do you have in mind?
Hlynkacg is offline   Reply With Quote
Old 10-13-2016, 06:23 AM   #3
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

That's no problem at all.
jedidia is online now   Reply With Quote
Thanked by:
Old 10-13-2016, 09:58 AM   #4
ADSWNJ
Scientist
 
ADSWNJ's Avatar
Default

Of course ... done all the time.
ADSWNJ is offline   Reply With Quote
Old 10-13-2016, 10:05 AM   #5
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Also you can use ANY C++/C-library you like for writing file formats not supported by Orbiter. Or for using a local or remote database.
Urwumpe is online now   Reply With Quote
Old 10-13-2016, 08:28 PM   #6
fred18
Addon Developer

Default

I think in the new orbiter api there is also some "clbksimulatekey" or something like this that will allow to reproduce key pressing etc. Maybe it could be useful for replaying
fred18 is online now   Reply With Quote
Old 10-13-2016, 10:32 PM   #7
Reese
Orbinaut
Default

Well I like to Roleplay that im doing missions ect when i fly. I imagine many people do. I'd like to have an MDF that would keep track of information that i usually put into a spreadsheet.

Fuel usage and refuel costs. LOX too.
Payments for payloads transported.

Maybe even automatically subtract the cost of refueling from your bank.

I personally have no idea how to start to write something like this. I do web development but C++ is beyond me. Not a lot of experience with compilers.

Someone looking for a side hobby?

Side note:
It would be cool to write in a bunch of missions in a text file with id's associated with certain bases. Maybe while you are landed at that base it will pick a few random missions and let you choose one or more to do. I would assume XML format would be better for this. But what do i know...

I dare not ask to "point me in the right direction", i hate when people ask me that. Especially when they know as little about something as i do...

So .. if anyone gets bored and wants to give this a stab.. that would be cool.

Last edited by Reese; 10-13-2016 at 10:36 PM.
Reese is offline   Reply With Quote
Old 10-13-2016, 10:46 PM   #8
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
I do web development but C++ is beyond me.
What kind of web development? If you're fluent in Java script, it should be entirely reasonable to write a simple parser in C++ without too much of a headache, especially since Javascript employs a C-ish synthax (sure, you'll get annoyed a lot at C++ always wanting to know the datatype of everything, but you'll manage). Orbiter also has a LUA interface, and while it's been a long time since I touched LUA, anybody working on any kind of script language regularly should be able to familiarise himself pretty quickly with it from what I remember.
jedidia is online now   Reply With Quote
Old 10-14-2016, 04:03 PM   #9
4throck
Enthusiast !
 
4throck's Avatar
Default

Quote:
Originally Posted by Reese View Post
 I personally have no idea how to start to write something like this. I do web development but C++ is beyond me.
If you only need to manipulate scenario files, why not do it browser/web based?
Use Javascript to manage scenario upload, update whatever values you need and then generate a new scenario.
Keep it simple, using standard UCGO cargo, scenario descriptions to output your status, etc.

Last edited by 4throck; 10-14-2016 at 04:06 PM.
4throck is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > MFD Questions & Help


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:10 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.