Recently, we are playing tower anti-DDoS for the Chinese New Year version, which is easy to get started and easy to pass. I am very fond of researching game archives to see if there are any special plots, characters, and items that can be found.
First, use ifunbox or something to copy the archive directory to the local computer. For example, I am storing it in: C: \ Users \ USERNAME \ Desktop \ Foldername \ F38DE1C9-0098-42AC-AF62-8D2A6A82E44F.
There are four sub-directories below. I am interested in two of them: Documents, which stores archive files and threekingdomstdsehd. app, which contains pictures, music, generals, item materials, maps, and plots. Except the save. plist directory, all the others are the second directory in the previous article. All XML files are available in four languages: English, simplified Chinese, traditional Chinese, and Japanese.
- items_hd.xml
- there are three types of items: weapons, equipment, and mounts. The corresponding itemtypename is weapon, equipment, and viecle. Fang Tian's biggest attack power is 150 yuan, followed by qinggang sword and zhuque claw, each of which is 140 yuan. The biggest weapon in the attack scope is Qinglong yanyue Dao, 32. The largest equipment is Sun Tzu's Art of War, shombiaoyan, dumplings, and Chinese knot, which both increase the attack range by 40. The largest mounts are the red rabbit, the attack range is increased by 48.
- under each item
- icon image: Specifies the image name of the item.
- money contains buckets and buckets. I didn't find any places where I could buy or sell items, so this may be used for future extension.
- limites. LV, it should be said that the minimum level of use of weapons, such as Zhuge crossbows, can only be used by three or more troops. Wuxings is unknown. May it be related to the fifth line? Bosses, this item should be used only by a certain military force. For example, Fang Tian can only use Lu Bu.
- impacts, value = 1 should be the attack power. num = + 150 means an increase of 150. Therefore,
- skills_hd.xml
- skills are divided into generals and general soldiers, but there is no obvious distinction between them from XML items.
- expend/food ~ Value indicates the number of points consumed by the skill. For example, it consumes 45 points. It should be noted that effectarea indicates the range of skill use, for example, the encouraging effectarea value = "320", but the game uses a large, local, global representation of the range size. If you look at the top-level skills of major generals, such as the flood of the seven armies, you can know that effectarea value = "19998" represents the global.
- duration indicates the skill duration.
- explain targets indicates which soldier the skill is effective for, including generals and general soldiers. For example, skill id = "27", Yong Meng, specifically for Zhang Fei: objective target soldierid = "18"/8816/8815/8814/8813
- soldier_hd.xml
- all the generals and general military information, including the items and skills in the initial state of the general.
- what makes people criticized is that each general sets 5 records from 1 to 5 according to start LV and uses different soldier IDs respectively. I don't know why this design is required. Originally, I wanted to write a modifier to select Cao, Lu Bu, and so on, but there were five Cao and five Lu Bu, which really affected my mood !!! Each general from 1 to 5 is connected through promotie, similar to a linked list. Such as Liu Bei id = 16, promotie = 8805; id = 8805, promotie = 8806.
- HP value and ATK value are respectively life and attack power. Note that Def value, for example, Zhang Fei def value = "90", represents his defensive power, which is not used in this game.
- soldierskill indicates the skill that the general can possess at each level, up to three items. Note that one of them is requirementskillid value = "0". It seems that skill requires additional skills as a prerequisite, which is not reflected in this game.
- kindoms seems to represent the owner of each General. XML is empty. This estimation will be used for game extension in the future.
- dazhonglian01 is the profile picture of more than 100 generals (soldiers), that is, "public face. Such as the famous Cao Zhang and Sima brothers.
- Save. plist
- here is the archive file. Because the game supports three archives, there are three groups of plist/array/dict files.
- Each dict can be divided into hero, level, storage, unit, and whether or not the dict is complete.
- hero
- there are several dict information that represents the generals. Isactive indicates whether the general is in the dispatch queue. Curexp represents the experience value. This is a real type, which is odd.
- there are five sets of item information, represented by center/downleft/downright/topleft/topright, whether the position is equipped with a weapon, prop, or mount (middle, bottom left, bottom right, top left, top right ). If it is-1, it means that the location is not equipped. If both are-1, the generals do not have any equipment.
- ID indicates the ID of the military commanders or soldiers, which is associated with soldier_hd.xml.
- level
- easyhighscore and hardhighscore represent average and difficult top scores.
- maxstar represents several stars
- storage
- contains the available equipment information in the current warehouse, which is associated with items_hd.xml by ID.
- Unit
- represent the soldiers who appear, such as elephants and bows, and associate the IDs with soldier_hd.xml.
- Stage * _ level_hd.xml
- * Indicates the first level. For example, 01 indicates the first level.
- Enemy_bosses indicates the ID of the boss that will appear in this field and is associated with soldier_hd.xml.
- Exp_prize indicates the experience value that can be obtained by this parameter.
- Resource/money indicates the initial gold coin, and resource/Food indicates the initial technique.
- Bonusitems represents the potential rewards for treasures. Such as level01, which contains items such as iron, snake, and spear, and money strings. There is a probability behind each item, which should represent a drop discipline. For example, iron, snake, and spear, 0.7, but the money string is 1.3. So I don't know whether 70% or 130% represents 0.7% or 1.3%. If it is the latter, the probability of dropping is too small.
- Attackwave represents the first wave of attacks. Soldiers/soldier indicates which generals and soldiers are attacking this wave; pathnodes indicates the action route on the map.
- Finally, it is events, which can be divided into condition and result. For example, event id = 123226 indicates that if Liu Bei encounters Sun Quan, a single pick will occur. If the single pick succeeds, Sun Quan will return. <Dropitem triger = "false" Itemid = "0/>. I am confused here. I have read a lot of things. It seems that all of them are triger = false and Itemid = 0.
-
- State * _ map_hd.xml
- Same as above, 02 represents the second level.
- It is a map description, not interested. Unless you want to write the map editor yourself.
To sum up, developers can quickly create a large number of scripts and Guan cailai through the addition and modification of the above files. It is easy for us to change it by ourselves.
If you want to change the device, modify save. plist. If you want to change the attack power and speed of the generals, change soldier_hd.xml. If you want to change the generals skills, change soldier_hd.
Modify skill_hd.xml if you want to change the amount of money spent on a skill (for example, only one skill or a negative number is used by the qijun in Shuishen.
You can modify stage * _ level_hd.xml for other techniques such as money and techniques starting from each level.