Cruise Engine
-
What I would like to do (if possible) is to make the cruise drive’s acceleration and deceleration to be virtualy instant.
So for example, when you disengage cruise engine, your ship comes to a stop right away. Is it possible to alter the code to work like this??
-
Don’t know about deceleration, but acceleration is controlled by…just wait till I find it again…
constants.ini [EngineEquipConsts] CRUISE_ACCEL_TIME = 5.0 ```As it happens, it's described [here](http://the-starport.net/freelancer/wiki/index.php/MDB:constants.ini#EngineEquipConsts_Section), along with all the other values. By stop, do you mean set speed to 0? If not, I just wasted an hour… Here's a hexedit to do it. It detects cruise being turned off and sets the speed to 0.
0C7A81: 6a 00 e8 68 00 00 00 83 c4 04 c3
0C7AB0: 80 7c e4 04 00 74 ca c3 -
Adoxa, you’re seriously awesome
-
No need for a hex edit just change this line in the engine and the shiparch
linear_drag =
-
adoxa wrote:
Don’t know about deceleration, but acceleration is controlled by…just wait till I find it again…constants.ini [EngineEquipConsts] CRUISE_ACCEL_TIME = 5.0 ```As it happens, it's described [here](http://the-starport.net/freelancer/wiki/index.php/MDB:constants.ini#EngineEquipConsts_Section), along with all the other values. By stop, do you mean set speed to 0? If not, I just wasted an hour… Here's a hexedit to do it. It detects cruise being turned off and sets the speed to 0.
0C7A81: 6a 00 e8 68 00 00 00 83 c4 04 c3
0C7AB0: 80 7c e4 04 00 74 ca c3Thats exactualy right, want cruise to accelerate and decelerate basicaly instantly.
The reason being, I play lan games of freelancer with my brothers, and I use a version of 88 flak that I’ve modified a fair bit for our personal use. I want to have realy fast cruise speed, but without the whole crashing into planets as you decelerate =P
anyways, thanks for the help. I’m sure I should be able to figure the rest out now. =D
-
Just a little update on this fairly outdated topic. Got into it however and found out a few things:
- The cruising_speed has a hardcoded limit. You can set it through the constants.ini up to a 1000 and this is what you get then. If you set it higher, you get only 990 but the acceleration gets significantly larger.
- The cruise_accel_time is not determining but only affecting the true acceleration time. With 2 you sure accelerate faster than with 10 (and it is pretty accurately at 10), but if your cruising_speed is not larger than 1000, you might set your acceleration time to 0.1 or even 0 and still need about 3s to accelerate to the cruising_speed. This may be true even for higher velocities; however, since they cannot be reached but are calculated to be reached within the same seconds, the ship reaches the hardcoded maximum faster, the higher the specified speed is.