Skip to main content

rpze: Remote Python, Zombie: Endless

Project description

rpze

Remote Python, Zombie Endless(or endless rp?)

一个远程Python的Plants vs. Zombies TAS及ize测试框架.

主库位于GitHub.

使用

pip install rpze下载, 下载后通过python -m rpze --path "your\path\to\pvz.exe"验证安装, 详情见主库readme.

一个简单的完整rpze脚本示例如下:

from rpze.iztest import *

with InjectedGame(r"your\path\to\pvz.exe") as game:
    iz_test = IzTest(game.controller).init_by_str('''
                 1000 -1
                 3-0 4-0 5-0 3-3
                 .....
                 .....
                 bs3_c
                 b2ljh
                 blyl_
                 cg   cg   xg   ww
                 0    1    300  700
                 4-6  4-6  4-6  4-6''')
    print(iz_test.start_test(True))

结构

总体分成五个包:

  • rp_extend: 对控制pvz游戏本地运作的基本操作的封装
  • basic: DLL注入, 游戏启动, 汇编代码等基础功能
  • structs: PvZ内数据结构以及部分method的的封装
  • flow: coroutine-like测试编写相关的函数
  • iztest: IzTest测试功能以及工具函数
  • examples: 上述的测试功能的编写例子

其中, 若仅对Python的pvz框架感兴趣则只需关注前三个包, 对ize测试感兴趣则着重模仿examples并大致了解structs的成员(PlantsZombies).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpze-0.2.1.tar.gz (156.6 kB view details)

Uploaded Source

Built Distributions

rpze-0.2.1-cp312-cp312-win_amd64.whl (168.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

rpze-0.2.1-cp311-cp311-win_amd64.whl (168.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

File details

Details for the file rpze-0.2.1.tar.gz.

File metadata

  • Download URL: rpze-0.2.1.tar.gz
  • Upload date:
  • Size: 156.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for rpze-0.2.1.tar.gz
Algorithm Hash digest
SHA256 102e9d014816cd6e310e2532ed3250e27cbf8a557190d0ae9e0a9873823d0a72
MD5 0390fbbb7732f3e8ee0d56b9d6cb7599
BLAKE2b-256 c49118e2240dc6976b6150f73d097b55c1bae88731e05167ab3644989a1ea41b

See more details on using hashes here.

File details

Details for the file rpze-0.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: rpze-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 168.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for rpze-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 652db3c3472ace0c7f94191e63a82b601e0c5074a7ce3745dc6c807709a10e12
MD5 c4482cb837c7b5cf51732f7519200383
BLAKE2b-256 2f546e34be64097e13267b407e34bf63645e6f9395d6a5dde975c9d7a542a515

See more details on using hashes here.

File details

Details for the file rpze-0.2.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: rpze-0.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 168.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for rpze-0.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ca430d8e897c6365f4294bf3a54f4d13268c63954cbb0d5faa9298afad513ee8
MD5 1612c84cf72fd367e1d428a2e79985f1
BLAKE2b-256 b62d60bb33f1b4d3bfeeb416fe6ba006ef9b3ee1f41e236e7c8bc8673151a3b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page