Modding ground units speed

Shkura
Private First-Class
Posts: 5
Joined: Mon 20 Jun 2016 09:19
Contact:

Modding ground units speed

Postby Shkura » Mon 11 Jul 2016 20:21

Hello. I want to make the game feel more like Close Combat and a good start would be slowing all ground units. Any advices how to change road and combat speeds please?

User avatar
MenDuck
Major
Posts: 1880
Joined: Sat 6 Sep 2014 23:03
Contact:

Re: Modding ground units speed

Postby MenDuck » Tue 12 Jul 2016 13:40

viewtopic.php?f=187&t=42266&p=569407&hilit=speed#p569407

A minute of using the Search function will spare you from making such threads. But since you're new here, it's hard to blame you.

Welcome to the Forums, BTW.

Shkura
Private First-Class
Posts: 5
Joined: Mon 20 Jun 2016 09:19
Contact:

Re: Modding ground units speed

Postby Shkura » Tue 12 Jul 2016 15:00

Thanks. Is there any way to change combat speed quickly instead of going unit by unit?

User avatar
The W:AB Noob
Lieutenant General
Posts: 4568
Joined: Fri 12 Jul 2013 22:29
Location: United States, Central Time Zone
Contact:

Re: Modding ground units speed

Postby The W:AB Noob » Wed 13 Jul 2016 02:19

I didn't explain very much in the post MenDuck linked you to, so here are some more details if you haven't figured it out already:

Movement is in TUniteAuSolDescriptor>Modules>MouvementHandler>Default. Though all units have this path for to their speed class, vehicles, helicopters, and planes use slightly different classes.

Maxspeed is a variable in all types of movement handlers, and it is the ingame number times 52 (ie. if a car has 80km/h speed, the value in the Modding Suite is 4160.) Notte that for ground vehicles, maxspeed is not road speed, it is the actual speed of a ground unit. In-game road speed = (Maxspeed x (1 + SpeedBonusOnRoad))/52

If you want to change all the ground speeds in the game, you got a couple options:
1. Go to all instances of MouvementHandlers. Search "mouv" in the modding suite and the first 3 are all the speed stuff for every vehicle, helicopter, and plane in the game, then change those one by one.
2. Change the displayed scale. In NDF_Win.dat, there is a file called gdconstanteoriginal.ndfbin. In there, go TTunableConstante>MultiplicateurMetreRTSVerDistanceFeedbackTactique (115) which has a value of 0.35 in vanilla. In wargame, all ranges are shown 3.5 times larger than they really should be. You can notice this when you look from a tanks point of view to a target 2km + away, you can see the target, though in reality, you should not be able to with the naked eye. if you change the value to 0.1, all ranges, speeds, and autonomy will be at the realistic value.
3. Use an XML script. If you want to go this route, you're in luck because I wrote something for this a couple months ago for a gameplay test. It changes all vehicles to have road speeds 5/4ths of its Maxspeeds and reduced all Maxspeeds to realistic values.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<wargamepatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="NoRoadBonus">
    <changes>
      <change property="SpeedBonusOnRoad" type="Float32">0.25</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="60Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">3120</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">2496</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="65Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">3380</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">2704</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="70Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">3640</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">2912</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="75Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">3900</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">3120</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="80Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">4160</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">3328</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="85Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">4420</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">3536</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="90Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">4680</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">3744</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="95Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">4940</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">3952</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="100Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">5200</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">4160</change>
    </changes>
  </ndfpatch>
  <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TMouvementHandlerLandVehicleDescriptor" name="105Spd">
    <matchconditions>
      <matchcondition property="Maxspeed">5460</matchcondition>
    </matchconditions>
    <changes>
      <change property="Maxspeed" type="Int32">4368</change>
    </changes>
  </ndfpatch>
</wargamepatch>


If you have any questions or need some 1-on-1 one help, write here or friend me on Steam @ The W:RD Noob.
W:RD Sandbox Mod 5.4.3 Click -> Image

Shkura
Private First-Class
Posts: 5
Joined: Mon 20 Jun 2016 09:19
Contact:

Re: Modding ground units speed

Postby Shkura » Wed 13 Jul 2016 07:32

Thanks a lot. Sent an invite.

Shkura
Private First-Class
Posts: 5
Joined: Mon 20 Jun 2016 09:19
Contact:

Re: Modding ground units speed

Postby Shkura » Thu 14 Jul 2016 06:55

That's what i got
Attachments
Capture.PNG
Capture.PNG (93.8 KiB) Viewed 1695 times

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 7 guests