Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Copying a Satellite

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Copying a Satellite Page: [1]
Login
Message << Older Topic   Newer Topic >>
Copying a Satellite - 6/27/2020 7:01:34 PM   
vettim89


Posts: 3577
Joined: 7/14/2007
From: Toledo, Ohio
Status: offline
The information about satellites and their orbits seems to require a secret password and sacrifice of a virgin to access. I only mean that it is very hard to figure out. What I would like to do is copy the satellite information from a known satellite and then just paste it into a new satellite that I am adding to the scenario.

So specifically the USSR stopped putting US-A RORSAT satellites up after 1988 largely due to the international pressure after one spread radioactive debris across northern Canada when it deorbitted. My thinking is that is all well and good but if a shooting war broke out they would throw some back up as fast as possible.

So my thinking was just choose a date where one of these little monsters was in orbit, add it to the scenario, use a LUA script to extract my information, then copy it to a satellite I am adding to my post 1988 scenario.

However, lacking the secret decoder ring required to access such information, I am at a loss. Is there a way to do this

(This entire post while real is written very tongue-in-cheek. Please nobody take offense thinking I am mocking, insulting, or disrespecting the devs)

_____________________________

"We have met the enemy and they are ours" - Commodore O.H. Perry
Post #: 1
RE: Copying a Satellite - 6/28/2020 7:32:41 AM   
KnightHawk75

 

Posts: 866
Joined: 11/15/2018
Status: offline
So I don't think you can do that place and fast-forward time thing, cause I think they coded it to obey the deorbiting date. :(
Well actually, in the purest sense you can script-add deorbited sats, but they get locked to lat\lon 0.0\0.0 which is invalid ingame and will not show up, but the units objects themselves exist.

Now you can place one, and grab the sensor data you want off of it (or just look it up in the database DataSatelite, DataSateliteComms, DataSateliteSensors,etc), and stick that on an existing one that is still in orbit, however sats have type and category that you can't change and I can't offer much insight into how if at all that effects them in the game, for example the 33x RORSAT's are actually of type MASINT not RORSAT, how does that matter if it does, idk, from my limited experience doesn't matter too much atm. On the category it's none,geostationary, other, and reusablevehicle(for x-37b). You can also apply the TLE orbit data from those old RORSAT's to a given SAT of similar type who's still in orbit and of similar orbit type, if you wanted a particular orbit of a particular rorsat - or in theory your own oribt with user supplied TLE.

For instances and I don't know if this is the data you are looking for, the last of the USSR US-A RORSAT's was this guy apparently:
Kosmos 1932
Launch: 1988-03-14 00:00:00
Deorbit: 1988-05-20 00:00:00 (malfunctioned)
Inclination: 64.9
Perigee: 250.0
Apogee:263.0
OrbitalPeriod:89.63
Plane (options are 1001-none 2001 east 2002 west): 1001 (None)
TLE: empty (in db)
TLE: (per Celes Trak db)
COSMOS 1932
1 18957U 88019A 20179.87780374 -.00000067 00000-0 19462-4 0 9999
2 18957 65.0451 329.9962 0059909 254.4223 105.0217 13.79684050628349

Comms: Punchbow RORSAT downlink (commsid=244 for updateunit call)
Sensors: High Spy [RORSAT] (sensorid=2871 for updateunit call )
evasive OODA: 111 - which is only sats that have a really long evasive OODA. You can't dupe that on another though.


When it comes to TLE and adding sats and the nearly undocumented unit:updateoribt() method which is partially broken well...
Search the LUA forums here for 'orbit' or 'TLE', what little I else know about screwing with sats has already been posted.
most recently this one http://www.matrixgames.com/forums/fb.asp?m=4726924

There are some sites out that can help with TLE's.
https://www.space-track.org/documentation#tle <-- spec
https://en.wikipedia.org/wiki/Two-line_element_set <--spec
https://www.vcalc.com/wiki/MichaelBartmess/TLE+Checksum <-- this one I had bookmarked for checking my checksum math.
https://celestrak.com/satcat/search.php <-- database of Sats and if available TLE's

That said I've never successfully updated an orbit to my own attempted TLE even when seemingly correctly formatted and checksum'd, that said orbital math gives me a serious headache so definitely possible I just screwed up somewhere, because I don't understand 2/3rds of it and don't think I ever will. I have updated an existing sat in-game with another existing sat's TLE data, so unit:updateorbit() functions, as does AddUnit(), well sort of (the orbitid\guid params are borked see below), but on :updateorbit() you just have to get every thing exactly right, not just in the formatting but probably the data as well.

Lets tie this together. To try to turn something else into something like a RORSAT, take some semi random one that is of type MASINT and Category 1001 and still afloat in the database let's take DBID 45 Lacrosse series for example, and it matches the orbital Plane 1001 as well.
There are 5 Lacrosse's each with it's own orbit. Let's use #5 or in CMO speak orbit #5 (2005-016A Mission - USA 182) launched in 2005.
By default it's got comm link 233 (Reconnaissance Satellite Downlink)... we could leave it or we could keep it up to you.
By default it's got sensor 4471 (Generic Satellite SAR)... we could leave it or we could keep it up to you.
local function AddCustomRORSat(mySide)
  --doesn't matter where we create it lat\lon, in 1 second it will update it's position where it should be for the given date\time
  --**and yes that's correct you HAVE to give it a guid matching the orbit for it to work, which DESPERATELY needs to be fixed.
  --**The gui add process gives it a correct guid by comparison.
  --**So yes the entire guid for this unit is going to be .... '5', so unless needed create the sat via the gui first.
  --**So yes this will limit you to only adding non-conflicting orbit numbers via script atm.
  local myUnit = ScenEdit_AddUnit({side=mySide,name='myFakeRORSAT',type='Satellite',dbid=45,orbit='5',guid='5',Latitude='23',Longitude='112'}) 
  ScenEdit_UpdateUnit({guid=myUnit.guid, mode='remove_sensor', dbid=4471}) -- remove gen sat sar 
  ScenEdit_UpdateUnit({guid=myUnit.guid, mode='add_sensor', dbid=2871, arc_detect={'360'}, arc_track={'360'}}); --add high-spy
  ScenEdit_UpdateUnit({guid=myUnit.guid, mode='remove_comms', dbid=233}); --remove comms
  ScenEdit_UpdateUnit({guid=myUnit.guid, mode='add_comms', dbid=244}); --add rorsat comms
  --now let's give it a new orbit of the old COSMOS 1932. You can change the name btw not that it matters.
  --every space matters, formatting must be exact.note we added the \n lua new line char but no spaces.
  local myTLE = 'COSMOS 1932\n1 18957U 88019A   20179.87780374 -.00000067  00000-0  19462-4 0  9999\n2 18957  65.0451 329.9962 0059909 254.4223 105.0217 13.79684050628349'
  myUnit:updateorbit({TLE=myTLE}) -- use it.
end
AddCustomRORSat('Red')
local myUnit = SE_GetUnit({guid='5'}) --  lol
print(myUnit)


Does this help?


< Message edited by KnightHawk75 -- 6/28/2020 7:37:34 AM >

(in reply to vettim89)
Post #: 2
RE: Copying a Satellite - 6/28/2020 3:43:44 PM   
vettim89


Posts: 3577
Joined: 7/14/2007
From: Toledo, Ohio
Status: offline
Yes, that is exactly what I was thinking - using the orbit data from an actual US-A satellite that would not be active during the time of the scenario and copying that info into a satellite you add via lua just like you demonstrated.

But my question is where did you get the TLE data you used?

_____________________________

"We have met the enemy and they are ours" - Commodore O.H. Perry

(in reply to KnightHawk75)
Post #: 3
RE: Copying a Satellite - 6/29/2020 1:14:19 AM   
KnightHawk75

 

Posts: 866
Joined: 11/15/2018
Status: offline
quote:

But my question is where did you get the TLE data you used?


It's noted twice in the post where I got it from.

quote:

TLE: (per Celes Trak db)
COSMOS 1932
1 18957U 88019A 20179.87780374 -.00000067 00000-0 19462-4 0 9999
2 18957 65.0451 329.9962 0059909 254.4223 105.0217 13.79684050628349
...

https://celestrak.com/satcat/search.php <-- database of Sats and if available TLE's
...




< Message edited by KnightHawk75 -- 6/29/2020 1:17:48 AM >

(in reply to vettim89)
Post #: 4
RE: Copying a Satellite - 6/29/2020 2:54:19 PM   
vettim89


Posts: 3577
Joined: 7/14/2007
From: Toledo, Ohio
Status: offline

quote:

ORIGINAL: KnightHawk75

quote:

But my question is where did you get the TLE data you used?


It's noted twice in the post where I got it from.

quote:

TLE: (per Celes Trak db)
COSMOS 1932
1 18957U 88019A 20179.87780374 -.00000067 00000-0 19462-4 0 9999
2 18957 65.0451 329.9962 0059909 254.4223 105.0217 13.79684050628349
...

https://celestrak.com/satcat/search.php <-- database of Sats and if available TLE's
...





Missed that - my apologies. Interesting solution and certainly a viable work around

_____________________________

"We have met the enemy and they are ours" - Commodore O.H. Perry

(in reply to KnightHawk75)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Copying a Satellite Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.195