General Question Concerning MFD's

talavar

Sedna Pioneere
Joined
Feb 7, 2009
Messages
12
Reaction score
0
Points
0
Location
39.977N -79.614W
Hi everyone, I've been gone for... hmm.. almost 10 years. lol.. I'm just refamiliarizing myself with everything. I still have (somewhat of) a grasp on all things under the sun concerning Orbiter... except one.. I put some data into the transfer MFD just to make sure I still had a grasp on it, and everything functioned as I expected, and now I'm ready to actually use it... however, the old data I put in is still there. How do I clear this sucker? It's the only thing I can't remember!! LOL
 

MikeB

Member
Joined
Feb 25, 2009
Messages
185
Reaction score
0
Points
16
Location
Seattle
Welcome back, talavar.

Unfortunately, I can't answer your question. However, I'd like to remind folks reading this thread that the IMFD Full Manual is available online in the OrbiterWiki at:
http://www.orbiterwiki.org/wiki/IMFD_Manual

Also the latest updates to "Go Play In Space" are also in OrbiterWiki.

Both of these are available for updating by anyone interested.
 

talavar

Sedna Pioneere
Joined
Feb 7, 2009
Messages
12
Reaction score
0
Points
0
Location
39.977N -79.614W
Welcome back, talavar.

Unfortunately, I can't answer your question. However, I'd like to remind folks reading this thread that the IMFD Full Manual is available online in the OrbiterWiki at:
http://www.orbiterwiki.org/wiki/IMFD_Manual

Also the latest updates to "Go Play In Space" are also in OrbiterWiki.

Both of these are available for updating by anyone interested.

It doesn't tell you how to reset it..lol .. Meh, It's ok, I'll wing it. :thumbup:
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
How do I clear this sucker?

The closest thing you can get to reset the "sucker" is to remove the saved data for the MFD in the scenario file. The MFD mode will then start as fresh as it can be. However, certain data will be set automatically due to the current vessel's position. You can't reset that.
 

talavar

Sedna Pioneere
Joined
Feb 7, 2009
Messages
12
Reaction score
0
Points
0
Location
39.977N -79.614W
The closest thing you can get to reset the "sucker" is to remove the saved data for the MFD in the scenario file. The MFD mode will then start as fresh as it can be. However, certain data will be set automatically due to the current vessel's position. You can't reset that.
Jesus, Face.. I remember you from when I first started. You been here forever, man. Same picture too! lol.... Anyway, Thanks for the info. :) Hope you're doing well. Take care.
 
Last edited:

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
Jesus, Face.. I remember you from when I first started. You been here forever, man. Same picture too!

Indeed. Times are changing - people do as well around me - but I am not. And to be honest, I don't care. :shrug:

On the topic, I've checked both IMFD and TransX to see where they save their data, and both do so in the scenario file in the MFD section. Simply get rid of that section and your MFD mode should be as clean as it gets.
 

LeePalmer

Member
Joined
Apr 7, 2013
Messages
40
Reaction score
0
Points
6
Apologies Face

I've checked both IMFD and TransX to see where they save their data, and both do so in the scenario file in the MFD section.

May I ask.
Do you know how to use writestatus() in luascript? Do you have an example? Also readstatus()? This will enable spotlight mfd utility info to be read/write fully into scene.
I just need one solid example (propably) in luascript?

I include my attempts to figure out the syntax, just for a laugh.

Code:
function writestatus (scn)
   --aline=''
   --oapiWriteScenario_string (FILEHANDLE scn, char *item, char *string)
   --oapi.writescenario_string (scn, 'thing', 'test words')
   --oapiWriteScenario_string (scn, 'thing', 'test words')
   --WriteScenario_string (scn, 'thing', 'test words')
   --writescenario_string (scn, 'thing', 'test words')
   --OAPIFUNC void oapiWriteScenario_string (FILEHANDLE scn, char *item, char *string)
    --local f = io.open('Config/MFD/log/fuellog.txt',"w")
    --f:write(string.format('%+2.5f',TrkDir.x)..'\n')
    --f:write(string.format('%+2.5f',TrkDir.y)..'\n')
    --f:write(string.format('%+2.5f',TrkDir.z)..'\n')  
    --f:close()
    
    --scn:write('Thing = Test\n')
    --scn.write('Thing  Test\n')
    
    
    
   --vi = vessel.get_focusinterface()
   --if vi:get_lightemittercount() > 0 then
   --     le = vi:get_lightemitter(0)
   --     POS = le:get_position()
        
   --     oapi.writescenario_vec (scn, "APOS", POS)
   --end 
   
	--for idx = 0,vessel.get_count()-1 do
		--vi2 = vessel.get_interface(idx)
        --vi2:get_lightemittercount()
        --for idx2 =0 , vi2:get_lightemittercount()-1 do
        --    le = vi2:get_lightemitter(idx2)
        --    POS = le:get_position()
            --OAPIFUNC void oapiWriteScenario_vec (FILEHANDLE scn, char *item, const VECTOR3 &vec);
        --    oapiWriteScenario_vec (scn, "APOS", POS)
            --aline = string.format('LIGHT %f %f %f ', POS.x,POS.y,POS.x)
            --DIR = le:get_direction()
            --aline = aline..string.format('%f %f %f ', DIR.x,DIR.y,DIR.x)
            --ITS.intensity = le:get_intensity()
            --line = line..string.format(' %f ', le:get_intensity())
            --PRM.umbra, PRM.penumbra= le:get_spotaperture()
            --PRM.att0,PRM.att1,PRM.att2 = le:get_attenuation()
            --PRM.range = le:get_range()
            --oapiWriteLine (scn, aline)
            --WriteLine (scn, line)
        --end 
	--end
end

Many Thanks
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
Do you know how to use writestatus() in luascript? Do you have an example? Also readstatus()?

Sorry, I am no lua expert. However, I know that you have to implement callbacks for the status events in the MFD class. These are ReadStatus(FILEHANDLE) and WriteStatus(FILEHANDLE). Orbiter calls them on entering and exiting the simulation. Within them, you have to use the oapiReadScenario_xxx and oapiWriteScenario_xxx functions, respectively.
There are also RecallStatus and StoreStatus callbacks which are called whenever the mode gets created or destroyed (i.e. whenever you switch vessel focus or change MFD modes to/from the mode in question), but if you follow best practice in MFD development to keep its state multi-instance consistent, you likely don't need them.
 

LeePalmer

Member
Joined
Apr 7, 2013
Messages
40
Reaction score
0
Points
6
Hi.
If you go into the tutorial folder in orbiter scenarios. You find a scenario: "ADI training"
You have to dock with the ISS. There a docking mfd in the attitude rcs mfd. You may need to activate it in orbiter\config\mfd\scriptMFD.cfg

Is that the 3d sphere/world thing?
Do not press prograde.
 
Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
How to reset TransX:

1) Click "BCK" until you are at 1st Stage;
2) Click "VW" to go to "View:Setup";
3) Click "VAR" until "Select Target" comes up;
4) Click "++" until "None" is selected;
5) Click "FWD".
 

talavar

Sedna Pioneere
Joined
Feb 7, 2009
Messages
12
Reaction score
0
Points
0
Location
39.977N -79.614W
How to reset TransX:

1) Click "BCK" until you are at 1st Stage;
2) Click "VW" to go to "View:Setup";
3) Click "VAR" until "Select Target" comes up;
4) Click "++" until "None" is selected;
5) Click "FWD".

Thanks for the info, Ripley. However, I was referring to the regular transfer MFD, and not TransX. I'll be getting Transx2 plugin today though. That info will still be useful in light of that.
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
Yes, sorry for my off-topic! From your original question it was clear you meant the default Transfer MFD, but this thread went off-topic since the very first reply.
Face then mentioned TransX, and I thought I could throw in my 2 cents...
;-)
 
Top