Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Requests
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Requests If you have a request for a new addon or want to know where to find a specific addon, ask it here!

Reply
 
Thread Tools
Old 09-08-2018, 08:29 AM   #16
dgatsoulis
ele2png user
 
dgatsoulis's Avatar
Default

New version.

No need to edit the timer.lua script anymore. Simply select the scenario you want, enter the "Script timer" line between the BEGIN_ENVIRONMENT - END_ENVIRONMENT lines and run it. You can create a "Timer" vessel anytime/anywhere you want, press F3 to select it and hit "K" to enter the MJD you want the display to countdown to/from.

In detail:

1.Unzip the attached file in your Orbiter2016 directory.
2.Go to Orbiterroot\Scenarios\ and open any scenario you want to have the countdown display in with notepad.
3.Enter the line "Script timer" between the BEGIN_ENVIRONMENT - END_ENVIRONMENT lines. Example:
Code:
BEGIN_ENVIRONMENT
System Sol
Date MJD 55278.5004612550
Script timer
Help CurrentState_img
END_ENVIRONMENT
4.Save and exit.
5.Run the scenario.
6.Open the Scenario Editor, press "New" and select "Timer" from the drop-down menu. Name it whatever you want.
7.Press F3 and select the vessel you just created.
8. Press K and a popup window will appear, asking you to enter the "launch MJD".

The timer will start counting to/from that date (as long as it is within -100/+100 hours from the current scenario MJD).

Pressing K again while focused on the "Timer" vessel will stop the countdown, Pressing K a 3rd time repeats the cycle (enter launch mjd).

While you have the "Timer" vessel in your scenario, you can switch focus to any other vessel you want and it will keep counting normally.

Attachment on post #8 of this thread removed. Please use the latest version, attached on this post. If you already have the previous one, let it overwrite the files.

Please test and report any problems here.

It was fun making this one, learned a few things along the way.
Attached Files
File Type: zip Timer.zip (69.0 KB, 13 views)

Last edited by dgatsoulis; 09-08-2018 at 09:56 AM. Reason: typo
dgatsoulis is online now   Reply With Quote
Thanked by:
Old 04-05-2019, 10:16 AM   #17
Snax
Space Cowboy
 
Snax's Avatar
Default

Hi, I'm back for some Orbiter now that I have a new computer

I wanted to use this addon again and I'm glad there's a final version !

When I press K to have the popup window to enter the launch MJD date, nothing appears ? Can you confirm this ?
Snax is offline   Reply With Quote
Old 04-06-2019, 04:07 PM   #18
dgatsoulis
ele2png user
 
dgatsoulis's Avatar
Default

Quote:
Originally Posted by Snax View Post
 Hi, I'm back for some Orbiter now that I have a new computer

I wanted to use this addon again and I'm glad there's a final version !

When I press K to have the popup window to enter the launch MJD date, nothing appears ? Can you confirm this ?
Works fine on my end. Did you follow the instructions?

-Open .scn with editor, enter the Script timer line, save and exit.
-Run scenario and spawn Timer vessel
-Switch focus to Timer vessel and press K
dgatsoulis is online now   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Requests


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 09:49 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.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.