RESOLVED Need help with getting my mod working on Chronicles maps
Game Modding | Call of Duty: Black Ops 3 | Scripting
Atchfam77:
Hello! I have been trying to design a "quality of life" changes mod recently. The features included are an increased perk limit, max ammos refill your magazine, carpenter repairs your shield, you spawn in with the RK5, and Widows Wine provides explosive resistance. I have been able to get each feature working on Shadows so far, and the perk limit/RK5 works on every map. The issues I am having are with the carpenter, Widows, and max ammo changes.
On maps without a shield, I get a crash loading the map, and on all of the Chronicles maps, the change to the two powerups and the perk don't function at all.
Here is the beginning to the Carpenter file. I used HarryBO21's carpenter release to modify the base script from the share folder.
Next, the only change I made to the max ammo default script was around line 112ish, where I got the code from Abnormal202.
Last, my change to Widows Wine is thanks to PROxFTW. I used his public release PHD script to figure out how the game handles negating explosive damage. The first line is placed in the default script under the "enable_widows_wine_perk_for_level" function. The other stuff I just threw at the bottom of the script since it could pretty much be anywhere.
In my main script file, which is the template from CabConModding, I have the RK5 and perk limit changes. Here is that code. I have #using for all of my modified scripts written in this file, with the carpenter one being commented out for the time being since it doesn't work on most Chronicles maps.
TLDR: Everything here works, but only on SoE. On maps without a shield, the map crashes on the loading screen. On Chronicles maps, the max ammo, carpenter, and widows wine scripts do not function.
Here is what my zone file looks like:
I don't have the carpenter one in there right now for the same reason that it is commented out on my main file.
If anyone can help me prevent these crashes as well as get the features working, I would greatly appreciate it!
Thank you.
Spiki:
How does it crash. Kick to main menu, console popup, game closes...
Atchfam77:
How does it crash. Kick to main menu, console popup, game closes...
Sorry... That's probably the most important piece of information. I wrote this post out of desperation last night.
The crash has multiple lines that say "Error: could not find fx/weapon/material" and then list about 100+ lines of "missing" items. The last line that appears on crash is "Error linking script 'scripts/zm/zm_moon.gsc' ". This happens on all maps without a zombie shield present, and the crash occurs about halfway through the loading screen.
EDIT: The crash is a freeze and console popup with all those lines in it. The only way to avoid the crash so far that I have found is to comment out any mentions to the zombie shield script.
Spiki:
For one I don't see the riotshield scripts in your zone file so they're not being loaded in and anyway the riotshield is in core_patch.csv so you need to comment those lines. So that basically solves your popup. As for the ammo and carpenter idk.
Btw the 100s of lines of missing assets is ok. Protip: i think launching the game and map in developer 2 spits out the bad script / line number
Atchfam77:
For one I don't see the riotshield scripts in your zone file so they're not being loaded in and anyway the riotshield is in core_patch.csv so you need to comment those lines. So that basically solves your popup. As for the ammo and carpenter idk.
Btw the 100s of lines of missing assets is ok. Protip: i think launching the game and map in developer 2 spits out the bad script / line number
Ok so I'm super new to this stuff- What exactly should I update in my zone file? I tried to do "include,core_patch.csv" and the mod tools returned an error saying: ^1ERROR: Could not open 'zone_source/core_patch.csv.zpkg'
Then I tried to just do "csv::core_patch.csv" and it returned`: ^3Empty asset name given, asset type 'csv::core_patch.csv'
Thank you for your help so far by the way. I just tried your trick on Moon and it let me know it couldn't find the riotshield gsc in my zone file like you said. I added that line to the zone file and to my scripts folder, but because I am unsure of how to add the core patch, it keeps crashing and returning the same error over and over. The only new line in this console popup is the "Error could not find scriptparsetree scripts/zm/gametypes/_zm_powerup_carpenter.gsc" or something like that.
Atchfam77:
Woah, a new thing happened.
I included both scriptparsetree,scripts/zm/_zm_weap_riotshield.gsc scriptparsetree,scripts/zm/gametypes/_zm_weap_riotshield.gsc
in my zone file, and now instead of getting a console popup and making me close my game, loading Moon in developer 2 kicks me to the main menu. It told me this:
Any ideas on what I'm supposed to do now, besides fixing the core patch line? I'm not sure what the TTY output is.
Spiki:
Woah, a new thing happened.
I included both scriptparsetree,scripts/zm/_zm_weap_riotshield.gsc scriptparsetree,scripts/zm/gametypes/_zm_weap_riotshield.gsc
in my zone file, and now instead of getting a console popup and making me close my game, loading Moon in developer 2 kicks me to the main menu. It told me this:
Any ideas on what I'm supposed to do now, besides fixing the core patch line? I'm not sure what the TTY output is.
you need to put in .csc too... and .gsh if it exists just to be sure
Atchfam77:
you need to put in .csc too... and .gsh if it exists just to be sure
Welp... that would make sense. I haven't done that for any of my scripts so far. I will update once I have tested that out! (y)
Atchfam77:
you need to put in .csc too... and .gsh if it exists just to be sure
Alright Spiki, I have an update for you: The Giant and Moon now boot me to the main menu citing a Server Client mismatch. How exactly do I make that fix for the core_patch? I'm not sure how to include that in the zone file.
tmk_boi:
Alright Spiki, I have an update for you: The Giant and Moon now boot me to the main menu citing a Server Client mismatch. How exactly do I make that fix for the core_patch? I'm not sure how to include that in the zone file.
Thank you for the reply, tmk. I tried to include that in my zone file, but now my mod won't build in mod tools. Aside from that, the issues I am still having are: -Maps without shields or Widows are kicking me to the main menu. They cite a "Server Client Mismatch" error. -Max Ammo magazine refill, Widows Explosive Resistance, and Carpenter Shield Upgrade do not work on any Chronicles map, even Origins which has both a shield and Widows.
Other than these three errors I am getting, everything has been running smoothly. I know I may be being annoying with my lack of knowledge in this area, so I thank y'all for your patience with me! :)
You have to open core_patch.csv in notepad or something and comment // the gsc/csc lines that have the same name as your scripts.
Also clientfield means you didnt put in the csc or gsc. You have to put #using in gsc AND csc
Atchfam77:
I ended up getting it to work on Origins and the DLC maps. Some custom maps work but not all. I ended up releasing a version that doesn't include the carpenter script for more broad use.