What is your maximum speed
Moderators: winston, another_commander
Re: What is your maximum speed
And it's also read-only. The only one writable by scripting is desiredSpeed.
On a similar track, do I remember that there was some thoughts about a desiredThrust as well? I can't see anything about it actually appearing in the wiki though?
On a similar track, do I remember that there was some thoughts about a desiredThrust as well? I can't see anything about it actually appearing in the wiki though?
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Killer Wolf
- ---- E L I T E ----
- Posts: 2278
- Joined: Tue Jan 02, 2007 12:38 pm
Re: What is your maximum speed
and there was me thinking you were a fellow Flogging Molly fan.Thargoid wrote:The speed of Dark.
No matter how fast light is, it always gets there first...
http://itunes.apple.com/us/preorder/spe ... d424424418
Re: What is your maximum speed
It's a Pratchettism...
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: What is your maximum speed
Thargoid wrote:And it's also read-only. The only one writable by scripting is desiredSpeed.
On a similar track, do I remember that there was some thoughts about a desiredThrust as well? I can't see anything about it actually appearing in the wiki though?
Speed
can not be set directly, because it would look ridiculous when a ship changed speed drastically in a split second. Therefor we have a desiredSpeed
. When set, the engine increases/decreases speed according to the thrust value until the desiredSpeed is reached. Thrust in instantaneously, therefor a desiredThrust
would seem a strange thing. Thrust
can be set directly by script.UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: What is your maximum speed
but that's what happens when you hit the torus jump drive.Eric Walch wrote:Speed
can not be set directly, because it would look ridiculous when a ship changed speed drastically in a split second.
I have to admit though I have wondered about the effect of momentum when coming out of the jump drive.
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
-
- Quite Grand Sub-Admiral
- Posts: 6681
- Joined: Wed Feb 28, 2007 7:54 am
Re: What is your maximum speed
Not exactly. The ship accelerates very quickly to torus speed and deccelerates quickly when torus switches off, but it does not jump instantly between speed values from one frame to the next, which is what would happen if we were able to set actual speed by script.TGHC wrote:but that's what happens when you hit the torus jump drive.Eric Walch wrote:Speed
can not be set directly, because it would look ridiculous when a ship changed speed drastically in a split second.
Re: What is your maximum speed
Oops forgot to read memo to self, leave it to those who actually know
slap
slap
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: What is your maximum speed
As Another_Commander writes: Also for the player acceleration goes by thrust. However, Oolite is cheating here because it multiplies the thrust in shipdata with 7 for the player. I assume is was to enhance playing for the player. (try flying an Annaconda and you know what I mean). But it means that a player accelerates always faster than the identical npc variant of the same ship.TGHC wrote:but that's what happens when you hit the torus jump drive.
I have to admit though I have wondered about the effect of momentum when coming out of the jump drive.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: What is your maximum speed
My meaning was to have variable thrust for different scenarios. I hadn't spotted that it's R/W for NPCs though, which as you say covers what I was thinking about for desiredThrust.Eric Walch wrote:Thrust in instantaneously, therefor adesiredThrust
would seem a strange thing.Thrust
can be set directly by script.
That said I'm hitting a problem anyway with a little OXP I'm playing around with in that the script-settable thrust value seems to be clamped by the setting in the shipdata.plist. For example cargo pods have max speed of 50 but thrust of 0, so you can't actually make them move without resorting to an override to up the thrust value in the shipdata. At least so it appears with my playing so far, but I'm still looking at that. If script can override the shipdata setting directly it will be much cleaner.
As for changing speed instantaneously, watch what an NPC ship which is flying along does when it's AI suddenly hits a performTumble. They fairly much instantaneously stop and then start tumbling (my hired guns are prone to that one). I don't disagree it looks wrong though.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: What is your maximum speed
I had a problem with an earlier version of my mod doing that for the NPC ships, since I was using performTumble as a "dodge" routine when they were getting hit. In initial tests, it worked great because I also had a set speed in the same line. But when I later pulled the 2 separate, because I didn't always want them to tumble when I wanted them to increase speed (such as attacking instead of fleeing)...things went awry. It was stop-on-a-dime behavior even if the set speed should be called at roughly the same instant as performTumble.Thargoid wrote:As for changing speed instantaneously, watch what an NPC ship which is flying along does when it's AI suddenly hits a performTumble. They fairly much instantaneously stop and then start tumbling (my hired guns are prone to that one). I don't disagree it looks wrong though.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: What is your maximum speed
Yes, performTumble is the only command that bypasses the thrust and immediately sets speed to zero.Thargoid wrote:As for changing speed instantaneously, watch what an NPC ship which is flying along does when it's AI suddenly hits a performTumble. They fairly much instantaneously stop and then start tumbling (my hired guns are prone to that one). I don't disagree it looks wrong though.
To your other problem. Since 1.75 you can set
velocity
. e.g. if you target a floating cargopod without any speed, you can target it and type 'PS.target.velocity = [0,0,20]" in the console. Than it will start moving immediately in that direction [0,0,1] with a speed of 20. During game it looks stupid when setting an explicit velocty, but it is very useful when spawning stuff with an initial momentum. And this is probably what you want.UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: What is your maximum speed
Not exactly, but I can modify it to what I want.
Basically I'm working on a quasi tractor-beam, to pull things towards a certain point in space.
Basically I'm working on a quasi tractor-beam, to pull things towards a certain point in space.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: What is your maximum speed
A larger effect of that sounds more like ordinary gravity...or worst-case, a black hole.
Re: What is your maximum speed
Tried playing around with velocity last night, and it works a treat for this application. Had great fun throwing cargo pods and asteroids around the place.
One thing I did note though was that velocity has no effect on speed. I chucked several asteroids at the main station (as you do ) and they all still had speed zero, despite moving at around 2500m/s.
I know they are seperate script entities, but given their physical interrelation it just seemed somewhat odd to me to have that disparity and independence between the two? Although I know it will be difficult to fix realistically, especially given the clamping of speed to maxSpeed as set in shipdata.
Oh and speaking of which, I also tested script-changing thrust. It is capped at the shipdata.plist entry for the entity involved (or at least I couldn't change the thrust of a cargo pod from 0, its shipdata setting) so that way is somewhat limited without an override.
One thing I did note though was that velocity has no effect on speed. I chucked several asteroids at the main station (as you do ) and they all still had speed zero, despite moving at around 2500m/s.
I know they are seperate script entities, but given their physical interrelation it just seemed somewhat odd to me to have that disparity and independence between the two? Although I know it will be difficult to fix realistically, especially given the clamping of speed to maxSpeed as set in shipdata.
Oh and speaking of which, I also tested script-changing thrust. It is capped at the shipdata.plist entry for the entity involved (or at least I couldn't change the thrust of a cargo pod from 0, its shipdata setting) so that way is somewhat limited without an override.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: What is your maximum speed
Shouldn't ramming/nudging asteroids impart a speed on them as well?