Search found 38 matches

by hjsmuc
Thu Mar 14, 2024 2:44 pm
Forum: Virtual Sailor NG
Topic: Wind beta formula in VSNG
Replies: 1
Views: 563

Re: Wind beta formula in VSNG

I think I found it. Similar to the vehicle beta π/180 is used and the formula should be:
decimal = (degrees - 180) * (π / 180) if beta value is >180
decimal = (degrees - 180) * (π / 180) + 2π if beta value is <180
by hjsmuc
Thu Mar 14, 2024 1:44 pm
Forum: Virtual Sailor NG
Topic: Wind beta formula in VSNG
Replies: 1
Views: 563

Wind beta formula in VSNG

Hello, does by chance anyone know which formula Ilan used for the wind_beta value in the situation files? I can't find out how the decimal value in the file is derived from the wind direction in the sim. Thanks.
by hjsmuc
Wed Jan 10, 2024 2:40 pm
Forum: Virtual Sailor NG
Topic: VS NG performance failures
Replies: 51
Views: 34241

Re: VS NG performance failures

I tried the tool. While it seems to improve AA with not much of a frame hit, it also produced some weird artefacts and flickering. I am afraid it is not really suitable for VSNG.
by hjsmuc
Thu Jul 27, 2023 10:17 am
Forum: Virtual Sailor NG
Topic: NMEA Signal to Android/IOS Apps
Replies: 2
Views: 3000

Re: NMEA Signal to Android/IOS Apps

Have you tried the Android version of OpenCPN and adding a TCP connection to it with the parameters from VSNG's NMEA output?
by hjsmuc
Sat Jul 15, 2023 6:27 am
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

Here is what ChatGPT managed to do after some heated discussion, give it a try. Happy to hear what you think and please point out bugs or omissions. import os import math from math import radians, degrees, sin, cos, atan2, sqrt def dead_reckoning(lat, lon, course, speed, hours, wind_speed, wind_dire...
by hjsmuc
Wed Jul 12, 2023 10:46 am
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

Here it it is, that's yours after one more run with ChatGPT. I'll send mine later. import math import random import os from datetime import datetime def get_ship_coordinates(file_path, ship_name): with open(file_path, 'r') as file: lines = file.readlines() for i in range(len(lines)): if lines .start...
by hjsmuc
Wed Jul 05, 2023 8:21 pm
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

SOLVED: Not sure I get it. When I run your script I get the error IndentationError: expected an indented block after function definition on line 6 I modified the location of the VS situations and also the name of my last situation. Also tried with just entering the path to the VS situations. I ran y...
by hjsmuc
Wed Jul 05, 2023 7:17 pm
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

I guess you have a better understanding of ChatGPT's character. Do I understand correctly that VS has to run to use your script? Mine was intended to work without VS.
by hjsmuc
Wed Jul 05, 2023 5:40 pm
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

That's amazing, I will try it out later. I spent some time today to try my own script, but compared to yours mine is quite crappy. I didn't manage to tell it to properly consider longitude and latitude when calculating the new position. Please don't laugh too loud. import os import math from geopy i...
by hjsmuc
Wed Jul 05, 2023 9:05 am
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

In my situation file the speed is given as 3.88 while the real speed is 7.5, and the heading is given as -2.97 while the heading in game is 190. How are these values to be translated? It seems that the speed in the file is 50% of the real speed and that one degree of heading is multiplied with 0,017...
by hjsmuc
Tue Jul 04, 2023 8:10 pm
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

I am at a very early state of tinkering with that. The idea is to read the VS situation file, take the necessary data to start a dead reckoning for a future time and then rewrite the position information back into the situation file. This would allow to run the ship offline during the night or other...
by hjsmuc
Tue Jul 04, 2023 4:09 pm
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

Wow, thanks a lot for taking the time to explain in that detail. Great job.
by hjsmuc
Tue Jul 04, 2023 10:28 am
Forum: Virtual Sailor NG
Topic: Python code for Celestial Navigation in VSNG
Replies: 19
Views: 7209

Re: Python code for Celestial Navigation in VSNG

That sounds great, however it goes a bit beyond my technical comprehension. Would you mind explaining it by an in-game example? Also, any explanation of how you asked AI to write that script? I would like to try something similar with an offline dead reckoning script. Thanks.
by hjsmuc
Fri Jun 09, 2023 11:05 am
Forum: Virtual Sailor NG
Topic: Long Distance - Reatime voyages?
Replies: 24
Views: 19782

Re: Long Distance - Reatime voyages?

Truly looking forward to this. In the meantime, do you think it would be possible to write a script which takes the position, speed and course of a vessel upon shutting down VS and from there doing sort of a dead reckoning to get the position updated regularly, finally writing back the new position ...
by hjsmuc
Thu Jun 08, 2023 11:34 am
Forum: Virtual Sailor NG
Topic: Long Distance - Reatime voyages?
Replies: 24
Views: 19782

Re: Long Distance - Reatime voyages?

That's a nifty feature with the Windy map. I think there are lots of options to deal with ship movement data.
by hjsmuc
Mon Jun 05, 2023 1:20 pm
Forum: Vehicle Simulator
Topic: graphics park?
Replies: 1
Views: 28954

Re: graphics park?

I am afraid that the models are gone for new customers. I have no idea what happened to Steve and why the site disappeared. He made fabulous models and I hope that nothing too bad happened to him.
by hjsmuc
Mon Jun 05, 2023 9:42 am
Forum: Virtual Sailor NG
Topic: Long Distance - Reatime voyages?
Replies: 24
Views: 19782

Re: Long Distance - Reatime voyages?

Hi Sean, Thank you. I had an idea that you access your whole PC remotely to control VS. Now, if there was a tool which enables us to see our ship and its waypoints through a server, this would be great. Similar to how Sailaway does it, in a perfect world the option of an offline mode would be added ...
by hjsmuc
Sun Jun 04, 2023 8:28 pm
Forum: Virtual Sailor NG
Topic: Flightplan conversion tool
Replies: 4
Views: 6157

Re: Flightplan conversion tool

Great job, thank you.
by hjsmuc
Sun Jun 04, 2023 2:32 pm
Forum: Virtual Sailor NG
Topic: Long Distance - Reatime voyages?
Replies: 24
Views: 19782

Re: Long Distance - Reatime voyages?

Sean, if I may ask, how do you get control over VS from a tablet and how do you broadcast the voyage to Twitch? Which tools are needed for that?
Cheers, Hans.
by hjsmuc
Sat Aug 27, 2022 4:30 pm
Forum: Virtual Sailor NG
Topic: V 9.8 crashes - Solved
Replies: 3
Views: 4071

Re: V 9.8 crashes

I just found out that the weather menu crash apparently does only happen if the 32bit exe is used. For some reason, my shortcut had pointed to that executable.
by hjsmuc
Sat Aug 27, 2022 4:24 pm
Forum: Virtual Sailor NG
Topic: V 9.8 crashes - Solved
Replies: 3
Views: 4071

Re: V 9.8 crashes

It happens randomly, but can be always reproduced when accessing the weather menu.
by hjsmuc
Sat Aug 27, 2022 4:07 pm
Forum: Virtual Sailor NG
Topic: V 9.8 crashes - Solved
Replies: 3
Views: 4071

V 9.8 crashes - Solved

Hello, I updated to version 9.8, but it crashes every time, either while loading the situation or when going to the weather settings.
Win10 with the latest Nvidia Driver. Anyone else having these issues? Thanks.
by hjsmuc
Thu Jun 09, 2022 6:01 pm
Forum: Virtual Sailor NG
Topic: Screenshots
Replies: 47
Views: 366684

Re: Screenshots

Thanks, great idea.
by hjsmuc
Thu Jun 09, 2022 4:38 pm
Forum: Virtual Sailor NG
Topic: Screenshots
Replies: 47
Views: 366684

Re: Screenshots

Interesting, how did you grab the map? Screenshot or some export function? And which map background file did you replace in VS? I tried it with a scenery map but that resulted in a strange look. Thanks for a heads up.
by hjsmuc
Wed Feb 23, 2022 6:24 pm
Forum: Virtual Sailor NG
Topic: Docking lines and saved situation
Replies: 1
Views: 3884

Re: Docking lines and saved situation

That was solved in 9.5. Thank you Ilan.
by hjsmuc
Fri Jan 28, 2022 5:34 pm
Forum: Virtual Sailor NG
Topic: Docking lines and saved situation
Replies: 1
Views: 3884

Docking lines and saved situation

Hello, has anybody noticed that the docking line positions, i.e. the connection to the docking points on the pier, are not saved with the situation? Is that related to the ship model or the scenery used or both? Anchor settings seem to come back properly after a reload of the scenery.
by hjsmuc
Fri Dec 17, 2021 5:49 pm
Forum: General Notifications
Topic: PM outbox
Replies: 2
Views: 37928

PM outbox

Hello,

Quick question: I have a PM which appears as sent, but in my outbox, not doesn't show up in the sent messages folder.

Should I assume that it was sent or rather that it is stuck in the outbox?

Thanks
Hans
by hjsmuc
Sun Dec 05, 2021 12:42 am
Forum: Release notes
Topic: Virtual Sailor 9.2 is out
Replies: 10
Views: 26310

Re: Virtual Sailor 9.2 is out

Amazing list of improvements. Thanks a lot.
by hjsmuc
Fri Nov 05, 2021 12:00 pm
Forum: Virtual Sailor NG
Topic: OpenCpn and VS NG Gps
Replies: 10
Views: 18619

Re: OpenCpn and VS NG Gps

I found out why it did not work. The kml file needs to have this entry: <name>OpenCPN Route</name> The file can have any name as long as the extension is .kml and the above entry is in the body. If you want to use qtvlm to create your routes you can do so, export them as .gpx file, import that one i...