Page 2 of 2
Re: Witchspace Jump Failure Detection
Posted: Sat Sep 01, 2012 10:12 pm
by Tricky
CommRLock78 wrote:Hat's off to Tricky and Wildeblood. Many thanks indeed fellas
! 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
Re: Witchspace Jump Failure Detection
Posted: Sat Sep 01, 2012 10:32 pm
by UK_Eliter
Wildeblood
Thanks for setting me straight. I've edited my post accordingly.
Re: Witchspace Jump Failure Detection
Posted: Sat Sep 01, 2012 10:51 pm
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
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 1:43 am
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.
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 8:23 am
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.
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 11:54 am
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/.
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 5:41 pm
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.
Whoops! I thought that would be the base folder - thank you for clearing that up CML
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 5:45 pm
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 ?
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 9:45 pm
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.
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 10:15 pm
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.
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 10:43 pm
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
Re: Witchspace Jump Failure Detection
Posted: Sun Sep 02, 2012 11:59 pm
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.
Re: Witchspace Jump Failure Detection
Posted: Mon Sep 03, 2012 12:49 am
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)
. 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.
Re: Witchspace Jump Failure Detection
Posted: Mon Sep 03, 2012 1:11 am
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.)
Re: Witchspace Jump Failure Detection
Posted: Mon Sep 03, 2012 5:05 am
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
. 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
)