[UPDATED]Constrictor More Hints

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

Moderators: winston, another_commander

Post Reply
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

[UPDATED]Constrictor More Hints

Post by Arexack_Heretic »

version 2.0 is now in javascript.
Legacy plist script is still in there, fixed in fact.
(I noticed a serious typo in the original)
Riding the Rocket!
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Hi Arexack_H,

in the js script for this updated oxp there appears to be a typo in line 68 which I believe must say mission.addMessageTextKey("constrictor_hunt_1_253");, not mission.addMessageTextKey("constrictor_hunt_1_235");.

Cheers

L
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Re: ..

Post by Arexack_Heretic »

Lestradae wrote:
Hi Arexack_H,

in the js script for this updated oxp there appears to be a typo in line 68 which I believe must say mission.addMessageTextKey("constrictor_hunt_1_253");, not mission.addMessageTextKey("constrictor_hunt_1_235");.

Cheers

L
Thanks for the report. :)
Did you actually recieve an error from oolite or is it by eye?
.... i cannot discern the difference between those two lines.
I'll look into it later tonight though. most of the script was pilfered from the native code, it might contain the same error.
Riding the Rocket!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: ..

Post by Smivs »

Arexack_Heretic wrote:
Lestradae wrote:
Hi Arexack_H,

in the js script for this updated oxp there appears to be a typo in line 68 which I believe must say mission.addMessageTextKey("constrictor_hunt_1_253");, not mission.addMessageTextKey("constrictor_hunt_1_235");.

Cheers

L
Thanks for the report. :)
Did you actually recieve an error from oolite or is it by eye?
.... i cannot discern the difference between those two lines.
I'll look into it later tonight though. most of the script was pilfered from the native code, it might contain the same error.
It's the numbers...the first one reads 253, the second is 235.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

aah! :roll:
Riding the Rocket!
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Re: ..

Post by Lestradae »

Arexack_Heretic wrote:
Did you actually recieve an error from oolite or is it by eye?
Found it by eye. The original .js line refers to a missiontext entry that doesn't exist, neither in the core game code nor in your oxp. The "253" missiontext entry is in the core games' missiontext entries, and with that number your script will work by simply adding that message to more systems. With "235" I assume there might be an error message in the log (didn't test that) but there will be no additional hint for sure.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

it's supposed to refer to the native missiontexts, that is correct. :)
I'll fix it for a next version, not much change from the pre js version, that one also only added a single hint. :lol:
Riding the Rocket!
Post Reply