2 Commits 65a83adecd ... 245bc13551

Author SHA1 Message Date
  Krock 245bc13551 Update FAQ.md 1 month ago
  Cha14ka b264469481 Wish history for 4.5.0 1 month ago
2 changed files with 10 additions and 23 deletions
  1. 7 20
      FAQ.md
  2. 3 3
      compat/get_gacha_url.sh

+ 7 - 20
FAQ.md

@@ -1,31 +1,18 @@
 # Frequently Asked Questions
 
-Q: Can I get banned if I use this patch?  
+Q: (obsolete) Can I get banned if I use this patch?  
 A: Since version 4.0.0, the main patch script no longer modifies any game files
 and can be considered safe.
 
-Q: How quickly do patches get released?  
-A: Usually, the first testing patch is proposed within a day after the official game update
-which happens on Wednesday (UTC). To check for issues, the patch is tested until Saturday,
-after which the script is updated for normal use.
-
-Q: Where can I use this patch?  
-A: On GNU/Linux distributions, but it *may* also work on other systems which run Wine.
-Windows does not need this patch and is not supported for obvious reasons.
-
-Q: Does the patch work on macOS?  
-A: Yes, at least since Ventura 13.1, Wine 7.7 (CrossOver) and game version 3.4.0.
-Please follow [INSTALLATION.md](INSTALLATION.md) to fix many rendering issues.
-Note: the patch script compatibility is currently work in progress.
+Q: Why does the game create a `driverError.log` file?  
+A: The kernel service used for cheat prevention cannot be loaded into Wine/Proton
+because it is not an operating system, but an userspace ABI for Windows executables.
 
 Q: How can I analyse my gacha wishes?  
-A: Obtain the URL from the CEF cache.
+A: Obtain the URL from the in-game browser cache.
 
  1. Open the in-game wish history (table view)
- 2. Extract the URL using one of the following methods:
-     * Run `strings $(find . -type f -wholename '*/Cache_Data/data_2' -printf "%T+ %p\n" | sort | tail -n1 | cut -d' ' -f2) | grep -o "https://.*/e20190909gacha-v2/.*" | tail -n1`  
-       from the game installation directory
-     * Run the script [compat/get_gacha_url.sh](compat/get_gacha_url.sh)
+ 2. Extract the URL using the script [compat/get_gacha_url.sh](compat/get_gacha_url.sh)
  3. Use the URL on websites like paimon.moe / genshin-wishes.com / etc
 
 Q: How do I skip the download of unused voice-over packs?  
@@ -38,7 +25,7 @@ A: Either remove them in your game settings, or:
  5. Remove the pack directories that are no longer contained within `audio_lang_*`
  6. Proceed to download the other game data archives
 
-Q: Where is `output_log.txt`?  
+Q: Where is `output_log.txt`? (game log and crash backtrace)  
 A: `$WINEPREFIX/drive_c/USERNAME/AppData/LocalLow/miHoYo/Genshin Impact/` where `$WINEPREFIX`
 depends on the Wine setup/configuration.
 

+ 3 - 3
compat/get_gacha_url.sh

@@ -16,9 +16,9 @@ GIPATH="."
 
 function get_path_from_pid() {
 	# tee eats the status value
-	_pid=$(pgrep -f -- "GenshinImpact.exe" | tee)
+	_pid=$(pgrep -f -- "GenshinImpact.exe" | tee | head -1)
 	if [ -z "$_pid" ]; then
-		_pid=$(pgrep -f -- "YuanShen.exe" | tee)
+		_pid=$(pgrep -f -- "YuanShen.exe" | tee | head -1)
 	fi
 	[ -z "$_pid" ] && echo "Game process not found" && exit 1
 	GIPATH=$(pwdx "$_pid")
@@ -33,4 +33,4 @@ CACHEFILE=${CACHEFILE#*\ } # remove leading timestamp
 echo "Found cache file: $CACHEFILE"
 echo "===== Matching links:"
 
-strings "$CACHEFILE" | grep -o "https://.*/e20190909gacha-v2/.*" | tail -n1
+strings "$CACHEFILE" | grep -o "https://.*/e20190909gacha-v3/.*" | tail -n1