Name: d1.py
Owner: sanctuary
Description: Scripts for interacting with Diablo 1 from Python.
Created: 2018-04-20 14:26:23.0
Updated: 2018-05-13 22:23:32.0
Pushed: 2018-05-13 22:23:31.0
Homepage: null
Size: 17
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project provides scripts for interacting with Diablo 1 from Python.
pacman -Sy mingw-w64-x86_64-llvm mingw-w64-x86_64-lldb
go get -u github.com/mewkiz/cmd/sar
make -C typ
Note, the MSYS2 Windows port of LLDB is currently lacking Python support (see upstream issue).
pacman -Sy lldb python2-cffi
go get -u github.com/mewkiz/cmd/sar
make -C typ
The following example changes the name of the item equipped in the right hand to Hello from Python.
do python2 -i d1.py
player = get_player()
player.x
player.y
stream = BytesIO(b'Hello from Python')
stream.readinto(ffi.buffer(player.body_items[4].unidentified_name))
set_player(player)