OMP Support

Status
Not open for further replies.

RacerX

Donator
Donator
Joined
Jan 3, 2012
Messages
303
Reaction score
9
Points
18
Location
in a field
Thanks Face! question, does the <mjdstring> include the time also or just the date? Is this what you mean by the "Double Value" in your post? Would this be the correct syntax?
MJD="01.02.2012" or MJD="01.02.2012""12:00:00"
Are both correct?

BTW Face I think I found a typo in the OMP.pdf Documentation page 12
It reads:
"ATTENTION: Use quotes
to ensure date (“YYYY.MM.DD”) and time (“HH:MM:SS”) is parsed correctly."
On my end the correct syntax is "MM.DD.YYYY" I dont know if this has to do with windows US standard settings or not. Just thought I would bring it to your attention.
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
Thanks Face! question, does the <mjdstring> include the time also or just the date? Is this what you mean by the "Double Value" in your post? Would this be the correct syntax?
MJD="01.02.2012" or MJD="01.02.2012""12:00:00"
But this date isn't MJD at all. MJD is only a number of days since 1858-11-17 00:00 UTC, with its decimal part for the fraction of the day, like 56089.8081 is the MJD of this post (with ±4 seconds accurancy), and it doesn't contain any years, months, hours, minutes and seconds. You can find more about MJD there: [ame="http://en.wikipedia.org/wiki/Julian_day"]Julian day - Wikipedia, the free encyclopedia[/ame]
 

RacerX

Donator
Donator
Joined
Jan 3, 2012
Messages
303
Reaction score
9
Points
18
Location
in a field
But this date isn't MJD at all. MJD is only a number of days since 1858-11-17 00:00 UTC, with its decimal part for the fraction of the day, like 56089.8081 is the MJD of this post (with ±4 seconds accurancy), and it doesn't contain any years, months, hours, minutes and seconds. You can find more about MJD there: Julian day - Wikipedia, the free encyclopedia
Ah I see what you mean. Because to change the time as server admin manually the syntax is this in Putty/Telnet
mjd reset "MM.DD.YYYY""HH:MM:SS"y
This is where I was confused :cheers:
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
So, I looked at the code there, and you can actually use Gregorian dates to set Orbiter's MJD, but I think there's actually a bug causing your confusion:
BTW Face I think I found a typo in the OMP.pdf Documentation page 12
It reads:
"ATTENTION: Use quotes
to ensure date (“YYYY.MM.DD”) and time (“HH:MM:SS”) is parsed correctly."
On my end the correct syntax is "MM.DD.YYYY" I dont know if this has to do with windows US standard settings or not. Just thought I would bring it to your attention.
I guess this part of documentation is correct for the date format setting used by Face.

I'd personally change every part of the code using this version of DateTime.TryParse method:
Code:
DateTime.TryParse (String, DateTime)
to this one:
Code:
DateTime.TryParse (String, IFormatProvider, DateTimeStyles, DateTime)
 

RacerX

Donator
Donator
Joined
Jan 3, 2012
Messages
303
Reaction score
9
Points
18
Location
in a field
Not having any luck modifiying the MJD
Notepad++ line #2 looks like this
<OMPServerConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="RacingServer" MJD="55932" OrbiterRoot="..\.." SubvisualDistance="1000000000" PromptFormat="({1:HH:mm:ss}){0}" xmlns="http://Orbiter.Multiplayer.Server">
I have tried scenario editor got the date according to Orbiter MJD and then entered that number in Server.xml . I have tried online conversions sites no matter what I enter I can't seem to get the days to change in OMP. When I start client it always displays current realtime MJD. Can anybody confirm this? I don't want to report it on bitbucket unless I know for sure it is not a oversight on my end

Also tried lowercase mjd="55932.909190"
MJD="2012.01.06"
MJD="01.06.2012"
all same result only realtime MJD is being displayed in my client with Vanilla orbiter and OMP 0.7.1
 
Last edited:

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
question, does the <mjdstring> include the time also or just the date?
The <mjdstring> is date and/or time as it is defined by your country settings.

Is this what you mean by the "Double Value" in your post?
No, the double value is - like orb explained - the MJD in its "pure" form, meaning the number and fraction of days since epoch start.

Would this be the correct syntax? MJD="01.02.2012" or MJD="01.02.2012""12:00:00"
Are both correct?
The first is correct if your date format is set that way. The second is incorrect because it is no valid XML syntax. Just replacing the middle quotes with a space should work if this is your set date and time format of the machine you start the server on.
BTW Face I think I found a typo in the OMP.pdf Documentation page 12
It reads:
"ATTENTION: Use quotes to ensure date (“YYYY.MM.DD”) and time (“HH:MM:SS”) is parsed correctly."
On my end the correct syntax is "MM.DD.YYYY" I dont know if this has to do with windows US standard settings or not. Just thought I would bring it to your attention.
Two things here: first, the setting via TCP connection and the XML preset use different approaches. Second, you didn't find a typo, but actually a bug that was brought over from the days of C++-server.

To clarify: my intention was to have the TCP setting culture-free, meaning that no matter what the server's machine country settings are, the syntax for remote-connecting users is always the same. BUT: this I don't want for the XML setting. IMHO, every machine-specific configuration file should also use the culture of that machine. Therefore, the <mjdstring> uses the appropriate syntax of your culture.

The bug you've found is exactly like orb described it, although there is a little more to take into account, as
a) date and time should be displayed in one consistent format throughout the TCP subsystem,
b) input should happen always in the same format as displayed there and
c) the format used is not a standard culture or style.

I'll have to look into that. In the meantime, I have to apology for my mistake that started this conversation: the MJD attribute is not part of the configuration's root element (as for some reason I had still in mind from first implementation approaches), but rather part of the system element:
Code:
...
<Support>
    <System Name="Sol" MJD="10000">
      <Class Name="*" />
      <Location>BEGIN_FOCUS
...
...
...
      </Location>
    </System>
  </Support>
...
Mea culpa, maybe I should read my own documentation more closely ;) .

regards,
Face
 

RacerX

Donator
Donator
Joined
Jan 3, 2012
Messages
303
Reaction score
9
Points
18
Location
in a field
Thanks face it is working now using
<System Name="Sol" MJD="01.06.2012">
Wideawake is now in the daylight :thumbup:
Humm now I will have to find a use for my telnet script :p
 
Last edited:

Ren Dhark

Member
Joined
Jul 30, 2009
Messages
70
Reaction score
0
Points
6
MJD

Thanks for the reply.
I just set a daylight MJD on the official OMP server.
Currently in use <System Name="Sol" MJD="55927.5">, this means OMP server time will be set to Sunday January 1 2012, 12:00:00 on every restart.
 
Last edited:

Ren Dhark

Member
Joined
Jul 30, 2009
Messages
70
Reaction score
0
Points
6
I was not happy with the position of Sun after setting time to January 1. 2012, 12:00:00.
So I set MJD=”55996.5” (10. Mar. 2012, 12:00) on the Orbiter MultiPlayer
Like mentioned above, the date and time format for the console command is according to your country settings. In my case (de-ch), the console command for 10. Mar. 2012, 12:00 (noon) would be:
Code:
mjd reset "10.03.2012""12:00:00"y
and will return MJD TO Samstag März 10 12:00:00 2012 = 55996.5
 
Last edited:
Joined
May 8, 2011
Messages
71
Reaction score
0
Points
6
Location
Pozega, Serbia
Hello, I've just started playing OMP and I'd like to be an active member, if there are other active members, of course. I think you should fix the docking bug. When one player sees he is docked to my docking port I see him as he is docked onto my wing or other absurd, spot. lol. Just saying if there is a way to fix this, I'd like to see it done.
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
When one player sees he is docked to my docking port I see him as he is docked onto my wing or other absurd, spot. lol. Just saying if there is a way to fix this, I'd like to see it done.

You and me both ;) . Do you have a patch handy?
 

Ren Dhark

Member
Joined
Jul 30, 2009
Messages
70
Reaction score
0
Points
6
Docking

Hello, I've just started playing OMP and I'd like to be an active member, if there are other active members, of course.
:cheers:Cheers and Welcome.
I think you should fix the docking bug. When one player sees he is docked to my docking port I see him as he is docked onto my wing or other absurd, spot. lol. Just saying if there is a way to fix this, I'd like to see it done.

As I was your docking partner on that session your talking about, I have to admit that it was first time i seen that "wing-docking". In my vision the docking was nose to nose, but as we undocked, I see my XR2 going away from your XR2 wing.
Is it possible that I was docked to the cargo bay sideways?
I have done docking on OMP many times and you remember we even did a successful dock (yet with editor) at the my shared ISS and there was no lag or visible errors at all.
OMP still is beta and there will be errors and bugs. Active pilots like us can help reproduce the bugs and errors - then report them here - if not already done and not found with the forum search.
I still cant reproduce that docking problem yet. But docking is very delicate and if you not synchronized with the vessel you try to dock, one millisecond out off sync is a long distance at orbital speed.

See you in space
Ren
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
:D What do you mean by patch handy?

OMP is open source, so if you know how to fix the problem you can hack on the code and send me a patch - a code difference sample.

In other words: you don't have to wait for me to fix it, all the code is public, even the history of the development.

The docking troubles are a long-standing problem that I simply had no time to fix yet. I have some ideas how to fix it, and in fact tried several ways, but as you can see I did not succeed yet. That's why I've said I'd like to see it fixed, too.

Forgive me if the question for a patch came across as grumpy, but I simply don't assume that everybody reporting a bug is "just" a user who don't know how to code. Especially not in this community and not with this project (as it is clearly marked as beta). Here my default "mode" is to assume that you are a fellow coder who wants to contribute. Your talk about active membership only added to this.

I guess I've misunderstood you, though. Seems like you are only interested in playing OMP on Ren's server. I think Ren is still hosting free for all to join, so you don't have to register or somesuch to join in. Just connect.

regards,
Face
 
Joined
May 8, 2011
Messages
71
Reaction score
0
Points
6
Location
Pozega, Serbia
Thank you both for the replies, I'm often on TS3 and I wish people would be more active in omp, It's a very fun addon.

Cya in space!
 
Joined
May 8, 2011
Messages
71
Reaction score
0
Points
6
Location
Pozega, Serbia
Now wait a minute here.. I know you said omp has docking issues, but this is just tedious. I just played omp with one guy who is new to it. We both lauched in xr2s and did a rendezvouz and all that.. But when it came to docking... Oh god, whenever I would reach his docking port, I would hear the bolts slamming sound and after a second, we'd get undocked for no reason. He entered retrograde and we tried it that way too, since he'd drift less, but no way, still the same. To add to the frustration, enormous amounts of lag would greet us just seconds before our docking ports would connect, so in any way it is impossible to do. Like I said I know its still beta but is there any way to do it? P.s , yes our nosecones were open and we were all set for docking.
 
Last edited:

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
Now wait a minute here.. I know you said omp has docking issues, but this is just tedious. I just played omp with one guy who is new to it. We both lauched in xr2s and did a rendezvouz and all that.. But when it came to docking... Oh god, whenever I would reach his docking port, I would hear the bolts slamming sound and after a second, we'd get undocked for no reason. He entered retrograde and we tried it that way too, since he'd drift less, but no way, still the same. To add to the frustration, enormous amounts of lag would greet us just seconds before our docking ports would connect, so in any way it is impossible to do. Like I said I know its still beta but is there any way to do it? P.s , yes our nosecones were open and we were all set for docking.

Is this a bug report or a rant?

If the former, I know that docking is not stable, as already stated. If you want to imply that it is impossible to dock in OMP, then I'm afraid there are too much occasions where it worked perfectly to do so. It could well be that the current version Ren is hosting has a bug in there, most probably due to the many ways I tried to fix various short-comings of the current implementation w.r.t. docking.

If the later, well... if you think it will speed up development if you coin terms like "tedious" or "frustration", then you'll be even more disappointed, because it will not. I very well know that debugging OMP can be frustrating, but if you feel so and can't do anything to it besides venting here, it is best to back off from OMP for now. I do it sometimes, too.

regards,
Face
 
Joined
May 8, 2011
Messages
71
Reaction score
0
Points
6
Location
Pozega, Serbia
Is this a bug report or a rant?

If the former, I know that docking is not stable, as already stated. If you want to imply that it is impossible to dock in OMP, then I'm afraid there are too much occasions where it worked perfectly to do so. It could well be that the current version Ren is hosting has a bug in there, most probably due to the many ways I tried to fix various short-comings of the current implementation w.r.t. docking.

If the later, well... if you think it will speed up development if you coin terms like "tedious" or "frustration", then you'll be even more disappointed, because it will not. I very well know that debugging OMP can be frustrating, but if you feel so and can't do anything to it besides venting here, it is best to back off from OMP for now. I do it sometimes, too.

regards,
Face

Uhh.... no need to be rash, I did act with bad temper, but I didn't really intend to rant. Just asking why does it happen with that new player, but not when I dock with Ren. Docking with Ren works pretty stable, so I'm just wondering.
And what I meant by 'impossible' isn't the docking in omp in general, but the docking we attempted in that situation.
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,403
Reaction score
581
Points
153
Location
Vienna
Uhh.... no need to be rash, I did act with bad temper, but I didn't really intend to rant. Just asking why does it happen with that new player, but not when I dock with Ren. Docking with Ren works pretty stable, so I'm just wondering.
And what I meant by 'impossible' isn't the docking in omp in general, but the docking we attempted in that situation.

Well, I was not rashing it, just trying to understand what your intention was with that post. It sure sounded like a rant to me. "Bad temper" could be another word for it, so I see what you mean now.

The question about why it did not happen with Ren - but with this new player - was not clear from that post of yours, either. Now that you say it: it could be that the new player simply had connection troubles, maybe with a bad ping latency, maybe with off-the-track UTC synchronization, maybe using an old client version with a bug in it. More input is needed to nail the exact reason for the observed behaviour down.

If you want to help the project with bug reports, the best way is to approach it systematically. If you see something happen, try to investigate the circumstances that lead to the problem. E.g. try to answer the questions:

  • How many users were connected?
  • What were the versions involved (client/server)?
  • What happened when?
  • Was it reproducable?
  • Any additional addons installed?
Your post was more like: "I'm frustrated because it doesn't work, instead it did these funny things: <insert 2 sentences here>. Tell me what to do to make it work right." The problem with this is: I can understand your frustration, but I can't help you the way you may think I can. Because I don't know why the funny things happened, I can't tell you what to do to make it work right.

regards,
Face
 
Joined
May 8, 2011
Messages
71
Reaction score
0
Points
6
Location
Pozega, Serbia
Well, I was not rashing it, just trying to understand what your intention was with that post. It sure sounded like a rant to me. "Bad temper" could be another word for it, so I see what you mean now.

The question about why it did not happen with Ren - but with this new player - was not clear from that post of yours, either. Now that you say it: it could be that the new player simply had connection troubles, maybe with a bad ping latency, maybe with off-the-track UTC synchronization, maybe using an old client version with a bug in it. More input is needed to nail the exact reason for the observed behaviour down.

If you want to help the project with bug reports, the best way is to approach it systematically. If you see something happen, try to investigate the circumstances that lead to the problem. E.g. try to answer the questions:

  • How many users were connected?
  • What were the versions involved (client/server)?
  • What happened when?
  • Was it reproducable?
  • Any additional addons installed?
Your post was more like: "I'm frustrated because it doesn't work, instead it did these funny things: <insert 2 sentences here>. Tell me what to do to make it work right." The problem with this is: I can understand your frustration, but I can't help you the way you may think I can. Because I don't know why the funny things happened, I can't tell you what to do to make it work right.

regards,
Face

Okay, I flown with RacerX and I foumd out what the problem was. This will help others, too. The thing is,.animations on omp are not shared,.so what do you do? Well you must.open your nosecone and the nosecone of the user yoy want to dock to, from his cockpit. He has to do the same with you. It's so simple and I have no idea why I didn't think of ot before. I am sorry for the ranting. This is 13 signing out.
 
Status
Not open for further replies.
Top