SR2Logger-PSMap
Hi All,
With the help of plenty of community members (WNP, pedro, nathan, cofi, mario, nota, mod), I've managed to leverage the output of SR2Logger to create an external real time map.
Basic features:
- Resizable window which scales everything accordingly (automaintains a 2:1 aspect ratio for mapping)
- Shows 'realtime' position of craft
- Shows 'realtime' heading of craft
- Completely written in powershell (requires no additional software on windows)
Requires
- SR2Logger mod installed and enabled
Download / Links
SR2Logger-PSMap - Script files for PSMap (as part of a SR2Logger fork)
SR2Logger Mod Download - SR2 Beta ONLY
-
Installation notes
- Make sure you are running the Beta branch of SimpleRockets 2 in steam
- Download, install, and enable the SR2Logger mod in SR2 (2nd link)
- Close SR2
- Download and extract the zip from the repo link below. the PSMap files are located in:
- <extractionpath>SR2Logger/SR2Logger-Addons/PSMap
- Before SR2 is running, launch the script:
- SR2Logger/SR2Logger-Addons/PSMap/SR2Logger-PSMap-v0.1.ps1
- How to launch:
- Open a new powershell console (Windows Key + R, type: powershell, hit Enter)
- Navigate to the directory which contains the script files:
- cd <fullpath>
- example:
- cd C:\gitdirectory\SR2Logger\SR2Logger-Addons\PSMap
- Execute the script:
- .\SR2Logger-PSMap-v0.1.ps1
- Now Launch SR2
- Load whatever craft you would like
- Add the gizmo "SR2Logger-PSMap" somewhere on your craft
- Launch craft
- To enable map connection: Activate AG3
- (you can change this to whatever AG on the SR2Logger-PSMap gizmo)
In the future, you can launch the script whenever you like, but the process above ensures that the prefab'd gizmo and SR2Logger_PSMap flight program assets are available when you first try PSMap.
Additional notes and details
It does feature some advanced powershell(and programming in general) concepts such as classes and runspaces, but should be very familiar to anyone comfortable with C#, as it leverages a lot of the same structures, but simplified (imagine c# had a baby with python)
I've uploaded a copy of the mod I compiled on my own Windows 10 machine. The mod is currently staged in the website mods list, but not currently available, so only making this available through the post to enable people to try using PSMap.
Possible future features
- orbit display
- flightpath display/history
- day/night positions
- network functionality (see where your friends are flying!)
- Aperture Radar parts so that you have to scan planetary surface to use the map: giving a purpose of launching sats [AnotherFirefox]
@PorkyClown3 I plan to do that, however this was more a proof of concept and a few people said they’d like to have an external map so I just ripped the map part of the code out of the larger project and put it together.
Currently working on a powershell based panel system which could be (I think) completely customizeable from vizzy, provided you have the SR2Logger mod enabled, and an operating Orange Black Box.
I’ll make a newer map ‘Panel’ as part of some built in panels in the project, and that version will be where I put any improvements