OHM OrbiterRTS v1.2 (Re-release)

OrbitHangar

Addon Comments
Joined
Apr 9, 2008
Messages
3,832
Reaction score
18
Points
0

Author: daydreamer

Orbiter Realtime Scenario Generator v1.2 Re-release

(Bug-Fix + update)
---------------------------------------------------------------------------------------

My apollogies to the one or two people who downloaded this yesterday (10/02) I made a rather large error and should
not have uploaded it. In the blind panic I quickly removed it and the original release.
This release should work fine now.
This is the full package so you do not need to download version 1.
Summery:
---------
Generates a scenario with over 150 satellites with realtime elements.
v1.1
Adds Spot-2, Spot-4 and Spot-5 satellites.
Adds Tail.txt to the Input folder, this is to include scenario entries that go after END_SHIPS.
GPS custom module provides a function to engage prograde and rotate the mesh to the correct attitude at load time.
(for full details see GPSIIR for OrbiterRTS.txt)
v1.2
Fixes a bug that caused an incorrect MJD when the the day of the month was less then 10 (sorry everyone)
Adds Envisat
Adds Metop-A

Suggested Addons:
------------------
Any of the multitude of ISS and HST addons available

TDRS for real-time scenarios by David413
 http://www.orbithangar.com/download.php?ID=3855
GOES by jgrillo2002
 http://www.orbithangar.com/download.php?ID=215
GPDS Eumetsat-Meteosat v0.1 by Voyager VI
 http://www.orbithangar.com/download.php?ID=865
Iridium Satellite by E1Pelado
 http://www.orbithangar.com/download.php?ID=534
Carina total immersion by dagoO
 http://www.orbithangar.com/download.php?ID=4240
Satellite Spot-5 by Mustard
 http://www.orbithangar.com/download.php?ID=3910
Envisat by BrianJ
 http://www.orbithangar.com/download.php?ID=3465
Satellite Metop v1.1 by papyref
 http://www.orbithangar.com/download.php?ID=3911
 


DOWNLOAD
 
Date/Time format on different locales

Hi daydreamer,

I took a quick look at you addon and find it very nice!

But I recognized that you were fighting the same issue that I
had several month ago: "How the f**ck do I get the date information
independent of the OS/locale in Batch files..."

Here's my solution:
(getdate.bat)
Code:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: This uses Windows Scripting Host to set variables
:: to the current date/time/day/day_number
:: for Win9x/ME/NT/W2K/XP etc
:: Thanks go to Todd Vargo for his scripting
::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
set TmpFile="%temp%.\tmp.vbs"
echo> %TmpFile% n=Now
echo>>%TmpFile% With WScript
echo>>%TmpFile% .Echo "set year=" + CStr(Year(n))
echo>>%TmpFile% .Echo "set yr=" + Right(Year(n),2)
echo>>%TmpFile% .Echo "set month="+ Right(100+Month(n),2)
echo>>%TmpFile% .Echo "set day=" + Right(100+Day(n),2)
echo>>%TmpFile% .Echo "set hour=" + Right(100+Hour(n),2)
echo>>%TmpFile% .Echo "set min=" + Right(100+Minute(n),2)
echo>>%TmpFile% .Echo "set sec=" + Right(100+Second(n),2)
echo>>%TmpFile% .Echo "set dow=" + WeekDayName(Weekday(n),1)
echo>>%TmpFile% .Echo "set dow2=" + WeekDayName(Weekday(n))
echo>>%TmpFile% .Echo "set iso=" + CStr(1 + Int(n-2) mod 7)
echo>>%TmpFile% .Echo "set iso2=" + CStr(Weekday(n,2))
echo>>%TmpFile% End With
cscript //nologo "%temp%.\tmp.vbs" > "%temp%.\tmp.bat"
call "%temp%.\tmp.bat"
del "%temp%.\tmp.bat"
del %TmpFile%
set TmpFile=
set stamp=%year%-%month%-%day%_%hour%.%min%.%sec%

echo The year (YYyy) is "%year%"
echo The year (yy) is "%yr%"
echo The month is "%month%"
echo The day (%dow%) is "%day%"
echo The full weekday name is "%dow2%"
echo.
echo ISO 8601 Day-Of-Week number is "%iso%"
echo.
echo The hour is "%hour%"
echo The minute is "%min%"
echo The second is "%sec%"
echo.

echo The date and time stamp is "%stamp%"
echo.
echo time (hhmmss) (%hour%%min%%sec%)
echo.
echo date A (yyyymmdd) (%year%%month%%day%)
echo date B (mmddyyyy) (%month%%day%%year%)
echo date C (ddmmyyyy) (%day%%month%%year%)
echo.
echo date D [yymmdd] [%yr%%month%%day%]
echo date E [mmddyy] [%month%%day%%yr%]
echo date F [ddmmyy] [%day%%month%%yr%]
:: datetime.bat
::::::::::::::::::::::::::::::::::::::::::::::::::::::::
The code is somewhat an example of how to use it.
All date/time parts include leading zeroes. The only locale-dependent
variable is day which will be e.g. "Freitag" in de_DE, but I think you don't
need that information, do you ;)
Unfortunately I do not exactly remember where I "stole" this, but a
quick search with google might get to the original author.

Maybe this helps you for your next release

Best regards and "keep on developing",
Kuddel
 
RTS

Could you write an update with glonass.
Thorton has produced UraganM with his Proton Launcher.
I think it's 24 of them from Roscosmos.
@ 19,000 KM in three bands.:)
 
Back
Top