Modme Forums

Add KVP to a weapon prefab.

Game Modding | Call of Duty: Black Ops 3 | Scripting


Cdub7304:

since I am having no luck changing the weapons cost on my wallbuys through the wepons.csv file, my wallbuy prefabs from craftedanimation can I open a prefab in radiant, enter the prefab select the script struct and give it a kvp of zombie_cost and a value of day 500 and exit the prefab save and then when I use the prefab later it will have my new cost.


Magicman:

since I am having no luck changing the weapons cost on my wallbuys through the wepons.csv file, my wallbuy prefabs from craftedanimation can I open a prefab in radiant, enter the prefab select the script struct and give it a kvp of zombie_cost and a value of day 500 and exit the prefab save and then when I use the prefab later it will have my new cost.


That's odd...did you add a folder called gamedata into your map folder? then within that, create one called weapons, then within that create one called zm. And add this line to your zone file: stringtable,gamedata/weapons/zm/zm_levelcommon_weapons.csv

It should also be noted you have to copy and pasta the csv into the zm folder. Hope this is helpful


Cdub7304:

That's odd...did you add a folder called gamedata into your map folder? then within that, create one called weapons, then within that create one called zm. And add this line to your zone file: stringtable,gamedata/weapons/zm/zm_levelcommon_weapons.csv

It should also be noted you have to copy and pasta the csv into the zm folder. Hope this is helpful

Thanks for the Idea, but yeah I did all that. Nothing has been working. I did however notice when double checking all the scripts, that the script zm_usermap.csc had the { missing from the start of: give_weapon() so I fixed that and checked the rest of the scripts for any misspellings or other missing characters. recompiled and linked, I just haven't gotten to test it again.


Cdub7304:

tested weapons cost still at 0 for wallbuys, still not working.


Azazel:

tested weapons cost still at 0 for wallbuys, still not working.

I have managed to fix this issue!

What i did was I took the levelcommon price, and kept it the way it was.
i then added the zombie_cost KVP and made it the same as the levelcommon. This seemed to work. I was able to see the correct price, and purchase it for that price, too.

I also removed any spaces i had in the levelcommon file, but im not sure if that has anything to do with it or not. I hope this works for you and anyone else having this issue!!!