-
June 20th, 2021, 13:40 #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
-
June 20th, 2021, 14:50 #52
- Join Date
- Mar 2018
- Location
- Canada
- Posts
- 266
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.
-
June 20th, 2021, 14:58 #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!)
-
June 28th, 2021, 00:01 #54
- Join Date
- Jun 2019
- Posts
- 47
-
June 29th, 2021, 06:05 #55
- Join Date
- Mar 2018
- Location
- Canada
- Posts
- 266
I don't know of any. But if you ask questions about particular steps, I'm sure we can guide you through it.
-
June 29th, 2021, 16:12 #56
- Join Date
- Jun 2019
- Posts
- 47
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.
-
June 29th, 2021, 16:54 #57
- Join Date
- Mar 2018
- Location
- Canada
- Posts
- 266
Which operating system are you using?
-
June 29th, 2021, 16:59 #58
- Join Date
- Jun 2019
- Posts
- 47
High Sierra. OSX 10.13.6
-
June 29th, 2021, 17:06 #59
- Join Date
- Mar 2018
- Location
- Canada
- Posts
- 266
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"
-
June 29th, 2021, 17:12 #60
- Join Date
- Jun 2019
- Posts
- 47
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