Halloween Witch OXP (was: NPC ship attack using missiles)

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

Moderators: another_commander, winston

User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2478
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Griff »

Here's a version Cody that sort of works, well i fixed the old style subentity lines in shipdata.plist that might have been breaking them.
I don't remember these witches having ball turrets, but i found a few older versions of the OXP on my computer and it seems they must have had them added around version 1.1 or something, i wasn't 100% sure how to define these in modern oolite so i *think* they're working correctly, although they required a model.dat before they would work, i don't have anything to hand so i've just used the pumpkin model.

I'd forgotten what a pain in the bum these were to fight, if anyone wants to make them more fun then please do, thay also do a lot of weird stuff like comms hails and things like standard ships which is a bit weird :D

witch oxp v1.5.2
https://drive.google.com/file/d/15n5SsV ... sp=sharing



griff_witch_Main.js in the scripts folder has the lines that decide whether to spawn these or not

if (this.today.getMonth()===9 && this.today.getDate() === 31 ){
is setting the date, 9 is actually for october as i think january is actually 0 and not 1. the 31 is the day so you can change that to todays date if you just want to check the witches out before halloween.

these lines roll the dice to decide if the witches get spawned, adjust that 0.33 to make them more common or less
system.legacy_addSystemShips is a depricated command, witches still show up but the log complains about the depricated command, i'm not sure of the current correct command to use
this.addWitches = function () {
if (this.HalloweenTime && Math.random() < 0.33) {
system.legacy_addSystemShips("griff_witch", 1, 0.0);
}
Last edited by Griff on Sat Oct 30, 2021 11:44 am, edited 3 times in total.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Cody »

Muchas gracias, amigo!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Cholmondely
Archivist
Archivist
Posts: 5009
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Cholmondely »

OXP page now up: http://wiki.alioth.net/index.php/Halloween_Witch_OXP

It's crying out for an info-box like Santa's, but I'm not sure my sense of humour is up to it!
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
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Cody »

Perhaps it needs another few witch-oriented dates added - St John's NIght, Walpurgis Night etc?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2478
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Griff »

I'll have a look at fixing that legacy add.ship method it's complaining about, i think i've found the page on the wiki listing the new method to use, will give it a go this evening.

I'll have a look at the models too, they seemed a bit dark when i was testing the oxp yesterday, they might need hard edges and smoothing adding to help with the lighting

i don't think my scripting is up to it, but i always thought it might be fun to put cobwebs in the station docking bays too when the OXP is active :D
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2478
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Griff »

I think this OXP is fixed and up-to-date now with Oolite's new methods, or at least i cant seen anything being reported as being deprecated in the logs. the Witches are still a pain to deal with, could do with their stats tweaking i think:)

Halloween Witches, V1.5.2:
https://drive.google.com/file/d/15n5SsV ... sp=sharing
Last edited by Griff on Sat Oct 30, 2021 11:45 am, edited 1 time in total.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Cody »

Thankee!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Massively Locked
Dangerous
Dangerous
Posts: 84
Joined: Tue Nov 20, 2012 12:20 pm

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Massively Locked »

In light (dark?) of the impending All Saints' Eve: bump :shock:
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Cody »

Massively Locked wrote: Sat Oct 29, 2022 7:51 pm
In light (dark?) of the impending All Saints' Eve: bump
Things that go bump in the night?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Massively Locked
Dangerous
Dangerous
Posts: 84
Joined: Tue Nov 20, 2012 12:20 pm

Re: Halloween Witch OXP (was: NPC ship attack using missiles)

Post by Massively Locked »

Yea, verily! :D
Post Reply