JonnyPtn / zomboi

A discord bot for project zomboid multiplayer servers
50 stars 33 forks source link

Cant load worldmap.xml #5

Closed Klegus closed 2 years ago

Klegus commented 2 years ago

I get this error "discord.ext.commands.errors.CommandInvokeError: Command raised an exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/container/media/maps/Muldraugh, KY/worldmap.xml'"

But worldmap.xml exists

JonnyPtn commented 2 years ago

Does it exist at that path or somewhere else? I can't think of any other reason why it would not be able to find the file if it's there in the expected path

Klegus commented 2 years ago

It is possible for us to talk on the discord, because it will be faster because I want to solve the problem quickly. Klegus#0420

Klegus commented 2 years ago

image How you can see this file exists in this path image

Klegus commented 2 years ago

this is my config map path image

laurigates commented 2 years ago

Could it be caused by insufficient permissions to the file or directory it is in? You could also debug this by creating the maps/Muldraugh, KY directory to another location (for example right next to zomboi.py), copying worldmap.xml there and adjusting config.py to point to this path.

JonnyPtn commented 2 years ago

This seems to not be an issue with the bot or anything I can control, it's just a complication getting the correct paths exposed from the container, so there's nothing to change for the bot here