Full Stop Key

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Greyman
Dangerous
Dangerous
Posts: 98
Joined: Thu Jun 05, 2008 5:54 pm
Location: somewhere in the Bavarian outback

Full Stop Key

Post by Greyman »

Good evening everyone,

I do have a small suggestion which might be a good addition to the game. I propose adding a key binding to bring the ship to a quick stop. This might come in handy in some dog fight situations and even during docking sequence if another ship suddenly crosses your flight path.

As I'm not familiar with scripting Oolite I really don't know if this might be added through a OXP (maybe something like a retro thruster) or if it has to be put into the main code. Also I couldn't find a thread wih a similar suggestion so far.

Any opinions on this topic?


Greyman
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

OXPs can't define new keys. But other than that it's simple (player.ship.speed = 0).
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Thargoid wrote:
OXPs can't define new keys. But other than that it's simple (player.ship.speed = 0).
did

Code: Select all

player.ship.speed
become read/write lately gotta test that

Edit: answer no

Code: Select all

> player.ship.speed = 0
Warning (strict mode): player.ship.speed is read-only
    Active script: "oolite-debug-console" 1.72
    oolite-debug-console.js, line 218:
    	if (result === null)  result = "null";
Bounty Scanner
Number 935
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Hmm, I thought I'd used it and it worked. Perhaps I'm mixing it up with something else.

Ah well, the log file has the final say I guess ;)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Thargoid wrote:
Hmm, I thought I'd used it and it worked. Perhaps I'm mixing it up with something else. ;)
You probably used: desiredSpeed. This is the speed the ship aims at and it will accelerate/decellerate to this speed according to the thrust settings and some other settings that might overrule this. It works never immediately but just like the AI command setSpeedTo:
And when set higher that maxSpeed it will use fuelInjection to achieve this speed (If fuel and the injectors are present).
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Apart from the problems in scripting it, I have to say that I don't agree with the suggestion in the first place. Why should the player get a quick stop option for his ship, and NPCs shouldn't?

And generally I think it makes sense that it takes some time to accelerate a ship, and some time to decelerate it. And by the way, how fast a ship accelerates and decelerates is defined by the thrust-key in shipdata. Ship designers are free to use this to create a ship that accelerates from naught to sixty in less than a second! :wink: And deceletation would be equally quick.

An alternative way of bringing your ship's speed to naught in an instant would be hitting the Coriolis of your choice (works like a concrete wall for your car) :twisted: .
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

You can already do naught to sixty in under a second if you've got the fuel injectors fitted. Just jab "I" for a half-second.

For me it wouldn't be so game-unbalancing I think. Or alternatively the fuel injectors should be changed to only become available when you're already running at max normal speed perhaps?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Fuel Injectors don't help you at all for stopping your ship.

And the suggestion was only about a quick stop.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

I know. You mentioned acceleration though ;)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Just because of the car-analogy. In car tests we usually get the 0-60 times. Less often the sixty-to-naught values. :wink:

And in Oolite (fuel injectors aside) both are governed by the same thrust-key.
Post Reply