Cheers Eric, but i avoid JS as much as i can cos i have no clue about it
all the stuff in my OXPs have been kindly provided by the likes of yourself/Thargoid etc, or butchered amateurishly by myself and probably work only by sheer luck.
would any JS people be willing to do a series of very simple "idiots' guides" to JS? from simple syntax rules/examples, to say how to pass parameters, how to stack stuff in AI etc? i know there's a bunch of coded examples on the wiki, but sometimes i can't unerstand what the code's doing.
Request seconded. A few nice examples with explanations as to what the code is doing would be really useful, particularly if referenced to how Oolite works and uses JS.
@KW, you are not alone...there are probably many of us who would like to explore JS in more detail, but haven't got a clue where to start
Commander Smivs, the friendliest Gourd this side of Riedquat.
Request seconded. A few nice examples with explanations as to what the code is doing would be really useful, particularly if referenced to how Oolite works and uses JS.
@KW, you are not alone...there are probably many of us who would like to explore JS in more detail, but haven't got a clue where to start
I recommend having a look at the Scripts folder inside oolite.app in the core game installation. All native missions are there and you can see how Nova, Constrictor and friends are done. For basic tutorials, I would try googling for "beginners javascript tutorial". Most of what you'll find will be browser-based, but will definitely give you what you need to get started.
they were never intended to be in WS, though i guess the script's "thisshipwillexitfromhyperspace" thingy will trigger that. :-/
Look at the wiki. You must do an explicit check for not being in "InterstellarSpace" before adding the ship.
I think this is the oldest bug that is around and most oxp-ers have made this bug in the past.
thanks bud, i'll get working on an update when i get a spare moment.
edit : actually, summat's just struck me : to position the Nest i used the "spu" format : now, given there's no "s" in Witchspace (or "p" for that matter), what's it using in the calculation?
edit : actually, summat's just struck me : to position the Nest i used the "spu" format : now, given there's no "s" in Witchspace (or "p" for that matter), what's it using in the calculation?
It used to be that in witchspace the coordinate systems were completely ignored. Where you spawn is the origin, and where you are facing is the z-direction, regardless of the coordinate-letter-code. Oh, and everything was in meters, because there are no radii of planetary bodies, or distances between them. Thus, the nest should be spawned very much where the player exits witchspace (the engine would place him a little away from the point in order to avoid an immediate collision).
Installed this a couple of days ago - I like it. It's sort of silly but valid in a sci-fi setting, it is fun, it is unobtrusive. I think it is a really good - albeit unusual - add-on. Thank you, Killer Wolf.
Spoilers in pale text follow - I suggest you install the OXP and go visit the nest before reading:
The way they attack was unexpected. I did not see it coming and I was dead within seconds - clever AI.
The first item for sale - genius! A genuine laugh-out-loud when I realised.
Once you've got the hang of how the swarms work, you can top up your kill count. <evil grin>
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
edit : actually, summat's just struck me : to position the Nest i used the "spu" format : now, given there's no "s" in Witchspace (or "p" for that matter), what's it using in the calculation?
It used to be that in witchspace the coordinate systems were completely ignored. Where you spawn is the origin, and where you are facing is the z-direction, regardless of the coordinate-letter-code. Oh, and everything was in meters, because there are no radii of planetary bodies, or distances between them. Thus, the nest should be spawned very much where the player exits witchspace (the engine would place him a little away from the point in order to avoid an immediate collision).
Yep. All interstellar space coordinates, regardless of intended format, are always treated as 'abs', since any other format would be 'slightly' meaningless.
I was told off very early on for starting a new thread on an existing subject, and I understand it is the expectation and convention that comments on a .OXP should go in the thread in which the .OXP was announced.
Hence I thought it right that I should say "Spiffy add-on" in this thread, especially since it had been so quiet for so long.
(This convention of keeping on-topic into the relevant thread is most unusual; most fora complain of raising zombies when someone does that. I happen to think this forum is right, and all the others wrong, myself.)
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.