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

Search found 51 matches

by Phasted
Tue May 26, 2015 5:54 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Scripters cove

spara wrote:
Not that I would not enjoy lesson in vectors, but may I humbly ask for a dedicated thread for it
A good point... perhaps one of the moderators can be persuaded to split this off.
by Phasted
Tue May 26, 2015 2:51 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Vectors

Ah... But maybe it doesn't work when functions are declared this way?: var thingie = function() {alert("Hello World!";)} Correct. In that case the function declaration would be hoisted, but not the definition. If you tried to put a function call before the line that defines the function, ...
by Phasted
Tue May 26, 2015 2:37 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Vectors

Is this working, even the exact first time it is called? I'm puzzled at the fact you use functions before declaring them (convertToCoordinates, radToDeg, angleToBearing). In JavaScript, function definitions are "hoisted" to the top of the enclosing function or code. So, as long as all of ...
by Phasted
Tue May 26, 2015 2:02 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Vectors

Tell more, please. Really? I would have thought to be rather boring. Far from boring... in fact, quite useful. Thanks to your very helpful insight on visualizing vectors and your suggestion about converting the coordinates, I was able to solve my problem... or the first part of it anyway... this._p...
by Phasted
Mon May 25, 2015 10:55 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Scripters cove

EDIT2: What really confuses me is how can a vector be used to define coordinates? Which way is the arrow pointing? You have to imagine a vector as an arrow from the origin (0, 0, 0) to its coordinates (x, y, z). From the origin... I had that 100% all wrong! So clearly, my idea is all wet... Which l...
by Phasted
Mon May 25, 2015 9:18 pm
Forum: Expansion Pack
Topic: Scripters cove
Replies: 1717
Views: 736221

Re: Scripters cove

I just don't understand vectors... :? I want to write a function that will return the bearing (in degrees) to System B from System A. My clumsy attempt... function checkForBottleneck(sys) { var bearing, from = Vector3D([t.coordinates.x, t.coordinates.y, 0]); // start system coordinates var to = Vect...
by Phasted
Wed Jan 22, 2014 9:42 am
Forum: Expansion Pack
Topic: [RELEASE] Risk-based Economy
Replies: 24
Views: 19570

Re: [RELEASE] Risk-based Economy

Risk-Based Economy makes dangerous systems more profitable, and safe systems less profitable. I've included this idea in the latest versions of Real-life Economics ... here's a code snippet from the determineMarket() function. switch(s.government) { case 0: {this[eB] *= 1.75; break;} // In lawless ...
by Phasted
Wed Jan 22, 2014 4:49 am
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

I found it contains a very profitable feature. Whilst I am not against stocking up thousands of kilograms of platinum and gold for free, and dumping them at a normal market for regular prices... Good call! The whole point of this OXP is to make life as a trader more challenging.... Fortunately, it'...
by Phasted
Tue Jan 07, 2014 11:20 pm
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

Hey, look! John's put out something new... it's sure to be wrong! :oops:

If you've downloaded my first attempt... don't bother with it. It's bad.

Download this one instead.
by Phasted
Tue Jan 07, 2014 9:46 pm
Forum: Oolite-PC
Topic: Joystick recommendation for Windows 7 64-bit
Replies: 37
Views: 40252

Re: Joystick recommendation for Windows 7 64-bit

The only thing it's missing is a button that sits under your right thumb's resting position. That under-the-thumb button on the Logitech Extreme 3D is very handy... I use it for the precision mode toggle. I use it for deceleration... with fuel injection keyed to the #2 button directly above it. Ext...
by Phasted
Tue Jan 07, 2014 3:15 am
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

Nothing to see here. Proceed to next post.
by Phasted
Thu Jan 02, 2014 6:42 pm
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

My apologies to all and sundry for my extended absence... Bam-bam's re-election was a traumatic experience for me. On realizing that the Barack Hussein O-SocialistTrainwreck would be continuing for another four years, I lost interest in many, many things, including Oolite... I've recently taken anot...
by Phasted
Fri Jun 15, 2012 7:40 pm
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

Only if "Agri" worlds have lower prices for computers than Ind. worlds would the Agri. worlds have leftover computers they want to sell. That would only be a short-term state that the player should be very unlikely to see. If that happened, those computers would flow back to the ind. worl...
by Phasted
Wed Jun 13, 2012 5:11 pm
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

I would expect prices to go up when demand is high, but an agricultural world should not have a significant surplus of computers to sell. You have to consider not only what the system produces, but also the quantity that's imported ... High prices attract traders laden with goodies. Instead the RI ...
by Phasted
Thu May 31, 2012 7:42 pm
Forum: Expansion Pack
Topic: [WIP] Real-life economics OXP
Replies: 64
Views: 43912

Re: [WIP] Real-life economics OXP

Great Oxp, really changes the game. However, I noticed that an average agricultural tech level 5 Feudal world had lower prices for computers than a Rich industrial tech level 15 Corporate state. Is this normal? Yep, if the RI system is in a heavily Agricultural cluster [say, IND_under_AG_3 or IND_u...