# Troubleshooting

If your discord rich presence appears to not be working try all of the following:

### Deleting x64.final.redscripts

If your scriptslog.txt file was not being created, this should fix it.

1. Navigate to your `The Witcher 3 Wild Hunt GOTY\content\content0`
2. Delete the `x64.final.redscripts` file and relaunch your game. (The file will be regenerated.)

### Check if scriptslog.txt is generating text

Check if scriptslog.txt file is generating text: `Documents/The Witcher 3/scriptslog.txt`&#x20;

{% hint style="warning" %}
`scriptslog.txt` needs to generate text in order for the mod to work. If the there is no text in the file, only one line in the file, or the file does not exist:
{% endhint %}

1. Ensure that `-net -debugscripts` arguments are correctly configured
2. Ensure that `scriptslog.txt` has read/write file permissions enabled for everyone on Windows (right click scriptslog.txt > properties > security).
3. Delete x64.final.redscripts (see above)

### Ensure scriptslog.txt is generating correct values

scriptslog.txt should print out hundreds lines containing **rpc** with data.

<figure><img src="/files/JLLaXaRwUNvpXkjCEmyb" alt=""><figcaption><p>Screenshot of correct scriptslog.txt</p></figcaption></figure>

If you don't see lines containing **rpc**, then the .asi failed to load into your game.&#x20;

Ensure **dinput8.dll** is in the same directory as **witcher3.exe**.&#x20;

If the .asi still isn't loading, try replacing the **dinput8.dll** file with an older version of the [Ultimate Asi Loader](https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases) (x64 version). Sometimes using **dsound.dll** instead of **dinput8.dll** fixes it for some people (use one or the other).

### Ensure mod is installed correctly

Ensure **WitcherPresence.asi** and **dinput8.dll** is in both `bin/x64` and `bin/x64_dx12`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rejuvenate.gitbook.io/witcher-prescence/guides/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
