API for reading and modifying xbox 360 terraria player files.
Project description
# terraria xbox360 player API
API for reading and modifying xbox 360 terraria player files.
## Examples
Change player max life to 300 `python >>> import terraria_xbox360_player_api >>> player = terraria_xbox360_player_api.TerrariaXbox360Player("PLAYER1.PLR") >>> player.max_life = 300 >>> player.write_to_file("PLAYER1.PLR") `
Set 999 dirt items to first inventory slot `python >>> import terraria_xbox360_player_api >>> player = terraria_xbox360_player_api.TerrariaXbox360Player("PLAYER1.PLR") >>> player.inventory[0][0] = terraria_xbox360_player_api.Item(2, 999, 0) >>> player.write_to_file("PLAYER1.PLR") `
Read player name `python >>> import terraria_xbox360_player_api >>> terraria_xbox360_player_api.TerrariaXbox360Player("PLAYER1.PLR").name 'test_plr' `
## Dependencies
[bitarray](https://github.com/ilanschnell/bitarray)
[binary-rw](https://gitlab.com/terraria-converters/fkwilczek/binary-rw)
[terraria-apis-objects](https://gitlab.com/terraria-converters/terraria-apis-objects)
## Installation ` pip install terraria-xbox360-player-api `
## License
[GPL v3](LICENSE) © Filip K.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for terraria-xbox360-player-api-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab562a188957568d2d9196df3c95e380a604b948812fd4fa0c3617a01bf9684 |
|
MD5 | 1204e10a25885bce40a4cfb7927d2fb9 |
|
BLAKE2b-256 | 1c9cbc14eb8c9cdc534a720e9421b16243d02f7106cea04fe9f924bd9625cf30 |