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

Search found 545 matches

by Day
Tue Jul 18, 2017 1:51 pm
Forum: Discussion
Topic: Any combat tips?
Replies: 29
Views: 23801

Re: Any combat tips?

Disembodied wrote: Tue Jul 18, 2017 11:17 am
which is an argument in favour of getting in close, fast.
And then fleeing fast, far away from the combat center, before coming back to your designated victim :twisted:
by Day
Tue Jul 18, 2017 7:00 am
Forum: Discussion
Topic: How do you change the FOV?
Replies: 10
Views: 9297

Re: How do you change the FOV?

phkb wrote: Tue Jul 18, 2017 4:42 am
I believe each distro is responsible for the version they make available.
Exactly.

I run Linux and compile from the source. But really, using the tgz archive is the simplest way to be up-to-date.
by Day
Mon Jul 17, 2017 8:10 am
Forum: Expansion Pack
Topic: [WIP] Diplomancy OXP
Replies: 109
Views: 129973

Re: [WIP] Diplomacy OXP

I think a single message saying "Allegiances have changed" and then creating an F4 screen that lists all of them that are relevant to the current system (like a short range screen version of the galactic map you currently have) would be helpful. Alternate proposition: - instead of some ne...
by Day
Sun Jul 16, 2017 8:36 am
Forum: Expansion Pack
Topic: [WIP] Diplomancy OXP
Replies: 109
Views: 129973

Re: [WIP] Diplomacy OXP

Day, I'm noticing something strange going on. After I jump into a system and dock at a station, shortly afterwards I start getting a whole pile of Snooper's news items telling me about a dozen or so new allegiances that have just taken place. Well yes, they're the initial alliances. It's what's exp...
by Day
Sat Jul 08, 2017 9:15 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

Cool! And certainly 'not obvious' (to me, at least). Remember most of us are self-taught wrt JScript - at first I thought that was another keyword, like self in Python :) I had the same problem the first time I encountered "that" :lol: So you're basically storing a (far) reference as a fu...
by Day
Thu Jul 06, 2017 2:24 pm
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

The tip I gave phkb, and I realized then that although it is implicit in what was already exposed, it is not obvious: From: this.$rand = function(max) { return Math.floor((Math.random() * max) + 1); } To: this.$rand = function $rand(max) { var that = $rand; var floor = (that.floor = that.floor || Ma...
by Day
Wed Jul 05, 2017 8:53 am
Forum: Expansion Pack
Topic: (Release) Station Dock Control OXP
Replies: 219
Views: 177297

Re: (Release) Station Dock Control OXP

Thank you :wink:
by Day
Tue Jul 04, 2017 8:20 am
Forum: Expansion Pack
Topic: Anarchies 2.8 now available
Replies: 59
Views: 59682

Re: Anarchies 2.8 now available

Here is a random idea: what if some very few anarchist systems had their Coriolis station on fire? Griff has made a very nice model back in 2008 but it seems nobody has used it in any OXP yet, perhaps this would be an idea. See his post here: https://bb.oolite.space/viewtopic.php?t=3460&start=1...
by Day
Mon Jul 03, 2017 9:13 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

In the other scripts: And the subscribers will put their startUp code in: this._startUp = function() { // move your startUp code here }; Submit to you, compel everyone, how will you, 'Master', hmm? :) Granted, your solution is easier to grasp than http://wiki.alioth.net/index.php/Handling_OXP_Depen...
by Day
Mon Jul 03, 2017 9:02 am
Forum: Suggestion Box
Topic: Space elevator
Replies: 8
Views: 9217

Re: Space elevator

No, space doesn't work like that - there is gravity as long as you're anywhere near a planet or a star, which heavily restricts how real spacecraft behave, and also, a rocket's fuel is a huge component of its mass and most of a Saturn V's take-off weight was fuel + somewhere to put it. In order to ...
by Day
Fri Jun 30, 2017 2:40 pm
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

By returning myinnerfunc, you're telling JS that you'll be back (ie. will call the function later) and so it preserves its environment or scope. This is a 'closure': any variables you define will be preserved over each call (but the code itself won't be duplicated if you create many copies). [...] ...
by Day
Fri Jun 30, 2017 1:09 pm
Forum: Suggestion Box
Topic: Space elevator
Replies: 8
Views: 9217

Re: Space elevator

Malacandra wrote: Thu Jun 29, 2017 7:09 am
We know that ships' drives (normal space - not Witchdrive) can run indefinitely without refuelling.
I assumed it was because no gravity + no friction implies eternal travel?
Energy would only be needed to steer.
Malacandra wrote: Thu Jun 29, 2017 7:09 am
But we should have a Space Elevators OXZ anyway, because Rule of Cool.
8)
by Day
Fri Jun 30, 2017 1:06 pm
Forum: Suggestion Box
Topic: Fuel Scooping
Replies: 40
Views: 44816

Re: Fuel Scooping

I hadn't read the full thread. Now I have :mrgreen: Fuel scooping. Do we have the information of how quirium is produced? If not, probably through industrial fuel scooping. We could have industrial fuel scooping installations :-) And the player could interoperate with them. Solar storms I would inst...
by Day
Fri Jun 30, 2017 8:29 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

hoqllnq wrote: Thu Jun 29, 2017 5:36 pm
Day wrote: Thu Jun 29, 2017 1:06 pm
For example:

Code: Select all

var r = Math.random();
var z = 1000;
while (z--) {
	r();
}
Should that be:

Code: Select all

var r = Math.random;
without the parentheses,
so that the value of r becomes (a reference to) the function itself, not the result of calling the function?
Exactly.
by Day
Fri Jun 30, 2017 8:28 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 89
Views: 210022

Re: OXP Performance tips

At best we gain a fraction of a millisecond (averaged over 10k iterations, 100s of nano-seconds), so not much at all, at the expense of readability & explicit typing.
Ok, so this part is useless.

Thanks a lot for the profiling :wink: