This project provides scripts for interacting with Diablo 1 from Python.
- Install MSYS2.
- Launch MSYS2 terminal.
pacman -Sy mingw-w64-x86_64-llvm mingw-w64-x86_64-lldbgo get -u github.com/mewkiz/cmd/sarmake -C typ
Note, the MSYS2 Windows port of LLDB is currently lacking Python support (see upstream issue).
pacman -Sy lldb python2-cffigo get -u github.com/mewkiz/cmd/sarmake -C typ
The following example changes the name of the item equipped in the right hand to Hello from Python.
$ sudo python2 -i d1.py
>>> player = get_player()
>>> player.x
75
>>> player.y
68
>>> stream = BytesIO(b'Hello from Python')
>>> stream.readinto(ffi.buffer(player.body_items[4].unidentified_name))
>>> set_player(player)