trigger-segfault / majiro-py

Python library and tools created while reversing the Majiro VN engine with another person.
MIT License
15 stars 0 forks source link

I can't assemble the mjil file which I disassembled #2

Closed XHLin-gamer closed 2 years ago

XHLin-gamer commented 2 years ago

I successfully use python -m mjotool -d 0-01-01.mjoto disassembled the mjo file to mjil file,but i can use the command python -m mjotool -a .\0-01-01.mjilto assemble.

Assembling: .\0-01-01.mjil
Traceback (most recent call last):
  File "D:\Python3.7\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\Python3.7\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Python3.7\lib\site-packages\mjotool\__main__.py", line 479, in <module>
    exit(main())
  File "D:\Python3.7\lib\site-packages\mjotool\__main__.py", line 468, in main
    assembler.read()
  File "D:\Python3.7\lib\site-packages\mjotool\assembler.py", line 1392, in read
    self.parse_line()
  File "D:\Python3.7\lib\site-packages\mjotool\assembler.py", line 997, in parse_line
    token = self.next_token()
  File "D:\Python3.7\lib\site-packages\mjotool\assembler.py", line 883, in next_token
    parser(token)  # extracts token value
  File "D:\Python3.7\lib\site-packages\mjotool\assembler.py", line 293, in parse_keyword
    raise Exception(f'unknown symbol or keyword {name!r}')
Exception: unknown symbol or keyword 'none'