Preface: I have played parts 1 to 4 of the Kingdom Guard series (Kingdom Defense, Kingdom Defense: Frontline, Kingdom Defense: Origin, Kingdom Defense: Revenge), among which the data storage method and file structure of the fourth part Different from the first three parts, the data modifications of the first three parts will be introduced in the next article. This article mainly introduces the hero values of the fourth part of Kingdom Guards: Kingdom Defense: Revenge, as well as the defense tower values and other parameters. Modifications.
The areas that can be modified in this game are mainly divided into two folders. One is the folder where the game itself is located. The main changes here are defense towers, hero damage, etc. Another folder is under the Windows user's folder. This is where the three archives in the game are located, so the hero levels corresponding to the archives and the achievements of the archives are placed.
The address of the local archive file:
C:\\Users\\用户名\\AppData\\Roaming\\kingdom_rush 第一部
C:\\Users\\用户名\\AppData\\Roaming\\kingdom_rush_frontiers 前线
C:\\Users\\用户名\\AppData\\Roaming\\kingdom_rush_origins 起源
C:\\Users\\用户名\\AppData\\Local\\Kingdom Rush Vengeance 复仇(复仇所在的父目录和前三部不一样)
The content that can be modified in this folder is the hero level and unlocked achievements.
Slot_1 represents archive one, and this game has up to three archives.
Record of the number of levels and clearance status in Kingdom Defense:
<dict>
<key>level_index</key>
<integer>1</integer> //关卡数
<key>status</key>
<integer>3</integer> //正常战役
<key>seen_mode_notification</key>
<true/>
<key>stars</key> //星星数量
<integer>3</integer>
<key>heroic</key>
<true/>
<key>dif_heroic</key> //英雄挑战
<integer>3</integer>
<key>iron</key>
<false/>
<key>dif_iron</key> //钢铁挑战
<integer>0</integer>
<key>dif_campaign</key>
<integer>3</integer> //通关难度级别,3为不可能难度
</dict>
Hero level modification:
维鲁克:KR4_HERO_VERUK
阿斯拉:KR4_HERO_ASRA
奥洛克:KR4_HERO_OLOCH
苦楝夫人:KR4_HERO_MARGOSA
墨忒弥斯:KR4_HERO_MORTEMIS
特拉敏:KR4_HERO_TRAMIN
极狗:KR4_HERO_JIGOU
黑龙-贝雷萨德:KR4_HERO_BERESAD
毁灭坦克 SG-11:KR4_HERO_TANK
浚湃:KR4_HERO_NAGA
冰龙-艾斯酷特:KR4_HERO_EISKALT
火龙-墨尔古伦:KR4_HERO_MURGLUN
风暴龙-电云:KR4_HERO_DIANYUN
南瓜灯杰克:KR4_HERO_JACK_O_LANTERN
猛犸-各罗什:KR4_HERO_MAMMOTH
The modification method is to search for the variable name of the corresponding hero in the file, and then modify its XP value and level value.
For Example:
The picture above shows the experience value and level of the hero Dian Yun. If the experience value is changed to 400000, it will reach the tenth level standard. Then change the level to 10, and the hero's level will be modified. If you want to modify the hero's basic damage and skills The damage needs to be modified in the local folder of the game.
The folder where the game itself is located:
This folder is where the game is installed. You can right-click the corresponding game preview local file in Steam to find it.
The content that can be modified in the game folder is basically in the KR4 folder. Currently, what I know is the level folder and settings folder in the KR4 folder.
The Level folder records the occurrence of monsters in all levels, the walking route of each wave of monsters, etc. The Settings folder records the basic damage of the hero, the settings of the defense tower (such as modifying the damage of the defense tower, the number of stations on the defense tower, etc.) Who is the person, the number of soldiers sent to the barracks), and modify the occurrence of monsters in each level, etc.
The game's defense tower configuration, hero configuration files, etc. are all in: Kingdom Rush Vengeance\KR4\Settings.
The plist file in the folder is the configuration file. The main places that can be modified are power_settings.plist, towers_settings.plist, and units_settings.plist. The specific modifications of these three files are introduced below.
power_settings.plist:
This file can modify the parameters of reinforcements and soul impact.
Reinforcements:
Search for keywords reinforcement_melee
and click cooldown below to modify the reinforcement cooldown.
Soul impact:
Search for keywords power_soul_impact
and click cooldown below to modify the soul impact cooldown.
towers_settings.plist:
The main modifications under this folder are the specific parameters of tower damage.
In this configuration file, there are dozens of lines of code descriptions for each defense tower. When the game is loaded, these data will be imported into the memory. The modification idea is the same as before, which is to find the corresponding variable name that needs to be modified to understand the role of its corresponding parameters. You can modify it at will.
tips:
1. In this file: towers is the description of the defense tower, and units is the description of the corresponding unit of the defense tower.
2. The description of the defense tower in the file is hierarchical. For example, the description of the first-level tower of Boomerang is warmongers_archer_level1. Therefore, when modifying the defense tower, you need to modify other levels together. Of course, you can also directly modify the last level. It is level4 for modification.
The following are the names of each defense tower variable:
回旋镖 warmongers_archer
萨满 warmongers_mage
飞艇 balloon
兽人兵营warmongers_barrack towers塔 warmongers_soldier units兵
火箭 warmongers_rocket towers
黑骑 dark_army_barrack towers塔 dark_army_soldier units兵
黑弓 dark_army_archer towers塔 units射手
黑暗法塔dark_army_mage
熔炉 dark_army_melting towers
宝石 dark_army_blazing towers
火法 ember_lords_mage towers塔 units射手
幽灵墓 spirit_mausoleum towers
僵尸墓 grim_cemetery towers塔 fallen_ones_zombie units兵
骷髅塔 bone_flingers towers
腐森 rotten_forest towers
女巫 wicked_sisters towers塔 wicked_witch units骑手
骚扰者 elves_barrack towers塔 elves_soldier units兵
鱼人塔 deep_devils_reef towers塔 deep_devils_shooter units射手
鱼人兵 greenfin_soldier前三级 redspin_soldier四级 units兵
沼泽巨人 swamp_monster towers塔
远程模式 swamp_monster_shooter units射手
近战模式 swamp_monster_soldier units兵
特殊塔
巨魔 troll_hut towers塔 mercenary_troll units兵
蜘蛛蛋 spider_tower_egg towers塔 babyspider units兵
强盗 linirea_caravan towers塔
三种强盗Bandit Raider Marauder units兵
Once you know the names of these variables, you can directly try to modify the corresponding parameters.
For Example1: (Try to modify the parameters of Barracks: Harasser)
First search for the corresponding variable name in the configuration fileelves_barrack
level
You can see that four parameters have been searched in this file . You can jump directly level4
to 24497
line 1.
The first thing that can be modified is cost
the price of the defense tower, and then soldiers
the number and type of troop dispatching units in the barracks can be modified:
max
Indicates the maximum number of troops sent by the barracks. Here I changed it to 3 type
to indicate the unit that sends troops. It can be changed to other units such as Dark Knights.
Then there are skills:
This part of the code is relatively long and not truncated. The main thing that can be modified is rally. The Chinese translation means rally, so it is obvious that the dispatch range of the barracks unit can be modified in the range below, and then there are some specific The money spent to upgrade the skills of the barracks, but I personally think there is no need to change this.
Finally, the part about the barracks unit itself is not included in this document and units_settings.plist
will be analyzed later.
For Example2: (Try to modify the parameters of defense tower: Swamp Thing)
The first thing that can be modified is still the cost, the amount of the tower. Then there are the skills. The main thing I modified here is the range that the swamp monster can move in melee combat:
Regarding the defense tower, the parameters that I currently know that can be modified are as follows:
1.抗性:
<key>ignore_armor_points</key>
<integer>75</integer> //攻击无视75点抗性,没有表明无视护甲还是魔抗,可能是双穿。
2.眩晕:
<string>stun</string>
<key>duration</key> //持续时间,负面状态一般都会有的代码,女巫中毒幽灵墓策反等。
<real>0.3</real> //0.3秒,关于时间的数字,单位都是秒。
<key>rotate_unit</key> //摇晃单位
3.打断敌人的攻击和技能:
<key>pause_unit</key> //重置单位
<true/> //如果是不打断施法这里的参数就是false
4.攻击间隔、技能冷却:
<key>cooldown</key>
<integer>4</integer> //integer表示被包裹的数据类型为整形
5.攻击动作、施法动作时间,即前摇、抬手动作:
<key>action_time</key>
<real>1.83</real> //real为浮点型
6.范围,调集范围、攻击(施法)范围和伤害范围:
<key>range</key>
<integer>320</integer>
7.会攻击飞行单位:
<key>targets_flying_units</key>
<false/> //布尔类型,只有两个值,true真,false假,在游戏里表示是否。
8.伤害得到飞行单位:
<key>damage_flying_units</key>
<false/> 否
9.伤害最小值:
<key>damage_min</key>
<integer>5</integer>
10.伤害最大值:
<key>damage_max</key>
<integer>7</integer>
11.伤害类型:
<key>damage_type</key> //0物理伤害 1魔法伤害 2炮弹伤害(无视一半护甲的伤害类型,多数是炮塔拥有的伤害类型,故取名为炮弹伤害) 3真实伤害
<integer>0</integer>
12.使敌人爆炸:
<key>should_explode_units</key>
<true/>
units_settings.plist
:
In this configuration file, you can modify the detailed parameters of the hero, the data of the units on each defense tower, and the attributes of the enemy units. First, let’s take a rough look at the main branch tags of the file:
dwarves:矮人
dinos:恐龙
barbarians:野蛮人
linirea:迪纳斯城堡版图的单位描述(12~16关的单位)
humans:人类
warmongers:哥布林、兽人
specials:特殊的单位(雇佣兵,蜘蛛,电云的雷电之子等)
dark_army:暗黑敌人
ember_lords:火焰法师
demons:恶魔
fallen_ones:僵尸、石像鬼
rotten forest:腐蚀森林
wicked_sisters:邪恶姐妹花
elves:精灵
deep devils:深渊恶魔(鱼人)
sapos:阿努瑞副本单位
hielo:寒冰怪
halloween:万圣节(远古幽魂副本)
swamps:沼泽
chino:中国春节副本
shaolin:少林
heros:英雄
Below each label are descriptions of several units, and each unit under each label belongs to a race or has the same characteristics. For example: the units dark_army
in are dark knights, shadow archers, and units in gem towers; in the heroes label is the heroic unit. The information descriptions of units are basically the same, including blood volume, resistance, skills, etc. If it is an enemy, it will also be enemy
marked. The labels that can be changed for each unit are:
1.生命值:
<key>health</key>
<integer>120</integer>
2.抗性点数:
<key>armor</key>
<integer>0</integer>
3.抗性类型:
<key>armor_type</key>
<integer>0</integer> //数值为0是指护甲,为1指魔抗
4.单位伤害:
<key>damage_min</key> //最小伤害
<integer>12</integer>
<key>damage_max</key> //最大伤害
<integer>36</integer>
<key>damage_type</key> //伤害类型,0是物伤,1是法伤,2是跑伤,3是真伤
<integer>0</integer>
5.移速:
<key>speed</key>
<integer>36</integer>
6.拦截范围:
<key>block_x_position</key> //拦截位置,不用修改
<integer>10</integer>
<key>block_range</key> //指我方近战单位会拦截敌方单位进行战斗的范围
<integer>100</integer>
7.扣心:
<key>skulls</key> //指敌方单位进家会扣多少心
<integer>1</integer>
8.打死后获得的金钱:
<key>gold</key>
<integer>10</integer>:
9.技能:
<key>skills</key> //包括近战和远程攻击
10.重生时间:
<string>respawn</string>
<key>time</key>
<integer>15</integer>
11.休战后回血:
<string>regeneration</string>
<key>cooldown</key>
<integer>2</integer>
<key>healing_points</key>
<integer>24</integer> //这里的意思是每隔两秒回24滴血
12.近战相关数据:
<key>melee</key>
13.远程:
<key>range_unit</key>
14.索敌类型:
<key>search_type</key> //该类型有4种,NORMAL,MAX_HEALTH,RANDOM,FAR_FROM_EXIT
<string>NORMAL</string>
//MAX_HEALTH(优先选取生命值最高的敌人,幽灵墓的策反)
//RANDOM(随机攻击,骷髅塔)
//FAR_FROM_EXIT(在路径上离入怪口最远的敌人,宝石)
Of course, not only your own units can be modified, but enemy units can also be modified. The following are the variable names of enemy camp units:
-
Dwarves series dwarves
矮人卫兵 bruiser 战锤护卫 warhammer_guard 利齿机器人 chomp_bot 发条蜘蛛 clockwork_spider 自行飞车 cyclopter_pilot 灰须工程师 smokebeard_engineer 剃须枪手 tinbeard_gunman 采石工 quarry_worker 石须地卜师 stonebeard_geomancer 硫之炼金术师 sulfur_alchemist 机械矮人Mk.9 mechadwarf 金王博古尔 boss_dwarf_mecha
-
icefield series barbarians
冰蓝飞龙 blue_wyvern 冰河狼 glacial_wolf 北国女猎手 northern_huntress 北国野人 northern_wilding 顶级掠食者 apex_stalker 顶级碎片 apex_shard 寒冰女巫 ice_witch 纳诺克战熊 nanoq_warbear 北国狂战士 northern_berserker 飞纵龙 leap_dragon 女武神 valkyrie 尸鬼 draugr 霜巨人 frost_giant 斯维尔德鲁伊 svell_druid 冰川飞龙 mega_boss_dragon
-
Dinas castle series linirea
新兵 footman 仆从 elite_footman 部队上尉 banner_bearer 猎鹰 guardian_eagle 看门狗 hunting_dog 虔诚的祭祀 devoted_priest 精灵游侠 elven_warrior 矮人狮鹫火炮 griffin_bombardier 奥术法师 arcane_magus 高阶魔法师 high_sorcerer 火枪手 musketeer 圣骑士 paladin 农民 farmer 持盾手 tower_shield_knight 骑士 knight_rider 战场运输车 war_wagon 骑士楷模 mega_knight
-
Anuri copy series sapos
水晶翼蛇龙 sapos 阿努瑞追猎者 chaser 阿努瑞注魔师 infuser 阿努瑞看守者 warden 阿努瑞通灵师 bullywags_channeler 阿努瑞博学者 bullywags_erudite 水晶毁灭者 bullywags_golem 智者珀利克斯 anurian_boss
-
Ghost copy series halloween
幽魂 ghost 载骨机 bone_carrier 鬼缠骷髅 haunted_skeleton 狼人 werewolf 蚀骨之魂 corrosive_soul 巫妖 lich 尖啸蝙蝠 screecher_bat 远古幽魂 lord_of_afterlife
-
Winter copy series hielo
冰冻之心 frozen_heart 冰冻之魂 frozen_soul 雪傀儡 ice_golem 冰雪收割者 ice_reaper 凛冬领主 winter_lord 凛冬女王 winter_queen
The above is an introduction to the parameters related to Kingdom Defense: Revenge. There is still one gold coin modification left but requires the use of CE. The remaining part considers analyzing the base address of the gold coin parameters, so I plan to write a separate article later. , this article ends here.