[RELEASE] ILS Instrument Landing System v1.13

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 813
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by RockDoctor »

Cholmondely wrote: Sun Aug 14, 2022 1:57 pm
Downside Up!

Am I correct in presuming that ILS always docks upside down?
I've noticed this too. I've always assumed that the code finds the "orientation vector" for the target, does some calculation upon it to get the orientation w.r.t. the view-port's orientation, and somewhere flips a sign in that calculation. Hardly a hanging offence for the programmer (5 strokes of the cat's tail seems more appropriate) but of little consequence. Until someone comes up with a ship and a station with markedly asymmetric docking ports/ envelopes, but I'm not sure if that is possible.
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by hiran »

RockDoctor wrote: Sun Aug 14, 2022 4:08 pm
Cholmondely wrote: Sun Aug 14, 2022 1:57 pm
Downside Up!

Am I correct in presuming that ILS always docks upside down?
I've noticed this too. I've always assumed that the code finds the "orientation vector" for the target, does some calculation upon it to get the orientation w.r.t. the view-port's orientation, and somewhere flips a sign in that calculation. Hardly a hanging offence for the programmer (5 strokes of the cat's tail seems more appropriate) but of little consequence. Until someone comes up with a ship and a station with markedly asymmetric docking ports/ envelopes, but I'm not sure if that is possible.
As in space there is no real 'up' or 'down' without setting a reference system and the stations I docked with are constantly rotating this is completely meaningless. At most one could notice the orientation of a docking port on spaceships.
Sunshine - Moonlight - Good Times - Oolite
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by Slartibartfast »

Hi

but its more nice to read the banners without a headstand. ;-)

btw. with Docking-Computer -- i think ~75% -- same (little) issue
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by hiran »

Slartibartfast wrote: Tue Aug 23, 2022 6:55 pm
Hi

but its more nice to read the banners without a headstand. ;-)

btw. with Docking-Computer -- i think ~75% -- same (little) issue
Oh, then there *is* some difference. I did not think of that...
Sunshine - Moonlight - Good Times - Oolite
User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 813
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by RockDoctor »

hiran wrote: Tue Aug 23, 2022 6:43 pm
As in space there is no real 'up' or 'down' without setting a reference system and the stations I docked with are constantly rotating this is completely meaningless. At most one could notice the orientation of a docking port on spaceships.
At some point there is very likely to be a "handedness" to real-world docking - I was just having to fill out a (totally pointless), dole-satisfying job application for building gas systems where it matters which line goes to "sample gas", which one to "calibration gas", and which one to "pneumatic supply", using otherwise identical connectors ; connect them wrongly and expensive components die, expensively).
More prosaically, you'd probably object to having your Cobra-III's sewage processing system connected to the high-pressure fuel line, spraying a lovely concoction all over the living spaces.

More prosaically, some of the hangers (Astromine Penal colonies, IIRC) have already got something docked in one corner of the entry bay, which would probably preclude an Anaconda fitting there, even if a Cobra-III would fit. I assume that someone, at some point, intends / intended to make a game point out of that.
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
User avatar
Cholmondely
Archivist
Archivist
Posts: 5365
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: [RELEASE] ILS Instrument Landing System v1.15

Post by Cholmondely »

dybal wrote: Fri Oct 21, 2022 6:59 pm
After a while, it gets boring...


Dybal - thank you for the update to ILS (v1.15) - I'm looking forwards to landing the right-way up!

Will you be producing a new version for v.1.92 which can then be controlled by one of Phkb's three-zillion-and-one "Fast Activation buttons"?

And what do you think of cag's new version of Telescope (and his Station Options)?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 462
Joined: Mon Sep 17, 2018 5:01 pm

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by Milo »

Using 1.15 (and 1.14 until the update), my Kirin Sport starts rotating inside the dock (or loses sync with the station rotation?) during the final moments of approach. Haven't tried with other ships.
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by dybal »

Milo wrote: Wed Oct 26, 2022 5:01 pm
Using 1.15 (and 1.14 until the update), my Kirin Sport starts rotating inside the dock (or loses sync with the station rotation?) during the final moments of approach. Haven't tried with other ships.
It rotates a few degrees then switch to the in-station screens? No crash?

If yes, I have seen it too (as my actual commander finally got an usable derelict big enough to require rotation sync for docking).

My guess is that the player ship status reflects his new docked status (the code looks for ship.isInSpace and player.dockingClearanceStatus) before the switch to the in-station GUI and the last frame callback disengages ILS and doesn't update the ship orientation for the station orientation change since last callback.

Fixing it (if my guess is right...) would need a fairly extensive re-factoring of the FCB function code... it's something I want to do for clarity purposes if nothing else (right now the code is really hard to follow), but it's a lot of work and would certainly introduce quite a few new bugs to be squashed - and the last is the reason I haven't done it...
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: [RELEASE] ILS Instrument Landing System v1.15

Post by dybal »

Cholmondely wrote: Wed Oct 26, 2022 4:45 pm
dybal wrote: Fri Oct 21, 2022 6:59 pm
After a while, it gets boring...
Dybal - thank you for the update to ILS (v1.15) - I'm looking forwards to landing the right-way up!
Hopefully... I found something that could explain it and fixed, but I haven't docked anywhere I could be certain of which side of the dock is up since my commander "found" an usable Cobra III-XT (the previous ships didn't require rotation for docking)
Will you be producing a new version for v.1.92 which can then be controlled by one of Phkb's three-zillion-and-one "Fast Activation buttons"?
I haven't looked into it... the only time I compiled the 1.91 dev core game it didn't run because it required a higher GL version than my graphics driver implemented (something related to the rendering to frame buffer they were working at the time).

But ILS isn't a primed equipment, so while more fast-activation keys would be *very* welcome (I have use for at least 3...), ILS couldn't use them without quite a bit of change in how it works.
And what do you think of cag's new version of Telescope (and his Station Options)?
I was a beta-tester for Telescope 2.0 for most of 2020, and very happy to see when I came back that he (finally! 8)) thought it ready to release. It sometimes crash on me, but I only know it because I play with the Latest.log being displayed, so I see the stack dump, since it recovers "gracefully". The MFDs sometimes lags quite a bit (10s+) to show the ships that got into scanner range, but that's the only problem I remember.
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 462
Joined: Mon Sep 17, 2018 5:01 pm

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by Milo »

dybal wrote: Wed Oct 26, 2022 11:39 pm
It rotates a few degrees then switch to the in-station screens? No crash?
Yes, no crash so far. I haven't tried it at low speeds so unsure if it's just the final frame.
User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 813
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by RockDoctor »

Milo wrote: Thu Oct 27, 2022 12:20 am
dybal wrote: Wed Oct 26, 2022 11:39 pm
It rotates a few degrees then switch to the in-station screens? No crash?
Yes, no crash so far. I haven't tried it at low speeds so unsure if it's just the final frame.
I see the same thing on my laptop (which I don't think has a shaders-capable graphics chip) when docking on ILS, but not on those occasions that I use regular docking computers to do the stage-by stage docking to the tune of Blue Danube.
I haven't tried it on the desktop, which I put in a relatively proper graphics card, specifically for Oolite. I'll check that tonight.
For me, the rotation pause lasts about 1 second, which would be 6-10 frames, if that's any relevance.
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by dybal »

Milo wrote: Thu Oct 27, 2022 12:20 am
dybal wrote: Wed Oct 26, 2022 11:39 pm
It rotates a few degrees then switch to the in-station screens? No crash?
Yes, no crash so far. I haven't tried it at low speeds so unsure if it's just the final frame.
I think I found out what is happening... it's not that the playership's show it as docked before the docking tunnel animation, it's that its position in "behind" the plane that "closes" the docking bay entrance (since the ship is actually inside the docking bay) and that's the condition the code looks before engaging ILS (to avoid trying to get to the ILS waypoint through the station...), and the FCB as it is starts with ILS disengaged and looks for all conditions in each iteration... I will see if I can write some small alteration to deal with that (instead of that re-factoring I talked about...)
User avatar
Cholmondely
Archivist
Archivist
Posts: 5365
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: [RELEASE] ILS Instrument Landing System v1.13

Post by Cholmondely »

Norby wrote: Wed Dec 02, 2015 8:52 pm
I can add a warning message
Norby: how do I do this? I fail dismally whenever I try...
If you target the station while another ship is using ILS then you lock on the landing ship - a help to find where it is. If you keep the station in your crosshairs when the current ship arrives into the dock then you get the right to use ILS regardless of whether there are others in the queue.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply