View Full Version : Adjusting projectile stats
RangerLee
06-25-2007, 16:05
Very much a newb when it comes to moding M2TW. So starting simple, I have unpacked the files. How would I go about doing something as simple as modifying the projectile weapon damage, accuracy and so on, for example on cannons and muskets?
FactionHeir
06-25-2007, 16:25
Most projectiles have an accuracy line. This ranges from 0.00000000 etc to 1.
The lower that number, the higher the accuracy. This means that if you give a projectile an accuracy of 1, it will always miss horribly.
An accuracy of 0 on the other hand means always hit. Do note that sometimes a slightly higher than 0 number is better than a straight 0, as at 0, the projectile will hit the dead center of the unit, as indicated by the red column. Also, for balance reasons, having everything hit at 0 is rather....unfun.
Damage. Damage against units is controlled by the descr_unit file while damage against buildings is controlled by the projectile file. Which values to change should be intuitive.
From personal testing, Area and mass do nothing, while radius control the size of impact and the area in which damage is dealt. So higher radius = more devastating. Note that 0.1 radius increments are very small and nearly unnoticable. A too high radius (usually 2.6 or higher) is dangerous for the crew, as the projectile will often hit backward, killing your crew and units near your artillery instead of the intended target.
Stuff like groundshatter and boucne need to come in a specific order. So if you activate bounce for instance, at times you'll note M2TW failing to laod (i.e. CTD), but the errorlog should tell you where to then place the lines.
RangerLee
06-26-2007, 22:25
FactionHeir, thanks so much. For the accuracy line, I do not see that in the export_descr_unit.txt, is that found in a different file?
yeah the accuracy line is found in descry_export_projectiles
there look for accuracy against units....
FactionHeir
06-27-2007, 18:02
Yes, its in the projectile file. While I was typing the initial reply, I assumed that we are talking about the projectile file when not specified due to your original post focussing on it.
Hope that helps.
RangerLee
06-27-2007, 20:44
Helps alot, thanks to both of you!
RangerLee
06-27-2007, 23:56
Is that file in the data folder with the rest of them such as the expor_descr_unit? I have been unable to find that projectile file. Thanks again.
FactionHeir
06-28-2007, 01:42
You need to use the unpacker to get it.
RangerLee
06-28-2007, 18:46
Right, I used the unpacker, this is why I can see the unit.txt file, however I did not find the projectile file. I was just wondering if it is in a different spot.
RangerLee
07-01-2007, 19:53
I have ran the unpacker a second time but can not for the life of me find descry_export_projectiles
Where is it located? Even doing a search for that file on the whole computer does not bring it up?
It is Descr_export_projectile and its located in the main data folder.....
RangerLee
07-03-2007, 16:57
Ahh ha, found it, it is actually named Descr_projectile, that is what was messing me up, I kept looking for it with export in the name.
thanks again.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.