Jump to content
Game-Labs Forum
pandakraut

Weapon and Perk Modding Guide

Recommended Posts

Based on the work of Tokiedian and JonnyH13 here is an updated guide to modding weapons and perks in the resource.assets. A hex editor will be needed to view and make changes to the file.
- Float values will need to be converted from and into hex using a float calculator.
- Other game values can be changed, but discovering where those values are is largely trial and error. 
- No matter what changes you make, the assets file size cannot be increased or decreased. You can shorten text values to gain space.

The first hex block shows the palmetto infantry rifle. The second block shows the discipline artillery perk. The basic hex blocks will be the same for other weapons and perks. Apologies for the formatting and usage of paint.

image.png.13b7ba1b6e0263f05997330aa803e23d.png

Weapon Hex details

Hex Value Type Notes
8B 04 00 00 thumbnail reference int  
00 00 7A 43 effective range hint float  
00 00 96 43 effective range float  
00 00 96 42 rate of fire float This one is odd. If you enter a float 30 = 100 rate of fire results in the UI. float 100 = 30 rate of fire
00 00 90 41 weapon damage float  
00 00 B6 42 melee damage float  
71 3D 0A 3E accuracy random low float Values shown in tooltip are * 100
CD CC 8C 3F accuracy random high  float Values shown in tooltip are * 100
00 00 96 42 collateral radius float  
05 00 00 00 00 28 C3 36 56 96 3E 3F ... 30 C9 F6 BE 02 00 00 00 02 00 00 00 00 00 00 00   animation curve Length can vary. Can copy between weapons but curves cannot be modified.
1E 00 00 00 weapon ammo int  
0D 00 00 00 weapon cost int  
8F C2 75 3E adaption coef float Affects AI weapon scaling
00 00 80 3F ammo cost float  
01 00 00 00 crew amount int  

Perk Hex Details

Hex Value Type Notes
FF FF FF FF Unit type int 00 00 00 00 is infantry, 01 00 00 00 is Cavalry, 02 00 00 00 is Artillery, FF FF FF FF apply to all. Only corps perks use the type.
02 00 00 00 number of bonuses int this cannot be changed
04 00 00 00 type of bonus    
00 00 00 00 add or multiply bonus int 00 00 00 00 is add, 01 00 00 00 is is multiply
 
00 00 20 41 value added or multiplied float  
 

- Depending on the number of bonuses assigned to the perk, you will see additional sets of three 4 pair blocks for each bonus
- List of Bonus types and associated reference value.
Stamina,00
Efficiency,01
Melee,02
Firearms,03
Morale,04
Stealth,05
Spotting,06
Reload,07
EffectiveRange,08
Cover,09
Accuracy,10
GetMeleeDamageMoraleImpact,11
GetSmallArmsDamageMoraleImpact,12
Ammo,13
RotationSpeed,14
CanisterDamage,15
SolidAndShellDamage,16
HorseSpeed,17
ChargeDamage,18
MoveSpeed,19
Experience,20
CommandRadius,21

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×