[RELEASE] Iron Raven

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

Moderators: winston, another_commander

Post Reply
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [RELEASE] Iron Raven

Post by Okti »

Commander McLane wrote:
Also

Code: Select all

player.commsMessage("Weiss is probably on board that transport; I'll need to follow it.", 6)
is not valid code anymore.

Between Oolite 1.74 and 1.75 there was an important change in the syntax of commsMessage. The optional parameter specifying how long the message should be shown ('6' in this case) was removed. Instead there is now an optional parameter specifying the receiver of the message. '6' is not a valid ship entity.
Sure :?:
My OXP's
And Latest Mission Coyote's Run
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: [RELEASE] Iron Raven

Post by JensAyton »

Commander McLane wrote:
Also

Code: Select all

player.commsMessage("Weiss is probably on board that transport; I'll need to follow it.", 6)
is not valid code anymore.

Between Oolite 1.74 and 1.75 there was an important change in the syntax of commsMessage. The optional parameter specifying how long the message should be shown ('6' in this case) was removed. Instead there is now an optional parameter specifying the receiver of the message. '6' is not a valid ship entity.
Not true. There are two different commsMessage()es.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] Iron Raven

Post by Commander McLane »

Ahruman wrote:
Not true. There are two different commsMessage()es.
Oops. :oops: I didn't realize this.

Is it a good idea, though, to have two different comms messages?
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [RELEASE] Iron Raven

Post by Okti »

:D :D :D

Edit: No body is perfect :lol:
Last edited by Okti on Mon Mar 21, 2011 10:00 pm, edited 1 time in total.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: [RELEASE] Iron Raven

Post by Kaks »

It's not too helpful, I suppose! Changing player.commsMessage() to maybe player.screenMessage() could possibly make things a bit clearer, but we are in freeze mode.
In hindsight it's weird that nobody noticed / raised any issues about this pair of functions...

AFAIK, they've both been there since at least 1.70: way back when I started playing with the code I just assumed that everybody but me knew of a very good reason why they were called the same, & I thought it better not to attract attention to my ignorance! ;)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [RELEASE] Iron Raven

Post by Okti »

Kaks wrote:
It's not too helpful, I suppose! Changing player.commsMessage() to maybe player.screenMessage() could possibly make things a bit clearer, but we are in freeze mode.
In hindsight it's weird that nobody noticed / raised any issues about this pair of functions...

AFAIK, they've both been there since at least 1.70: way back when I started playing with the code I just assumed that everybody but me knew of a very good reason why they were called the same, & I thought it better not to attract attention to my ignorance! ;)
But you will need to handle all the OXP's written in the previous syntax. And I do not see a point in replacing the syntax. :?:
My OXP's
And Latest Mission Coyote's Run
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] Iron Raven

Post by Commander McLane »

Okti wrote:
But you will need to handle all the OXP's written in the previous syntax. And I do not see a point in replacing the syntax. :?:
The point is to improve the syntax by removing inconsistencies. That's what we all have done time and again, especially since Oolite 1.73. It's what all the deprecation business is about, and it's the reason why there's the 'working with 1.75' column in the Wiki's OXP list, and why some OXPs have a 'N' in that column.

Oolite itself is a work in progress, therefore nothing is set in stone. (That's not strictly true, because currently we are in a feature freeze, and therefore the current state of Oolite is set in stone for the time being, except for bug fixes.) Handling all OXPs written in the previous syntax is what all of us OXP writers have done repeatedly(!) in the last couple of years. Therefore this really isn't an argument against doing it again. You're lucky, because you got into OXPing very late, after the feature freeze, therefore you have the privilege to do your first steps in a stable environment. But this is a rare exception, by no means the rule. I can't count the times when my OXPs had to be re-written because the syntax changed and they stopped working.
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [RELEASE] Iron Raven

Post by Okti »

Though?
My OXP's
And Latest Mission Coyote's Run
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [RELEASE] Iron Raven

Post by Okti »

Commander McLane wrote:
Okti wrote:
But you will need to handle all the OXP's written in the previous syntax. And I do not see a point in replacing the syntax. :?:
The point is to improve the syntax by removing inconsistencies. That's what we all have done time and again, especially since Oolite 1.73. It's what all the deprecation business is about, and it's the reason why there's the 'working with 1.75' column in the Wiki's OXP list, and why some OXPs have a 'N' in that column.

Oolite itself is a work in progress, therefore nothing is set in stone. (That's not strictly true, because currently we are in a feature freeze, and therefore the current state of Oolite is set in stone for the time being, except for bug fixes.) Handling all OXPs written in the previous syntax is what all of us OXP writers have done repeatedly(!) in the last couple of years. Therefore this really isn't an argument against doing it again. You're lucky, because you got into OXPing very late, after the feature freeze, therefore you have the privilege to do your first steps in a stable environment. But this is a rare exception, by no means the rule. I can't count the times when my OXPs had to be re-written because the syntax changed and they stopped working.
Also, If you are forced to change your OXP's, that means they are still in demand and they are not dead. You probably know end to a development means, no one is using the software :D

I hope to change my OXP's to oolite 2.0 and hopefully to oolite 3.0.
My OXP's
And Latest Mission Coyote's Run
cloud
Poor
Poor
Posts: 4
Joined: Tue Mar 22, 2011 9:38 pm

Re: [RELEASE] Iron Raven

Post by cloud »

Hi, have started Iron Raven and need some help. Got a message after a few stages to say that I should look at he pdf that came with the oxp - but can't find anything and now stuck...have I missed something

Thanks
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: [RELEASE] Iron Raven

Post by Gimi »

cloud wrote:
Hi, have started Iron Raven and need some help. Got a message after a few stages to say that I should look at he pdf that came with the oxp - but can't find anything and now stuck...have I missed something

Thanks
I assume you are using a Mac. The PDF file is actually inside the OXP which is a folder on Windows and Linux. On Mac it behaves differently and you can't see inside the OXP by default. How you actually access it on a Mac I don't know, but someone will be along shortly to help.

Edit: Forgot to say "welcome to the friendliest board this side of Riedquat"(tm) I apologise for my rudeness.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
cloud
Poor
Poor
Posts: 4
Joined: Tue Mar 22, 2011 9:38 pm

Re: [RELEASE] Iron Raven

Post by cloud »

thanks. and sorted it after a trawl through the boards - need to 'show package contents'.
Last edited by cloud on Tue Mar 22, 2011 10:35 pm, edited 1 time in total.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] Iron Raven

Post by Commander McLane »

Gimi wrote:
cloud wrote:
Hi, have started Iron Raven and need some help. Got a message after a few stages to say that I should look at he pdf that came with the oxp - but can't find anything and now stuck...have I missed something

Thanks
I assume you are using a Mac. The PDF file is actually inside the OXP which is a folder on Windows and Linux. On Mac it behaves differently and you can't see inside the OXP by default. How you actually access it on a Mac I don't know, but someone will be along shortly to help.
I'd consider this a bug of the OXP, and it should be corrected in the next version, simply by creating another folder around the OXP, and moving any text files out of the OXP itself and into that containing folder.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: [RELEASE] Iron Raven

Post by Gimi »

Commander McLane wrote:
Gimi wrote:
cloud wrote:
Hi, have started Iron Raven and need some help. Got a message after a few stages to say that I should look at he pdf that came with the oxp - but can't find anything and now stuck...have I missed something

Thanks
I assume you are using a Mac. The PDF file is actually inside the OXP which is a folder on Windows and Linux. On Mac it behaves differently and you can't see inside the OXP by default. How you actually access it on a Mac I don't know, but someone will be along shortly to help.
I'd consider this a bug of the OXP, and it should be corrected in the next version, simply by creating another folder around the OXP, and moving any text files out of the OXP itself and into that containing folder.
I know, you have voiced this strongly before. I didn't make it, I just checked the OXP file on my HD. Since I know you use a Mac Cdr McL, how does Cloud get access to the files inside.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] Iron Raven

Post by Commander McLane »

Gimi wrote:
I know, you have voiced this strongly before.
Seems I'm getting old. :oops: Sorry for repeating myself, won't happen again. Seems I'm getting old. 8)
Gimi wrote:
Since I know you use a Mac Cdr McL, how does Cloud get access to the files inside.
Right-click the OXP to open the context menu, then choose 'view package' (or whatever the menu item reads in English).
Post Reply