Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Witchspace Jump Failure Detection

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

Moderators: winston, another_commander

User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Witchspace Jump Failure Detection

Post by Tricky »

CommRLock78 wrote:
Hat's off to Tricky and Wildeblood. Many thanks indeed fellas :D ! I just tested it and I have to say, I love this "OXP"; it's exactly what I was thinking when I created the thread.
Thx.
CommRLock78 wrote:
Now, I have my usual noob kind of question: I placed the script.js in the /AddOns/Config folder, which I had to create, so the question is, is a folder named Config in the AddOns folder an extension to the "main" Config folder :?: .
Interesting way of doing it.

Yes is the answer. As to script.js in Config I have no idea if that works. cim or Ahruman are probably best placed to answer that.

I have these in my base Config folder...

Code: Select all

$ dx /cygdrive/c/Games/Oolite1.76.1/AddOns/Config/
total 61K
drwxr-sr-x+ 1 Richard Users    0 Jun 21 18:05 ./
drwxrwxrwx+ 1 Richard Users    0 Aug 22 07:42 ../
-rw-r--r--+ 1 Richard Users 1.5K May 20 04:49 keyconfig.plist
-rw-r--r--+ 1 Richard Users  18K May 24 00:30 logcontrol.plist
-rw-r--r--+ 1 Richard Users  325 Jun 21 22:02 nebulatextures.plist
-rw-r--r--+ 1 Richard Users 1.5K Jul  5 01:41 planetinfo.plist
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Witchspace Jump Failure Detection

Post by UK_Eliter »

Wildeblood

Thanks for setting me straight. I've edited my post accordingly.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Tricky wrote:
Yes is the answer. As to script.js in Config I have no idea if that works. cim or Ahruman are probably best placed to answer that.

I have these in my base Config folder...

Code: Select all

$ dx /cygdrive/c/Games/Oolite1.76.1/AddOns/Config/
total 61K
drwxr-sr-x+ 1 Richard Users    0 Jun 21 18:05 ./
drwxrwxrwx+ 1 Richard Users    0 Aug 22 07:42 ../
-rw-r--r--+ 1 Richard Users 1.5K May 20 04:49 keyconfig.plist
-rw-r--r--+ 1 Richard Users  18K May 24 00:30 logcontrol.plist
-rw-r--r--+ 1 Richard Users  325 Jun 21 22:02 nebulatextures.plist
-rw-r--r--+ 1 Richard Users 1.5K Jul  5 01:41 planetinfo.plist
The script, although perhaps oddly placed, is definitely working.

My base Config folder has the following

Code: Select all

/opt/Oolite/oolite.app/Resources/Config $ ls | more
autoAImap.plist
characters.plist
commodities.plist
crosshairs.plist
customsounds.plist
demoships.plist
descriptions.plist
equipment.plist
gpu-settings.plist
hud.plist
hud-small.plist
illegal_goods.plist
javascript-errors.plist
keyconfig.plist
logcontrol.plist
material-defaults.plist
missiontext.plist
nebulatextures.plist
oolite-font.plist
pirate-victim-roles.plist
planetinfo.plist
screenbackgrounds.plist
script-patches.plist
shipdata-overrides.plist
shipdata.plist
shipyard.plist
speech_pronunciation_guide.plist
startextures.plist
verifyOXP.plist
whitelist.plist
world-scripts.plist
While the new Config folder is as such

Code: Select all

~/.Oolite/AddOns/Config $ ls | more
script.js
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Witchspace Jump Failure Detection

Post by Commander McLane »

CommRLock78 wrote:
My base Config folder has the following

Code: Select all

/opt/Oolite/oolite.app/Resources/Config $ ls | more
That's not your base Config folder, that's Oolite's internal Config folder (hint: it is inside oolite.app), and you should stay away from it under all circumstances.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Witchspace Jump Failure Detection

Post by JensAyton »

Commander McLane wrote:
That's not your base Config folder, that's Oolite's internal Config folder
Do pay attention, old chap. He’s not modifying it.

AddOns/Config/script.js is expected to work, yes. AddOns/script.js should work just as well.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Witchspace Jump Failure Detection

Post by Commander McLane »

Ahruman wrote:
Commander McLane wrote:
That's not your base Config folder, that's Oolite's internal Config folder
Do pay attention, old chap. He’s not modifying it.
I noticed that, but wanted to discourage the idea anyway. :)
Ahruman wrote:
AddOns/Config/script.js is expected to work, yes. AddOns/script.js should work just as well.
Perhaps as an addition: The downside of putting script.js directly into a folder (be it AddOns/Config/ or AddOns/) is that you can do it only once. If you want to script something else, you can't place it alongside your first script.js, because there can be no two files with the same name in the same folder. That's where the whole OXP-thing comes in. If you instead create a new folder inside AddOns/ and name it MyOXP.oxp (you would of course choose a name which says something about its content; but it has to end with '.oxp'), then you can create another Config-folder inside AddOns/MyOXP.oxp/ and put your script.js in there. Now all your script.js's can live happily alongside each other, because each one lives in its own subfolder of AddOns/.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Commander McLane wrote:
CommRLock78 wrote:
My base Config folder has the following

Code: Select all

/opt/Oolite/oolite.app/Resources/Config $ ls | more
That's not your base Config folder, that's Oolite's internal Config folder (hint: it is inside oolite.app), and you should stay away from it under all circumstances.
:shock: Whoops! I thought that would be the base folder - thank you for clearing that up CML ;)
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Commander McLane wrote:
Perhaps as an addition: The downside of putting script.js directly into a folder (be it AddOns/Config/ or AddOns/) is that you can do it only once. If you want to script something else, you can't place it alongside your first script.js, because there can be no two files with the same name in the same folder. That's where the whole OXP-thing comes in. If you instead create a new folder inside AddOns/ and name it MyOXP.oxp (you would of course choose a name which says something about its content; but it has to end with '.oxp'), then you can create another Config-folder inside AddOns/MyOXP.oxp/ and put your script.js in there. Now all your script.js's can live happily alongside each other, because each one lives in its own subfolder of AddOns/.
I was thinking about how multiple scripts would work and if renaming the folder and creating an addition Config folder inside that would work as well, so thanks again for the sound advice CML, and thank you, too, Ahruman. So, now for the noob question, what would be the "base" or "main" folder, or does one even exist ?
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Witchspace Jump Failure Detection

Post by Commander McLane »

CommRLock78 wrote:
So, now for the noob question, what would be the "base" or "main" folder, or does one even exist ?
AddOns/

Where this is located depends on your OS.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Witchspace Jump Failure Detection

Post by JensAyton »

Commander McLane wrote:
CommRLock78 wrote:
So, now for the noob question, what would be the "base" or "main" folder, or does one even exist ?
AddOns/
I disagree – referring to the built-in resources as the “base folder” makes a lot more sense.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Ahruman wrote:
I disagree – referring to the built-in resources as the “base folder” makes a lot more sense.
Kinda what I thought ;)
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Witchspace Jump Failure Detection

Post by Commander McLane »

CommRLock78 wrote:
Ahruman wrote:
I disagree – referring to the built-in resources as the “base folder” makes a lot more sense.
Kinda what I thought ;)
My understanding of the question was that you asked for the 'base folder' for putting own resources (be it scripts, property lists, or complete OXPs). That is also how the term was first used in this thread (11 posts above this one):
Tricky wrote:
I have these in my base Config folder...

Code: Select all

$ dx /cygdrive/c/Games/Oolite1.76.1/AddOns/Config/     <--- look here, it's AddOns/
total 61K
drwxr-sr-x+ 1 Richard Users    0 Jun 21 18:05 ./
drwxrwxrwx+ 1 Richard Users    0 Aug 22 07:42 ../
-rw-r--r--+ 1 Richard Users 1.5K May 20 04:49 keyconfig.plist
-rw-r--r--+ 1 Richard Users  18K May 24 00:30 logcontrol.plist
-rw-r--r--+ 1 Richard Users  325 Jun 21 22:02 nebulatextures.plist
-rw-r--r--+ 1 Richard Users 1.5K Jul  5 01:41 planetinfo.plist
Regarding that 'base folder' was an ad-hoc coinage by Tricky in the quote above and does not exist as a technical term in the context of Oolite, I see no benefit in re-defining it to mean something else than it meant when Tricky used it. :)
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Commander McLane wrote:
Regarding that 'base folder' was an ad-hoc coinage by Tricky in the quote above and does not exist as a technical term in the context of Oolite, I see no benefit in re-defining it to mean something else than it meant when Tricky used it. :)
You're absolutely right - it looks as though I missed that detail (the Config folder being in Tricky's AddOns) :oops:. I think I was more drawn to the fact that there was an /Oolite1.76.1 folder, since it looks more like the main game folder - anyway, no need to re-invent the terminological wheel here. Sorry about derailing the thread with my digression here.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Witchspace Jump Failure Detection

Post by Tricky »

Oh dear! Sorry!!!

I refer to "oolite.app/Resources" as the game folder and "AddOns" as the base folder. Really I should have called it the user folder.

As for "Oolite1.76.1", that is the base game directory for the stable version of Oolite. I also have "OoliteTest" and "OoliteShadyPlanets" for the development branches of Oolite in the Games directory. (Which also means I have separate versions of AddOns in those directories as Windows does NOT understand links, even though Cygwin does.)
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Witchspace Jump Failure Detection

Post by CommRLock78 »

Tricky wrote:
As for "Oolite1.76.1", that is the base game directory for the stable version of Oolite. I also have "OoliteTest" and "OoliteShadyPlanets" for the development branches of Oolite in the Games directory. (Which also means I have separate versions of AddOns in those directories as Windows does NOT understand links, even though Cygwin does.)
That explains all the extra folder nesting and names that came along with it :D. Game / User folders seem appropriate.

Interesting, I thought you were running Linux Tricky, you sure seem to be well enough versed in it :).

Anyway, thanks again Tricky and Wildeblood; in the short time I've been playing with this OXP installed, I've been enjoying it thoroughly - 'tis nice to know when a witchspace jump is going to succeed before having to go through the whole countdown spiel (gets kind of annoying when you're on the hunt :twisted: ;))
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
Post Reply