Jump to content

Map failed to load / Texture not latest version - Getting started with RL on 0 A.D


LazyGreyMatter
 Share

Recommended Posts

Based on the wiki: Getting Started with Reinforcement Learning, I have been unsuccessfully trying to execute the scenarios and train the model. The code keeps failing when trying to load the maps from zero_ad_rl. The maps zipped as "0ad_rl_maps.zip" give out either of the two errors:

  • Unable to load textures - too old - (Temp fix by changing the scenario version from 6 to 7 (as is the current FILE_READ_VERSION in source code)).
  • Unable to load map - check application logs (which basically throws .pmp File_OpenFailed error)

Since I am new to the modding part of this, can anyone please direct me as to how to fix these issues, especially the pmp file not loading error?

 

Link to comment
Share on other sites

I followed the instructions from the article wiki/GettingStartedReinforcementLearning, but I run into an issue after this command

picus@Picus zero_ad_rl-master % python3 -m zero_ad_rl.train --help

Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/picus/0ad/source/tools/rlclient/zero_ad_rl-master/zero_ad_rl/train.py", line 5, in <module>
    from ray.rllib.train import create_parser, run
  File "/Library/Python/3.8/site-packages/ray/__init__.py", line 63, in <module>
    import ray._raylet  # noqa: E402
  File "python/ray/_raylet.pyx", line 20, in init ray._raylet
ImportError: dlopen(/Library/Python/3.8/site-packages/ray/thirdparty_files/setproctitle.cpython-38-darwin.so, 2): Symbol not found: _Py_GetArgcArgv
  Referenced from: /Library/Python/3.8/site-packages/ray/thirdparty_files/setproctitle.cpython-38-darwin.so
  Expected in: flat namespace
 in /Library/Python/3.8/site-packages/ray/thirdparty_files/setproctitle.cpython-38-darwin.so
picus@Picus zero_ad_rl-master % 

Procedure macOS 10.15.7 (8/Apr/21)

  Reveal hidden contents

UPDATE: As described here (github.com/ray-project/ray/issues/10428), it does work with 3.8.5 but not with 3.8.9 (the current python@3.8 homebrew version)

Edited by Langbart
added python 3.8.5 remark
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...