If you're using a linux pc (or WSL?), you can replcate
AH-64E's encounter/world map dashing update using this script. If you update the game in the future, you need only run these steps again. It shouldn't matter what version the game is.
(You will also need to install `jq` if you don't already have it.)
Create an
update_maps.sh
file, paste:
Code:
#!/bin/bash
for file in $(find www/data -type f -name 'Map*.json'); do
tmp_file="$(mktemp)"
if ! jq . "$file" >/dev/null 2>&1; then
echo "Invalid JSON: $file"
exit 1
fi
# For context, most maps appear to have an encounterStep around 30, or so. 100 decreases the rate a bit more than 3 fold.
# Feel free to increase (or decrease) as much as you want.
jq 'if (.encounterStep? // null) != null and .encounterStep < 100 then .encounterStep = 100 else . end |
if (.disableDashing? // null) != null and .disableDashing == true then .disableDashing = false else . end' "$file" > "$tmp_file"
if ! jq . "$tmp_file" >/dev/null 2>&1; then
echo "An error occurred while processing $file"
rm "$tmp_file"
exit 1
fi
mv "$tmp_file" "$file"
done
Make it executable:
chmod +x update_maps.sh
Then just run
./update_maps.sh
Additionally, any locations that didn't allow dashing will now allow it. I
assumed that this was only the case for the world map.
Theoretically, this should also work with WSL, but I'm not entirely familiar with it.
Note that JQ pretty-formats the files by default. You can use the -c option to use compact formatting, but there's no option I'm aware of to
leave the formatting alone entirely. So, you know, pick your poison, I suppose.
EDIT:
On another note, rather than updating YEP_SaveCore.js, you should instead edit
www/js/rpg_objects.js
.
Find:
Code:
Game_System.prototype.disableSave = function() {
this._saveEnabled = false;
};
and change to
Code:
Game_System.prototype.disableSave = function() {
this._saveEnabled = true;
};
This will just stop the game's mechanics from turning the saves off when you leave the circles. This fixes the caveats that the original method came with.
AFAICT,
saveEnabled
is
true
by default, so this should mean that saves are available
before the first circle as well, but I cba to test and if I'm wrong it's not exactly a worrisome edge case.