-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It only generated a text file, not WAD #1
Comments
Are you sure? I copy-pasted the code and it produces a tet file and the wad as well. The link has been corrected. |
Yes, I tried several times, it only generate a text file. Unless the WAD file will be in a different directory? |
No, the directory should be the same. |
Sorry for the delay! I tried again. Here is the output ...
|
Same output here. |
I'm getting the same output from the latest git version (fc10ce2). I am on OSX. |
It seems on my laptop Ubuntu 16.04, the code only runs well on python3.5, but failed on python2.7 and my manually installed python3.6; however, on my server computer Ubuntu14.04, it fails to run in all python versions, include 2.7, 3.4, 3.5, 3.6. |
Could you post the files that are included in the pip package after installation? e.g. |
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import oblige
>>> oblige.path
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'oblige' has no attribute 'path' same as py2.7 && py3.6 on my laptop |
And I run command |
localtree.txt is the pyoblige github repo in my /home dir |
Hi @Trinkle23897, With 0.1.2 I extended output when verbose option is set to True. Please run:
this should print explanation of Oblige's error. |
verbose_server.txt On my laptop, the new version 0.1.2 works in py2.7 && py3.5, but py3.6 crashed. It outputs Traceback (most recent call last): and I look at the py3.6 lib dir |
I had this issue as well on Ubuntu 16.04 and both python 3.5/3.6. The issue went away when I changed the directory of where to generate the WAD file to a location that did not have any spaces anywhere in the path. E.g. ~/Wad Path/test.wad fails but ~/WadPath/test.wad works fine. |
Hello @devinjdangelo, thank you for finding it out! |
I used the example. However, it only generated a text file. Not sure what I missed.
from oblige import *
seed=2042
another_seed=203234
generator = DoomLevelGenerator(seed)
generator.set_seed(another_seed)
#generator.set_config({"key_to_update": "value"})
number_of_generate_maps = generator.generate("test_wad")
By the way, the link is broken.
Example of usage with ViZDoom: ViZDoom/examples/python/oblige.py.
The text was updated successfully, but these errors were encountered: