5E Product Walkthrough Playlist
Page 6 of 20 First ... 4567816 ... Last
  1. #51
    Hi Imagix,

    I installed Pillow, but am getting an error when trying to convert the sample map (both the map and the py file are in I:\DDVTT)

    I:\DDVTT>uvtt2fgu.py sampleMap.dd2vtt
    File "I:\DDVTT\uvtt2fgu.py", line 7
    <!DOCTYPE html>
    ^
    SyntaxError: invalid syntax

    Thanks.



    Edited to update:

    So I think this is due to me not knowing how to use GitHub at all. I originally just right-clicked the .py file and saved link to I:\DDVTT.

    Instead I've downloaded the ZIP file and copied that .py file to I:\DDVTT.

    Now when I try to run the script I get a different (better) error:
    I:\DDVTT>uvtt2fgu.py sampleMap.dd2vtt
    Traceback (most recent call last):
    File "I:\DDVTT\uvtt2fgu.py", line 552, in <module>
    sys.exit(main())
    File "I:\DDVTT\uvtt2fgu.py", line 546, in main
    processFile(filepaths, args.portalwidth, args.portallength)
    File "I:\DDVTT\uvtt2fgu.py", line 379, in processFile
    uvttfile = UVTTFile(uvttpath, portalWidthAdjustment,
    File "I:\DDVTT\uvtt2fgu.py", line 222, in __init__
    self.data = json.load(f)
    File "I:\Python\Python39\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
    File "I:\Python\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
    File "I:\Python\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "I:\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 7 column 1 (char 6)

    Do I need to download the executable from GitHub and run it?


    Edited again: I needed to replace the map file with the file from the unzipped ZIP file.

    Thanks.
    Last edited by dendarii; June 20th, 2021 at 14:59. Reason: Updated

  2. #52
    You need to look in the sampleMap.dd2vtt file to see if that is some HTML/XML file, or does it look like: https://raw.githubusercontent.com/Im...mpleMap.dd2vtt

    The dd2vtt file should be a valid JSON document.

  3. #53
    That was it, Imagix. I had replaced the py file, but not the sample map file.

    Thanks!

    (I've left all my messages up in case anyone else is working through this - learn from my mistakes!)

  4. #54
    Quote Originally Posted by Imagix View Post
    Oh my, it's been so long since I've set up Python:
    - First, install a Python runtime from https://www.python.org.
    - Download the uvtt2fgu.py script from the github page. I would suggest into wherever you've saved (or going to save) your .dd2vtt file
    - Go into a command prompt (cmd.exe for Windows, Terminal for Mac OS)
    - "pip install Pillow" this is needed to add the extra library used to generate the .jpg file
    - cd into where you've saved your .dd2vtt file
    - run the script "./uvtt2fgu.py filename.dd2vtt". (Of course, replace "filename.dd2vtt" with the name of your dd2vtt file)
    - This should result in filename.png, filename.jpg, and filename.xml being created
    - Copy the .xml file into your campaign's "images" folder
    - Import the .jpg inside Fantasy Grounds

    For Mac OS: If you have homebrew installed, you could also install python with "brew install python3".
    For Windows: umm.. haven't tried it myself on Windows, but is probably close to what is above. Will be trying this shortly. I've been primarily developing on Linux.
    Thank you for the directions Imagix. Sadly I am going to admit that I am computer retarded at this point. Is there a video of step by step instructions for how to do this that anyone knows about?

  5. #55
    I don't know of any. But if you ask questions about particular steps, I'm sure we can guide you through it.

  6. #56
    I installed Python runtime, I believe I downloaded the uvtt2fgu.py script, what is the "pip install Pillow?" Also, what does "cd into where you've saved your .dd2vtt file?" It feels like a Dos command, but it's been so long since I did anything on Dos I can't remember anything about it.

  7. #57
    Which operating system are you using?

  8. #58
    High Sierra. OSX 10.13.6

  9. #59
    K... open Terminal, and you run the command "pip install Pillow". (You only need to do this once)

    Once that's done, cd to wherever you have your Dungeondraft map file. I'm assuming you put the uvtt2fgu.py script into the same place. So if you save them in your Documents folder: "cd Documents". Run the script: "./uvtt2fgu.py mapfile.dd2vtt"

  10. #60
    When I run the command "pip install Pillow" I get a message that reads, "-bash: pip: command not found".

    I also do not understand what you mean by cd.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in