ai-dungeon-cli
ai-dungeon-cli copied to clipboard
Issue with stuff that i don't understand
It seems to actually start, but then i get this error, i don't really know what's wrong or how to fix it, please help, ty <3
▄▄▄ ██▓ ▓█████▄ █ ██ ███▄ █ ▄████ ▓█████ ▒█████ ███▄ █
▒████▄ ▓██▒ ▒██▀ ██▌ ██ ▓██▒ ██ ▀█ █ ██▒ ▀█▒▓█ ▀ ▒██▒ ██▒ ██ ▀█ █
▒██ ▀█▄ ▒██▒ ░██ █▌▓██ ▒██░▓██ ▀█ ██▒▒██░▄▄▄░▒███ ▒██░ ██▒▓██ ▀█ ██▒
░██▄▄▄▄██ ░██░ ░▓█▄ ▌▓▓█ ░██░▓██▒ ▐▌██▒░▓█ ██▓▒▓█ ▄ ▒██ ██░▓██▒ ▐▌██▒
▓█ ▓██▒░██░ ░▒████▓ ▒▒█████▓ ▒██░ ▓██░░▒▓███▀▒░▒████▒░ ████▓▒░▒██░ ▓██░
▒▒ ▓▒█░░▓ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ▒ ▒ ░▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒
▒ ▒▒ ░ ▒ ░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░░ ░ ▒░ ░ ░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
░ ▒ ▒ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
Traceback (most recent call last):
File "/home/runner/TESTY/venv/bin/ai-dungeon-cli", line 8, in <module>
sys.exit(main())
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/ai_dungeon_cli/__init__.py", line 357, in main
ai_dungeon.make_user_choose_config()
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/ai_dungeon_cli/__init__.py", line 178, in make_user_choose_config
prompt, settings = self.api.get_options(self.api.single_player_mode_id)
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/ai_dungeon_cli/impl/api/client.py", line 119, in get_options
result = self._execute_query('''
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/ai_dungeon_cli/impl/api/client.py", line 32, in _execute_query
return self.gql_client.execute(gql(query), variable_values=params)
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/client.py", line 355, in execute
data = loop.run_until_complete(
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/client.py", line 252, in execute_async
return await session.execute(
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/client.py", line 1143, in execute
result = await self._execute(
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/client.py", line 1049, in _execute
result = await asyncio.wait_for(
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
return fut.result()
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets_base.py", line 432, in execute
async for result in generator:
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets_base.py", line 388, in subscribe
answer_type, execution_result = await listener.get()
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets_base.py", line 56, in get
raise item
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets_base.py", line 310, in _receive_data_loop
answer_type, answer_id, execution_result = self._parse_answer(
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets.py", line 425, in _parse_answer
return self._parse_answer_apollo(json_answer)
File "/home/runner/TESTY/venv/lib/python3.8/site-packages/gql/transport/websockets.py", line 386, in _parse_answer_apollo
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'Session not found'}
hey!
i should probably mark this repo as deprecated.
as you can see the last commit dates from 2 years ago. AID APIs had a tendency to change drastically every 2 weeks at one point in time and we had trouble keeping up w/ the updates. last occurrence that broke this code was when they introduced the stamina system.
you see, the APIs never got documented and so at every major change it took a few days of work to reverse engineer everything.
the code of this repo is made in a way that the user interactions and game state code could be reused but i assume all the API client code has to be redone.
if you're motivated putting it back into a working state should be fairly easy, but that's not something i feel compelled about (esp. since the game seems to be less text-only now).