Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get config: Failed to convert json to config #3

Closed
JoviMedalla31 opened this issue Oct 15, 2023 · 5 comments
Closed

Failed to get config: Failed to convert json to config #3

JoviMedalla31 opened this issue Oct 15, 2023 · 5 comments

Comments

@JoviMedalla31
Copy link

Hi Trying to use your mod to inject Dlls
Only thing I did was change the directory in the config.json file to "D:\SteamLibrary\steamapps\common\Baldurs Gate 3"

Crash report and logs.zip

@MolotovCherry
Copy link
Owner

MolotovCherry commented Oct 15, 2023

This just simply means your config file is malformed. I'll add a clearer message for this soon to make it obvious. Can you post your config file please?

Edit: Though you can see in the error message in the log where it's malformed:
expected : at line 2 column 52

On line 2 in the config.json, you forgot to add a :, you probably have it as:
"install_root" "D:\SteamLibrary\steamapps\common\Baldurs Gate 3"
when it should be:
"install_root": "D:\\SteamLibrary\\steamapps\\common\\Baldurs Gate 3"

Note the :, and how the \ is escaped. (Sorry, this is a fault of json)

I should probably switch the config to toml instead as it's more user friendly, and also doesn't require that escaping

@MolotovCherry
Copy link
Owner

MolotovCherry commented Oct 15, 2023

As a peace offering for your troubles, I compiled the latest pre-release for you, including the toml config change above.

Run one of the launchers once. It'll generate config.toml for you. You will have to re-apply your path to config.toml, but toml is easier to use

You can continue using your current one if you'd rather of course. This version will eventually make it to the mod page (but maybe not for a bit)

(the warning is normal, these releases here are completely fresh)
launchers.zip

@JoviMedalla31
Copy link
Author

Ah I see thanks for this! I'll try it soon!

@JoviMedalla31
Copy link
Author

Its working! working with camera tweaks and wasd movement, thanks for the help!

@MolotovCherry
Copy link
Owner

Glad to hear it! Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants