Replacing base mod technologies and ammo dammage
-
- Manual Inserter
- Posts: 3
- Joined: Thu Aug 04, 2016 4:05 pm
- Contact:
Replacing base mod technologies and ammo dammage
I'm trying to remove all the ammo technologies from the base game so I can have the technologies set by my mod, I think this is stopping me from changing the damage values in the piercing mags as well. Also, when I shoot a new type of shells from the basic shotgun it deals damage to me; I have it to shoot 20 shots at a time and don't know how to change damage per pellet. This is my second mod BTW.
Re: Replacing base mod technologies and ammo dammage
You can try removing them from the table
data.raw["type"]["name"]
or, in full, this should work:
You can use that command to change values too, so if you ever wanted to change the prerequisites instead, you could do
data.raw["technology"]["bullet-damage-1"]["prerequisites"] = {"whatever tech you want"}
Just remember, no commas after data.raw lines or it will error up and they go outside of data:extend({}).
So, like this
data.raw["type"]["name"]
or, in full, this should work:
Code: Select all
data.raw["technology"]["bullet-damage-1"] = nil
data.raw["technology"]["bullet-damage-2"] = nil
data.raw["technology"]["bullet-damage-3"] = nil
data.raw["technology"]["bullet-damage-4"] = nil
data.raw["technology"]["bullet-damage-5"] = nil
data.raw["technology"]["bullet-damage-6"] = nil
data.raw["technology"]["bullet-damage-1"]["prerequisites"] = {"whatever tech you want"}
Just remember, no commas after data.raw lines or it will error up and they go outside of data:extend({}).
So, like this
Code: Select all
data.raw["technology"]["bullet-damage-1"] = nil
data.raw["technology"]["bullet-damage-2"] = nil
data.raw["technology"]["bullet-damage-3"] = nil
data.raw["technology"]["bullet-damage-4"] = nil
data.raw["technology"]["bullet-damage-5"] = nil
data.raw["technology"]["bullet-damage-6"] = nil
data:extend({This, is, where, i, would, put, my, code, if, i, had, any})
-
- Manual Inserter
- Posts: 3
- Joined: Thu Aug 04, 2016 4:05 pm
- Contact:
Re: Replacing base mod technologies and ammo dammage
Thanks man, and if I use the data.raw is that only the base game stuff?
Re: Replacing base mod technologies and ammo dammage
No, anything loaded before the particular mod in question, mods will load after their dependencies btw.Heliogenesis wrote:Thanks man, and if I use the data.raw is that only the base game stuff?
-
- Manual Inserter
- Posts: 3
- Joined: Thu Aug 04, 2016 4:05 pm
- Contact:
Re: Replacing base mod technologies and ammo dammage
Okay, thanks.ShinyAfro wrote:No, anything loaded before the particular mod in question, mods will load after their dependencies btw.Heliogenesis wrote:Thanks man, and if I use the data.raw is that only the base game stuff?