GregoryAM-SP / The-Minecraft-Overviewer

The Minecraft Overviewer | Successor
https://overviewer.gregoryam.com
GNU General Public License v3.0
100 stars 13 forks source link

Access denied #76

Closed Kokepdl closed 1 month ago

Kokepdl commented 1 month ago

I followed all the steps in the guide but when it came time to run the .bat it denied me access and then proceeded to close the cmd. I already tried opening it with administrator and restarting the PC but no difference, I don't know if it's my fault or the fault of the pc Captura de pantalla 2024-09-25 023331

stwalkerster commented 1 month ago

I've not been able to reproduce this issue as reported.

What I did:

  1. Downloaded a fresh copy of the latest Windows build from https://overviewer.gregoryam.com/download/
  2. Extracted the zip file using Windows Explorer to C:\Users\simon\Downloads\overviewer\
  3. Copied my test world onto the system to C:\Users\simon\Desktop\render_test\
  4. Downloaded the latest Minecraft client jar from https://overviewer.org/textures/1.21 to C:\Users\simon\Downloads\client.jar
  5. Created a new folder at C:\Users\simon\Downloads\ovconfig
  6. Created a new file atC:\Users\simon\Downloads\ovconfig\config.py containing the below configuration
  7. Opened a new command prompt at C:\Users\simon\Downloads\overviewer\ and ran the command overviewer.exe --config="C:\Users\simon\Downloads\ovconfig\config.py" 1>>C:\Users\simon\Downloads\ovconfig\log.txt

The command completed successfully, and generated a map output at C:\Users\simon\Desktop\output\

Configuration

worlds["My world"] = "C:/Users/simon/Desktop/render_test"

texturepath = "C:/Users/simon/Downloads/client.jar"

renders["normalrender"] = {
    "world": "My world",
    "title": "Normal Render of My World",
}

outputdir = "C:/Users/simon/Desktop/output"

Thoughts

Kokepdl commented 1 month ago

Follow the steps you told me but when I run the command it gives me this

Captura de pantalla 2024-09-25 184005

The log file you told me about was a folder, and I already deleted it and tried the sample again and it gives me the same error in config.py and deleted 1>> the command does not run for some reason, I also deactivated windows defender in case that was the problem and it gives me the same error

stwalkerster commented 1 month ago

This is clearly an improvement on your last situation as Overviewer has made progress.

I think your problem now is your use of backslashes (/) in the file paths. Python uses backslashes as an escape character, so you should either double up the backslashes or replace with forward slashes (/). See my example config file above.

Kokepdl commented 1 month ago

I change the backslashes in the python and now de cmd doesn't do anything, not even a error and where do i put the double backslashes

stwalkerster commented 1 month ago

Please can you provide a copy of your configuration file?