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/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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8077e5abf6108446273c3f850f94f37c2993127083ff22f0608363a77fdbc476 |
|
MD5 | 6f5f7bdd2c1a4d2d5a5c5c662897d940 |
|
BLAKE2b-256 | 8dc7285c2aa844e4b2723361d3951b1c35d6ced7c9740dc8950a8e84f26f16f9 |