Page 2 of 4
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Sun Sep 03, 2017 8:38 pm
by cag
There are a few pre-defined shortcuts you can use in the debug console
Code: Select all
P = player
PS = player.ship
S = system
M = missionVariables
to save you typing these. They are definded near line 770 in oolite-debug-console.js, in ..\AddOns\Basic-debug.oxp\Scripts
This was installed as part of the development release. You can add your own (like W = worldScripts) but make sure you back up this file. Any customizations will get overwritten by the next time you install a dev release.
Or, in your oxp's startUp or startUpComplete functions, you can just add
Code: Select all
console.script.W = worldScripts.Mining_Scanner_Upgrade;
(just make sure you delete it before publishing)
You can paste a new function definition into the debug console, say you added a bunch of log statements to see what's happening. Just replace the 'this' at the start of the function with 'worldScripts.my_oxps_name'. So, given you have 'W' defined that way, you type 'W' into the debug console, paste everything after the 'this' and hit Enter! Clear as mud, huh? Suppose you have:
Code: Select all
this.$identifyRocks = function(){
//firstly check if the scanner is damaged or simply not there for some reason
if (player.ship.equipmentStatus("EQ_NS_MINING_SCANNER_UPGRADE") !=="EQUIPMENT_OK"){return;}
var $rocks; //an variable to hold an array masquerading as a rock grader
.....
}
You select & Copy all but the 'this' (including the period)
Code: Select all
.$identifyRocks = function(){
//firstly check if the scanner is damaged or simply not there for some reason
if (player.ship.equipmentStatus("EQ_NS_MINING_SCANNER_UPGRADE") !=="EQUIPMENT_OK"){return;}
var $rocks; //an variable to hold an array masquerading as a rock grader
.....
}
and paste that in the debug console after 'worldScripts.Mining_Scanner_Upgrade' (or 'W' if you've defined the shortcut)
BTW, the '$' or '_' prefix on variable/function names doesn't apply for variables inside your functions - sorry I wasn't clear on that. So
var rocks;
would be fine.
EDIT: check out this topic, "Hints and tips for using the debug console":
https://bb.oolite.space/viewtopic.php?f=4&t=12030
Re: [release] (temporary download link) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 5:37 pm
by NewtSoup
Newt's Mining Scanner Upgrade 1.1.0 released. See the updated original post.
Still using the google drive link until I have Wiki access.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 6:13 pm
by another_commander
Well done!
Why not get it up on the in-game Epansion Pack Manager too? See
this post for details on how to get set up to do it.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 8:07 pm
by NewtSoup
Still waiting on Wiki username and password.
Tried adding a direct download URL from 2 different sources to the manifest on oolite.org but neither allowed downloading of the OXP in game. Stuck with manual install for the time being
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 8:54 pm
by NewtSoup
this is why it's not working:
latest log says:
[oxz.manager.error]: Downloaded OXZ does not contain a manifest.plist, has been left in /home/ruth/GNUstep/Library/Caches/org.aegidian.oolite/Oolite-download.oxz
However it absolutely does contain a manifest.plist:
Code: Select all
{
"identifier" = "oolite.oxp.NewtSoup.MiningIFFScannerUpgrade";
"required_oolite_version" = "1.80";
"title" = "Mining IFF Scanner Upgrade";
"version" = "1.1.0";
"category" = "Equipment";
"description" = "An upgrade to the IFF Scanner System to show asteroids, boulders and splinters in alternate colours for easier tracking when mining, Asteroids are white/gray, Boulders white/orange and Splinters white/green.";
"author" = "NewtSoup";
"file_size" = "47000";
"information-url" = "";
"license" = "CC-BY-NC-SA 3.0";
}
any ideas?
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:06 pm
by Cody
Installed (via manager) and seems to be working fine here - boulders are flashing at me.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:25 pm
by Norby
NewtSoup wrote: ↑Tue Sep 05, 2017 8:54 pmhas been left in /home/ruth/GNUstep/Library/Caches/org.aegidian.oolite/Oolite-download.oxz
I guess if you look into this file with a text editor then it contain some html code instead of your oxz. This means that the direct download prevention of your hosting service is working well, so you must use a browser and look advertisements to download the real file.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:30 pm
by NewtSoup
Norby wrote: ↑Tue Sep 05, 2017 9:25 pm
NewtSoup wrote: ↑Tue Sep 05, 2017 8:54 pmhas been left in /home/ruth/GNUstep/Library/Caches/org.aegidian.oolite/Oolite-download.oxz
I guess if you look into this file with a text editor then it contain some html code instead of your oxz. This means that the direct download prevention of your hosting service is working well, so you must use a browser and probably look the advertisements on the page before you can download a file.
I had a look, the file is 0 bytes and empty. Even more interesting is the OXP is working for Cody. The file is hosted on bitbucket as that gives direct download links.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:32 pm
by NewtSoup
Cody wrote: ↑Tue Sep 05, 2017 9:06 pm
Installed (via manager) and seems to be working fine here - boulders are flashing at me.
Oh good! I'm glad it's working for you. Oh I wonder if it's because although I exited to the main menu I didn't actually restart the whole client and the cache needs flushing.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:36 pm
by Norby
NewtSoup wrote: ↑Tue Sep 05, 2017 8:54 pmthe OXP is working for Cody.
At me also. Maybe a retry of download in the manager can help?
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:43 pm
by NewtSoup
Norby wrote: ↑Tue Sep 05, 2017 9:36 pm
NewtSoup wrote: ↑Tue Sep 05, 2017 8:54 pmthe OXP is working for Cody.
At me also. Maybe a retry of download in the manager can help?
I just deleted my entire cache, everything under GNUstep/Library/Caches/org.aegidian.oolite
I still get download failed and
22:37:54.999 [oxz.manager.error]: Downloaded OXZ does not contain a manifest.plist, has been left in /home/ruth/GNUstep/Library/Caches/org.aegidian.oolite/Oolite-download.oxz
which again is a 0 byte file, thinking about it a 0 byte file definitely doesn't contain a manifest.plist but why the download should fail for me and work for others is a mystery.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 9:48 pm
by phkb
I just tried via the manager and it installed fine. What I did do was try downloading in a couple of different browsers - Chrome was fine, but Firefox (with No-Script) complained about a cross-site scripting issue and refused to download it. Not sure if that helps, though.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 10:07 pm
by NewtSoup
phkb wrote: ↑Tue Sep 05, 2017 9:48 pm
I just tried via the manager and it installed fine. What I did do was try downloading in a couple of different browsers - Chrome was fine, but Firefox (with No-Script) complained about a cross-site scripting issue and refused to download it. Not sure if that helps, though.
Downloads from the direct link in the OP just fine in Chrome and Firefox for me. It's just occurred to me that I haven't tried installing any other mods recently. I shall just go and try it.
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 10:11 pm
by NewtSoup
NewtSoup wrote: ↑Tue Sep 05, 2017 10:07 pm
phkb wrote: ↑Tue Sep 05, 2017 9:48 pm
I just tried via the manager and it installed fine. What I did do was try downloading in a couple of different browsers - Chrome was fine, but Firefox (with No-Script) complained about a cross-site scripting issue and refused to download it. Not sure if that helps, though.
Downloads from the direct link in the OP just fine in Chrome and Firefox for me. It's just occurred to me that I haven't tried installing any other mods recently. I shall just go and try it.
Yes, I can install other mods just fine, just not my own mod
Re: [release?] (tentative) Newt's Mining Scanner Upgrade
Posted: Tue Sep 05, 2017 10:21 pm
by NewtSoup
I have just found that there was more to the error message than I realised.
I installed beer cooler. Checked latest log. Then tried to install my mod and checked latest log. The difference was this:
Code: Select all
23:19:03.327 [gnustep]: 2017-09-05 23:19:03.327 oolite[23734] Attempt to use SSL/TLS without support.
23:19:03.328 [gnustep]: 2017-09-05 23:19:03.328 oolite[23734] Please reconfigure gnustep-base with GNU TLS.
23:19:03.717 [oxz.manager.error]: Downloaded OXZ does not contain a manifest.plist, has been left in /home/ruth/GNUstep/Library/Caches/org.aegidian.oolite/Oolite-download.oxz
So was well as the "Downloaded blah blah blah" the two gnustep messages may be significant too. In fact is has to be .. Secure Sockets Layer and TLS? Guess Transport Layer Security?
( yep)
I have no idea how to fix this.