Arriving in a new galaxy

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Arriving in a new galaxy

Post by Disembodied »

Not so much a bug as a typo, I think: jumping in to Galaxy 4 I got a brief flash of text welcoming me to Galaxy 3 ...
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

I seem to remember that being reported before. A couple of months ago at least.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Arriving in a new galaxy

Post by JensAyton »

Disembodied wrote:
Not so much a bug as a typo, I think: jumping in to Galaxy 4 I got a brief flash of text welcoming me to Galaxy 3 ...
That text isn’t coming from core Oolite.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Tut. You're right, it's in the Galactic Navy OXP scripts. It says

Code: Select all

this.playerEnteredNewGalaxy = function(galaxyNumber)
{
	if(missionVariables.reserve_status == "STATUS_ENLISTED")
		player.consoleMessage("Gal Navy: Transferring you to Galaxy " + galaxyNumber + "'s Naval jurisdiction.");

	if(missionVariables.reserve_offer != "OFFER_OPEN" && missionVariables.reserve_offer != "MISSION_ACCOMPLISHED" && missionVariables.reserve_offer != "OBJECTIVES_COMPLETE" && missionVariables.reserve_offer != "OFFER_COMPLETED")
	{
		player.consoleMessage("Gal Navy: You have left the galaxy your mission was assigned in.");
		player.consoleMessage("Gal Navy: Please report to the nearest SecCom station for another mission.");
		this.ReserveDutyCleanup();
	}
	
}
Presumably it needs to be

Code: Select all

player.consoleMessage("Gal Navy: Transferring you to Galaxy " + galaxyNumber+1 + "'s Naval jurisdiction.");
?

Or would that be too easy?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Quite correct.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Ahruman wrote:
Quite correct.
:lol:

OK, fair enough. It should of course be changed to

Code: Select all

player.consoleMessage("Gal Navy: Transferring you to Galaxy " + (galaxyNumber+1) + "'s Naval jurisdiction.");
My new clone, Testy O'Pilot, has just jumped into Galaxy 5 and got welcomed to Galaxy 5's jurisdiction. After being surprised, on his previous flight, to receive a welcome to Galaxy 41 ...

If anyone else wants to make this massive bugfix, and doesn't mind taking programming hints from Testy O'Pilot, open up the Galactic Navy OXP, open up the Scripts, find "galnavymain.js" and change

Code: Select all

player.consoleMessage("Gal Navy: Transferring you to Galaxy " + galaxyNumber + "'s Naval jurisdiction.");
to

Code: Select all

player.consoleMessage("Gal Navy: Transferring you to Galaxy " + (galaxyNumber+1) + "'s Naval jurisdiction.");
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

can't find this code. which script is it in?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

JazHaz wrote:
can't find this code. which script is it in?
It's in "galnavymain.js", in Galactic Navy version 5.2.2.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

Disembodied wrote:
JazHaz wrote:
can't find this code. which script is it in?
It's in "galnavymain.js", in Galactic Navy version 5.2.2.
Thanks! Although I seemed to have missed you saying that in the corrected script response! :oops:
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
Post Reply