The source code can be placed directly next to the existing PyLNP binary, or in a subfolder of your choice - and as long as you copy/don't overwrite the PyLNP.json file from the pack, it'll behave exactly like the binary is supposed to (other than the handful of minor changes there have been since the last build, assuming you don't just grab the 0.7.1 source).
I was a little confused. You mention copying the source, I assume that running 'launch.py' in what I then need to run, then you mention it would behave like the binary, that confused me but I just discovered the existence of that binary, downloading the launcher from bitbucket (not cloning the source), tried that as well. Both give me a different problem. With the source code and binary, things look fine, the program identifies the utilities, knowns where the df folder is etc, so all seems to work. However launching gives different errors with both python 2.7 and 3 and the binary. Python3 talks about a type error for 's' in program_is_running, 2.7 talks about something with an unsupported buffer also citing various lines, the binary results in:
/bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_signal_event_hook
You can find the full trace from python as well below, however I get the feeling I might be messing up somehow.
Should I maybe contact you in private or find you in some irc channel? I'm beginning to feel I'm spamming the this thread with information that'll only benefit me.
Python2.7
Traceback (most recent call last):
File "core/launcher.py", line 102, in run_program
retcode = subprocess.call(term + [path], cwd=workdir)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1486, in __call__
return self.func(*args)
File "core/launcher.py", line 51, in run_df
raise Exception('Failed to run Dwarf Fortress.')
Exception: Failed to run Dwarf Fortress.
Python3
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.4/tkinter/__init__.py", line 1533, in __call__
return self.func(*args)
File "/home/alexander/Dwarf Fortress/core/launcher.py", line 49, in run_df
result = run_program(executable, force, True, spawn_terminal)
File "/home/alexander/Dwarf Fortress/core/launcher.py", line 92, in run_program
is_running = program_is_running(path, check_nonchild)
File "/home/alexander/Dwarf Fortress/core/launcher.py", line 132, in program_is_running
return path in s
TypeError: Type str doesn't support the buffer API
Thanks for all the help man! I tried reading your code and figuring things out myself, but it seems to be going nowhere. :/