Page 3 of 3

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

Posted: Sun Oct 17, 2021 9:19 pm
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);
}

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

Posted: Sun Oct 17, 2021 9:42 pm
by Cody
Muchas gracias, amigo!

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

Posted: Mon Oct 18, 2021 7:47 am
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!

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

Posted: Mon Oct 18, 2021 10:26 am
by Cody
Perhaps it needs another few witch-oriented dates added - St John's NIght, Walpurgis Night etc?

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

Posted: Mon Oct 18, 2021 10:58 am
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

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

Posted: Sun Oct 24, 2021 6:16 pm
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

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

Posted: Sun Oct 24, 2021 7:24 pm
by Cody
Thankee!

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

Posted: Sat Oct 29, 2022 7:51 pm
by Massively Locked
In light (dark?) of the impending All Saints' Eve: bump :shock:

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

Posted: Sun Oct 30, 2022 6:51 pm
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?

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

Posted: Sun Oct 30, 2022 11:03 pm
by Massively Locked
Yea, verily! :D