Alternative Contracts Interface

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

Wildeblood wrote:
if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Sorry to report that that's not making any difference.. :(
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Alternative Contracts Interface

Post by Smivs »

Is it missing a couple of '=' ?

Code: Select all

if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Alternative Contracts Interface

Post by Wildeblood »

Diziet Sma wrote:
Wildeblood wrote:
if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Sorry to report that that's not making any difference.. :(
Yeah, the boolean is called just .docked, not .isDocked. :evil: Try this:-

Code: Select all

this.guiScreenChanged = function()
   {
   if (player.ship.docked) return;
   if (guiScreen !== "GUI_SCREEN_MAIN")
      {
      player.ship.hudHidden = false;
      return;
      }
   }
If that doesn't fix it... well, it should.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

Smivs wrote:
Is it missing a couple of '=' ?

Code: Select all

if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Doh! Yep.. that fixed it.. :lol:

Ya know, I even wondered about that when I first looked at it, but figured Wildeblood knows this stuff way better than I do, so I assumed !player.ship.isDocked must be the correct usage.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

Wildeblood wrote:
Diziet Sma wrote:
Wildeblood wrote:
if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Sorry to report that that's not making any difference.. :(
Yeah, the boolean is called just .docked, not .isDocked. :evil: Try this:-

Code: Select all

this.guiScreenChanged = function()
   {
   if (player.ship.docked) return;
   if (guiScreen !== "GUI_SCREEN_MAIN")
      {
      player.ship.hudHidden = false;
      return;
      }
   }
If that doesn't fix it... well, it should.
It does! Many thanks! 8)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Alternative Contracts Interface

Post by Wildeblood »

Diziet Sma wrote:
Smivs wrote:
Is it missing a couple of '=' ?

Code: Select all

if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Doh! Yep.. that fixed it.. :lol:
That's un-possible.
Diziet Sma wrote:
Ya know, I even wondered about that when I first looked at it, but figured Wildeblood knows this stuff way better than I do, so I assumed !player.ship.isDocked must be the correct usage.
It is, except it should have been !player.ship.docked
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

Wildeblood wrote:
Diziet Sma wrote:
Smivs wrote:
Is it missing a couple of '=' ?

Code: Select all

if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Doh! Yep.. that fixed it.. :lol:
That's un-possible.
Well, it worked. Try it yourself if you don't believe me.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Alternative Contracts Interface

Post by Wildeblood »

Diziet Sma wrote:
Wildeblood wrote:
Smivs wrote:
Is it missing a couple of '=' ?

Code: Select all

if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
That's un-possible.
Well, it worked. Try it yourself if you don't believe me.
I don' need to try it. :D It appeared to work because it stopped the script at the point you wanted it to stop. But it would also stop at the same point whether you were docked or not.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

Fair enough.. :lol:

(Thanks for the second fix) :D
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Alternative Contracts Interface

Post by Wildeblood »

I hope you tested it properly, Diziet Sma, because I just uploaded it without testing it myself. :oops:
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Alternative Contracts Interface

Post by Diziet Sma »

I wouldn't say "thoroughly", but it all seems to work correctly so far..

No hud in external views, and the Contract Interface looks the way it should. 8)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Post Reply