MincePie.oxp

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

Moderators: another_commander, winston

Post Reply
aracer
Average
Average
Posts: 9
Joined: Mon Nov 02, 2009 1:26 am

MincePie.oxp

Post by aracer »

I made this as an add-on for santa.oxp - see https://bb.oolite.space/viewtopic.php?t=2671 for first announcement. Rather than totally hi-jack that thread, here's the first beta version. It does all seem to work, but this is my first attempt at an OXP, so I've probably missed something - will go to release if I don't get any major problem reports (have some minor enhancements I can roll in to that). Also only tested on a Windows (Vista) PC - do I need to do anything funny with line endings etc. to make it work on other platforms?

Doesn't really do anything important - if anything is even more pointlessly trivial than santa.oxp, but a little enhancement to that, which I hope some might like.

Here's the link: http://www.box.net/shared/8hek3kak8b
aracer
Average
Average
Posts: 9
Joined: Mon Nov 02, 2009 1:26 am

Post by aracer »

Slightly updated version incorporating suggestions from Eric Walch now uploaded - same download link.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2510
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

Great work on the OXP!
25Cr.! crikey, that's one posh mince pie, is it from WaitrOose? :D
I think i'm going to get the plating on my cobra MK III replaced with mince pie pastry, these things are tougher than constrictor hulls!
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Griff wrote:
I think i'm going to get the plating on my cobra MK III replaced with mince pie pastry, these things are tougher than constrictor hulls!
Sounds as if they're made by dwarves in order to be used as weapons to replace their good old "bread" ;)

Screet
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: MincePie.oxp

Post by Norby »

This mini mission pack now also available in oxz form in the magager.

Image
User avatar
Cholmondely
Archivist
Archivist
Posts: 6601
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: MincePie.oxp

Post by Cholmondely »

This has been defined as a Mission.

Might it be better classified as an Activity (feeding Santa Mince Pies) or as Miscellaneous?
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
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 529
Joined: Sun Feb 18, 2024 12:13 pm

Re: MincePie.oxp

Post by MrFlibble »

Noticed these in the Latest.log

Code: Select all

[script.javaScript.exception.notFunction]: ***** JavaScript exception (mincePieStartup 1.0 beta): TypeError: player.ship.hasEquipment is not a function
[script.javaScript.exception.notFunction]:       /home/flibble/Oolite/GameData/.ManagedAddOns/oolite.oxp.Chris.MincePie.oxz/Scripts/mincePieStartup.js, line 26.
Here's from line 26.

Code: Select all

       while (player.ship.hasEquipment("EQ_MINCE_PIE_MINE")) {
            player.ship.removeEquipment("EQ_MINCE_PIE_MINE");
            mincePiesRemoved++;
        }
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2959
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

Re: MincePie.oxp

Post by Wildeblood »

MrFlibble wrote: Tue Mar 24, 2026 4:00 pm
Noticed these in the Latest.log

Code: Select all

[script.javaScript.exception.notFunction]: ***** JavaScript exception (mincePieStartup 1.0 beta): TypeError: player.ship.hasEquipment is not a function
[script.javaScript.exception.notFunction]:       /home/flibble/Oolite/GameData/.ManagedAddOns/oolite.oxp.Chris.MincePie.oxz/Scripts/mincePieStartup.js, line 26.
Here's from line 26.

Code: Select all

       while (player.ship.hasEquipment("EQ_MINCE_PIE_MINE")) {
            player.ship.removeEquipment("EQ_MINCE_PIE_MINE");
            mincePiesRemoved++;
        }
Try:

while (player.ship.equipmentStatus("EQ_MINCE_PIE_MINE") === "EQUIPMENT_OK") {
R.I.P. John Lodge, 1943-2025.
User avatar
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 529
Joined: Sun Feb 18, 2024 12:13 pm

Re: MincePie.oxp

Post by MrFlibble »

That gets it.

I've tarted up the oxz a bit. Bumped to 1.2 in manifest. pngcrushed the texture, and waved the dos2unix wand. Should I upload it somehow/somewhere?

Edit: No rush. It's seasonal :lol:
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2959
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

Re: MincePie.oxp

Post by Wildeblood »

MrFlibble wrote: Tue Mar 24, 2026 4:40 pm
Should I upload it somehow/somewhere?
That comment/question makes me wonder if you have a login on the wiki, OR NOT?
R.I.P. John Lodge, 1943-2025.
User avatar
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 529
Joined: Sun Feb 18, 2024 12:13 pm

Re: MincePie.oxp

Post by MrFlibble »

Wildeblood wrote: Tue Mar 24, 2026 5:04 pm
MrFlibble wrote: Tue Mar 24, 2026 4:40 pm
Should I upload it somehow/somewhere?
That comment/question makes me wonder if you have a login on the wiki, OR NOT?
I do, and I think I grok how to get an oxz on there, and expect I'll be able to suss how to do same for an upgrade, but I feel I should iron out a few other bits I just found first:

Code: Select all

$ grep -i mince Latest.log 
    ~/Oolite/GameData/AddOns/oolite.oxp.Chris.MincePie-1.2.oxz
17:21:28.922 [oxp-standards.deprecated]: Script /home/flibble/Oolite/GameData/AddOns/oolite.oxp.Chris.MincePie-1.2.oxz/Scripts/mincePieStartup.js does not "use strict";
    mincePieStartup 1.0 beta
17:22:25.052 [oxp-standards.deprecated]: TL99 is deprecated for EQ_MINCE_PIE_MINE
17:22:26.295 [oxp-standards.deprecated]: TL99 is deprecated for EQ_MINCE_PIE_MINE
# last line repeats a lot
I have to go out, but will bury my head in those tomorrow. Clues appreciated.
Post Reply