Search found 102 matches

by cag
Mon Oct 26, 2020 5:13 am
Forum: Expansion Pack
Topic: Random Station Names OXP
Replies: 14
Views: 3679

Re: Random Station Names OXP

How about a dictionary (aka mapping) of 'galaxy' stations this.$mainStations = { 0: [ "Hand of Glory", "War Cry of Fortuna", "Petrified Cockatrice", ...], 1: [ "The Truce of Tokyo", "Chromatic Starlight", "Shadow of Empathy", ...], ... 7: [ ...] } to set array for current 'galaxy' this.$mainStations...
by cag
Wed Aug 05, 2020 7:45 am
Forum: Expansion Pack
Topic: [RELEASE] Tracker OXP
Replies: 36
Views: 11154

Re: [RELEASE] Tracker OXP

I need to find a way to go from the marker reference to the ship it's standing for, then it would be possible to at least remove the tracker from a distance In the telescope oxp, there's the list of scanned entities $TelescopeList and an index $TelescopeListi into it. So if you're targetting the te...
by cag
Thu Jul 23, 2020 5:00 pm
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

Ok, I fixed the error but an AI guru will have to judge my solution. Is the oddsAssessment relevant after a player's ship is destroyed and the player was a member of a group/escortGroup?

New version uploaded, same link

https://www.dropbox.com/s/cudwuq8d56ep ... .zip?dl=0
by cag
Thu Jul 16, 2020 4:29 am
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

Ok, that's a problem in the core's scripts and mine as well. Thargoid's Aquatics is over 6 years old! Great work on ferreting out this one. I added a test in _addShips in case groups w/ a different role get stuck in the docking port. :) New version uploaded, same link https://www.dropbox.com/s/cudwu...
by cag
Sun Jul 12, 2020 12:24 am
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

You're starting to freak me out, dude. While that line 6100 was from the core distribution, the same error is in mine too. That's been there for YEARS! :shock: How are you finding these?

New version uploaded, same link

https://www.dropbox.com/s/cudwuq8d56ep ... .zip?dl=0
by cag
Sat Jul 11, 2020 11:47 pm
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

Thanks for the tip. New version uploaded, same link

https://www.dropbox.com/s/cudwuq8d56ep ... .zip?dl=0
by cag
Thu Jul 09, 2020 4:36 am
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

why move "use strict"; inside the scope of the this.activated function To satisfy JSLint, which kept complaing 'Use the function form of "use strict". For scripts with more than one function, this would become tedious, so we wrap it all in a function. You don't need to do it for every function. Jus...
by cag
Thu Jul 09, 2020 1:40 am
Forum: Testing and Bug reports
Topic: Vector 3D constructor accepting a sequence of vectors
Replies: 2
Views: 590

Re: Vector 3D constructor accepting a sequence of vectors

I corrected a bug in an OXP ... _station.heading.direction().multiply( _subentity.position.z ) is a vector _station.vectorUp.direction().multiply( _subentity.position.y ) is a vector _station.vectorRight.direction().multiply( _subentity.position.x ) is a vector FYI, the .direction() calls are not n...
by cag
Thu Jul 09, 2020 1:08 am
Forum: Testing and Bug reports
Topic: Strict mode warnings
Replies: 15
Views: 2018

Re: Strict mode warnings

... <long rambling post> ... TL;DR I fell down a deep rabbit hole and applied strict mode and various optimizations to all the scripts in the Resources\Scripts folder that comes with the core. I left the AI scripts alone, as I would need more I before messing with A's :) So before you fall into tha...
by cag
Sun Jul 05, 2020 1:54 am
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 14
Views: 7714

Re: [Beta] Release of Telescope 2.0

... the unintended consequence of limiting Torus speed ... Dybal had reported this earlier (in a PM; he's my sole beta tester) and I've not had a chance to investigate. Relative distances of scanner markers while in Torus are rather meaningless, only their direction matters. Making all markers 'sha...
by cag
Sat Jul 04, 2020 11:36 pm
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 14
Views: 7714

Re: [Beta] Release of Telescope 2.0

Below is a possible change to improve compatibility with SniperLock, making use of ... I've added it in and hope to have a maintenance release soon. ... needs to be solved by SniperLock ... As an alternative, instead of adding compatibility code in Telescope, SniperLock's script can be changed ... ...
by cag
Fri Jul 03, 2020 1:13 am
Forum: Suggestion Box
Topic: Reverse up-down control when looking astern?
Replies: 75
Views: 49380

Re: Reverse up-down control when looking astern?

I saw the following error in my log (didn't notice anything in-game though): 00:09:50.100 [script.javaScript.timeLimit] OperationCallback: ***** ERROR: Script "(nil)" ran for 0.18923 seconds and has been terminated. 00:09:50.100 [script.javaScript.stackTrace] OOJSDumpStack: 0 (reversecontrol.js:468...
by cag
Wed Apr 15, 2020 6:13 am
Forum: Expansion Pack
Topic: script tool: Exception traceback
Replies: 0
Views: 2611

script tool: Exception traceback

Using JavaScript's try ... catch statement, a primitive form of call stack traceback is possible. this._initOptions = function initOptions( oxp ) { try { registeredOxps[ oxp ] = ... ... } catch( err ) { log(this.name, ws._reportError( err, initOptions, [oxp, registeredOxps, decodedChoice], 1 ) ); if...
by cag
Fri Mar 20, 2020 8:40 pm
Forum: Expansion Pack
Topic: [Release] Space Crowds
Replies: 45
Views: 28750

Re: [Release] Space Crowds

Both "cargopod" and "1t-cargopod" are roles and you'd need to check spawnedShips[i].roles.indexOf('cargopod') < 0 But roles are problematic, as different oxp's make their own, eg. "[ups-barrel]", "[barrel]" (not sure why these have brackets). If you want to preserve splinters, isRock will fail (they...
by cag
Mon Mar 09, 2020 3:11 am
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 14
Views: 7714

Re: [Beta] Release of Telescope 2.0

The autolocking makes getting a lock to a dockable to ask for docking clearance very hard, if not impossible, when there are other ships flying around/behind the dockable... The autolock feature is part of telescope's 'Navigation Mode'; just toggle your weapons on ('_' key) and you leave navigation...