How to change speed limit for sliding and all guided weapon ?
-
Hi, everyone.
I am a dev team member of a MOD, but I just used to do weapon balancing. Recently I will start to do some thing more but I encounter a problem.
In the MOD it seems there is setting somewhere that the coasting speed of ships and also speed of missiles and torps can not exceed 400 , even the missiles were launch while coasting.
I change below in constants.ini
[EngineEquipConsts]CRUISING_SPEED = 400 (I changed it to 800)
[PhySysConsts]
ANOM_LIMITS_MAX_VELOCITY = 400 ( I changed it to 1000)And I also change engine_Equip.ini to make the cruising speed to be 800; also cange the setting of thrusters,
Theoretically I did every thing I could but it just don’t work, the coasting speed of ships is still can not exceed 400.
The speed of missiles & torps can not exceed 400, even I launch them from a coasting ship……
I was confused, I must have miss something.
I also check the topic of offset edit of freelancer.exe but found no topic about it, just some topic of change cruising speed display .
I also checked 0x1D7E80 in freelancer.exe, I saw that is 300f (but I got 400 cruising speed)Anyone can get me some hints?
Thanks! -
By sliding, do you mean strafing? Strafe speed is controlled by strafe_force in shiparch.ini. Increasing that 100-fold enabled me to strafe at almost 1000 m/s. No problem with missiles, either, although I don’t know if a missile travelling 1000 m/s sideways is any good…
That offset just controls the display of the cruise speed.
-
Ah yes, I didn’t think strafe was right. Okay then, you’ll want to change max_force in EQUIPMENT\st_equip.ini to increase thruster speed. A quick test increasing it ten-fold makes the maximum speed 1280 (actually 990 due to the limit, which is 1000 by default), no problem with the engine off. Missiles stay ahead of me, too.
-
Without the mod in question I can only guess that perhaps they’ve bypassed reading the limits and hardcoded it. Try checking common.dll (v1.1) offset 0x18b320 - you should see the hex byte sequence 00 00 7a 44 (1000f) or 00 00 c8 43 (400f). Fortunately, it’s only read at one position, at 0x2ca4f - 8b 0d 20 b3 3e 06. If they’ve hardcoded that one, it might look something like b9 00 00 c8 43 90.
-
adoxa, I don’t think that’s required. I’ve had a mod without maximum speed for a long time and it works just fine.
Make sure your ANOM_LIMITS_MAX_VELOCITY (or something like it) constant in Constants.ini is raised, since it’s usually around 400.
-
But that’s the point - it worked for me (with the default value), but not for him (explicitly set to 1000). I can only conclude we’re all missing something, or that mod ignores ANOM_LIMITS_MAX_VELOCITY.
Another thing to try, if you can run it single-player, is to use my Console to set the cruise speed. That will also set the max, if needed. For example, if you use cspd 800, it will set max to 1200 (1.5 times cruise).
-
Brucewoo:
You are talking about firing a missile while the ship is coasting (i.e. with its engine off).
Remember the top speed of each ship is set by its engine’s max_force (plus its thruster max_force if you are pressing tab) divided by the ship drag plus its engine’s drag…
Engine_equip.ini:-
[Engine] nickname = ge_gf1_engine_01 ... max_force = 48000 linear_drag = 599 ... ```Shiparch.ini:- [Ship] … linear_drag = 1.0 ... And the top speed of each missile is set by the motor accel (acceleration) x lifetime (how long the motor acceleration is running)… weapon_equip.ini:-
[Motor]
nickname = missile01_mark01_rtc_motor
lifetime = 1.3
accel = 106.7
delay = 0You have to set these values for each ship engine and missile motor. Modding ain't as easy as we make out! :D Don't change the ship's mass unless you know that it will affect the handling and you then have to fix that too.
-
Guys, Thanks for your answers but It seems still missing some thing.
1, I check common.dll (v1.1) offset 0x18b320 , it is 1000f
2, I check common.dll (v1.1) offset 0x2ca4f , it is 8b 0d 20 b3 3e 06, seems not hardcoded here.
3, other ini setting, such as ships. constant, weapons… I tried them all but didn’t work. ( I think I know those ini well because I did weapon & ship balancing before for the MOD).It just didn’t work, ship speed never exceed 400, missiles always stay behide the coasting ship, even the Hornet CD…
Do you need me to upload the MOD or some file from it for you to analyze?
-
If you could email me Freelancer.exe and common.dll (address in profile; compress first, please), I can tell you if something has been hexedited. If nothing has, I guess we’ll need the whole mod (unless you’re prepared to take the time to strip it down).
-
I change below in constants.ini
[EngineEquipConsts]CRUISING_SPEED = 400 (I changed it to 800)
[PhySysConsts]
ANOM_LIMITS_MAX_VELOCITY = 400 ( I changed it to 1000)And I also change engine_Equip.ini to make the cruising speed to be 800; also cange the setting of thrusters,
Theoretically I did every thing I could but it just don’t work, the coasting speed of ships is still can not exceed 400.
The speed of missiles & torps can not exceed 400, even I launch them from a coasting ship……
I was confused, I must have miss something.
I also check the topic of offset edit of freelancer.exe but found no topic about it, just some topic of change cruising speed display .
I also checked 0x1D7E80 in freelancer.exe, I saw that is 300f (but I got 400 cruising speed)I think its a good idea.
-
Sry for grave dig but have a question.
Does the entries in sonstants.ini
ANOM_LIMITS_MAX_VELOCITY = 400000
and
CRUISING_SPEED = 300affects in any way maneuverability in pvp, missile/torp/mine and rest usage?
Simpler: Do I change FL physics in pvp with that entries? -