Hello Thomen:
Depends on the power of your cpu. I can run Stellarium in the background and do an ALT-TAB (SH3 full screen) or click on Stellarium Icon with SH3 in Windows mode.
in the Python script file here:
#Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on
win32
#Type "copyright", "credits" or "license()" for more information.
#IDLE 1.2.2
#>>> #By Michael Jones, 01/01/2008.
#This program reads the latitude and longitude data for a
#sub in Silent Hunter III and creates a startup script for
#Stellarium. This sets the Date, Time and Location of the
#sub in Stellarium, allowing players to use celestial navigation in the game.
import string
#read 100. Change the directory on the next line to point to 100.map in your saved
game directory.
f=open("
C:\\Users\\Gamer\\My Documents\\SH3\\data\\cfg\\Careers\\Achilles
\\3\\Achilles.map",'r') <---------------Python gathers what it needs from SH3 (My Documents file)
content= f.read()
f.close()
#find lat & Lon in the file
start = content.find("Waypoint")
longst = content.find("Pt0=",start)
longnd = content.find(",",longst)
latnd = content.find(",",longnd+1)
print start
print longst
print longnd
print latnd
#convert to dec deg
longitude = float(content[longst+4:longnd])/120000
latitude = float(content[longnd+1:latnd])/120000
#get date&time (input)
date = raw_input('yyyy/mm/dd :')
time = raw_input('hh:mm :')
#Write startup script. Change the next line to suit for your Stellarium startup script.
stella=open("
C:\\Stellarium\\scripts\\startup.sts",'w')
stella.write("date utc "+date+"T"+time+":00\n")
stella.write("moveto lon "+str(longitude)+"\n")
stella.write("moveto lat "+str(latitude)+"\n")
stella.write("script action end\n")
stella.close() <----------------Python then makes this "startup" in stellarium
#now open stellarium and take your star sights
"take your **** sights" means clicking on the body when you're in Stellarium...like I've done here below and it gives me the necessary data to go to a time-period almanac to do a sight reduction in order to make a line of position (LOP).
Some modders have already created the UBoat background below.
both python and stellarium are freeware:
www.python.org and
www.stellarium.org
I would dl the newest verion and try it if you're interested.
cheers,