ldemiurge Posted October 13, 2022 Posted October 13, 2022 I have done a lot of reading and I feel I am close to creating my pistol mod, but I can't seem to see any results within game. I ended up copying a mod from Nexus and did my best to mirror their code with that of my own. However, I am not seeing any results, yet. I am editing "Pistol_U_Ecceas_Arcane_Blaster." Here is my code, as well as a link to the mod I used to help me with my goals. { "GameDataObjects": [ { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Pistol_U_Ecceas_Arcane_Blaster", "ID": "82ec82fb77-0297-4843-b47c-327d75df627d", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Pierce", "AlternateDamageType": "Crush", "Minimum": 250, "Maximum": 500, "TacticalMinimumOverride": 15, "TacticalMaximumOverride": 20, "DamageProcs": [] } } ] } ] } Here is the link to the mod I am using as a baseline: https://www.nexusmods.com/pillarsofeternity2/mods/612 Hopefully, this game is still being played and modded by enough people to get an answer to my question.
ldemiurge Posted October 13, 2022 Author Posted October 13, 2022 Hmm, maybe it would be a good idea to post the code of the actual mod from Nexus: { "GameDataObjects": [ { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Arquebus", "ID": "6d67b650-6c61-4b7e-b4f1-03dea5d1dee6", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 20, "Maximum": 26, "TacticalMinimumOverride": 15, "TacticalMaximumOverride": 22, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Dragons_dowry", "ID": "1f42e7ca-dd1a-47ed-89fc-1fd0cd97e24b", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 20, "Maximum": 26, "TacticalMinimumOverride": 15, "TacticalMaximumOverride": 22, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "The_Red_Hand_Attack", "ID": "835a4ce0-8dd8-493e-aadf-1e104dd53ed5", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 20, "Maximum": 26, "TacticalMinimumOverride": 15, "TacticalMaximumOverride": 22, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Three_Bells_Through_Attack", "ID": "f0226445-cab8-431a-b43c-a20fd1b0e588", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 10, "Maximum": 15, "TacticalMinimumOverride": 10, "TacticalMaximumOverride": 15, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Pistol", "ID": "675712ec-5fbe-4447-a0c9-54e636e42167", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 15, "Maximum": 19, "TacticalMinimumOverride": 12, "TacticalMaximumOverride": 16, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Thundercrack_Pistol", "ID": "6d636d9c-85d1-4575-9fce-3ea19fec5084", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 15, "Maximum": 19, "TacticalMinimumOverride": 12, "TacticalMaximumOverride": 16, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Priest_Spiritual_Weapon_Magran_Pistol_Attack", "ID": "5fe336c7-e224-4ec6-89e4-286f122aa8cd", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 15, "Maximum": 19, "TacticalMinimumOverride": 12, "TacticalMaximumOverride": 16, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Conductive_Blast_Firearm", "ID": "26ff55c9-4f47-4c28-b9d7-959d57b01447", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 15, "Maximum": 19, "TacticalMinimumOverride": 12, "TacticalMaximumOverride": 16, "DamageProcs": [] } } ] }, { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "Storm_Rune_Shot_Firearm", "ID": "82761cb3-a2a6-49c9-851a-ecea36503102", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Crush", "AlternateDamageType": "None", "Minimum": 15, "Maximum": 19, "TacticalMinimumOverride": 12, "TacticalMaximumOverride": 16, "DamageProcs": [] } } ] } ] }
ldemiurge Posted October 13, 2022 Author Posted October 13, 2022 Okay... After editing the code of the mod on Nexus, I found the damage of the pistol was in fact modified within the game. I am fairly certain that editing the code for the other weapons would have yielded similar results, but that is outside of the scope of what I am trying to accomplish. I then opened up the mod, and removed all of the additional changes for other items; isolating only the "Pistol" code. Looking at the code of my mod, along side of the code from the mod from Nexus, I have found that both .gamedatabundle files look virtually the same; save the "DebugName" variable and the "ID" variable. This means that either the variable for the "DebugName" is wrong, or the variable for the variable for the "ID" is wrong. It could be both... My modification changes the damage of the Eccea's Arcane Blaster. Is this DebugName correct: Pistol_U_Ecceas_Arcane_Blaster How about the ID: 82ec82fb77-0297-4843-b47c-327d75df627d
ldemiurge Posted October 13, 2022 Author Posted October 13, 2022 Update: Okay... So, I just updated my code by changing both variables for "DebugName" and "ID." Below is what I changed them too... "DebugName": "Pistol_U_Ecceas_Arcane_Blaster", "ID": "827bbe72-d95f-4c78-97e3-a0d9ad5fa442", I have reason to believe that these changes are correct, but only because I am having to deal with a new issue. Upon saving the changes, I noticed something peculiar... the dual "Eccea's Arcane Blasters" I gave my snow elf, are no longer in my inventory when I open my save. In fact, when I move both my mod and the one I downloaded from Nexus onto my desktop, my pistols reappeared in my inventory upon starting up the program. Attempted Solutions: I changed the "AlternateDamageType" variable to "None." Pistols still not in my inventory... I changed the "MInimum" and "Maximum" damage to 25 and 50; where previously it was at 250 and 500, respectively. Still experiencing the same issue... I changed the "TacticalMinimumOverride" and "TacticalMaximumOverride" to 25 and 50. Still, no dice... Hmm..., I am kind of lost. If anyone can provide insight, I would appreciate it.
Noqn Posted October 13, 2022 Posted October 13, 2022 (edited) Hi, the "Pistol_U_Ecceas_Arcane_Blaster" is the correct Item object for Eccea's Arcane Blaster, but its attack data is defined in another object. Try this: { "GameDataObjects": [ { "$type": "Game.GameData.AttackFirearmGameData, Assembly-CSharp", "DebugName": "The_Arcane_Blaster_Attack", "ID": "ec82fb77-0297-4843-b47c-327d75df627d", "Components": [ { "$type": "Game.GameData.AttackBaseComponent, Assembly-CSharp", "DamageData": { "DamageType": "Pierce", "AlternateDamageType": "Crush", "Minimum": 250, "Maximum": 500, "TacticalMinimumOverride": 15, "TacticalMaximumOverride": 20, "DamageProcs": [] } } ] } ] } Edited October 13, 2022 by Noqn 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now