Skip to content

BurgersMcFly/restbl-py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restbl

Library to manipulate the resource size table (RSTB/RESTBL) in The Legend of Zelda: Tears of the Kingdom

Example Usage

from restbl import ResourceSizeTable

with open("ResourceSizeTable.product.112.rsizetable.zs", "rb") as file:
    table = ResourceSizeTable.from_binary(file.read())
    assert table.get_size("Actor/TwnObj_HatenoObj_A_12.engine__actor__ActorParam.bgyml") == 6184
    table.set_size("Actor/TwnObj_HatenoObj_A_12.engine__actor__ActorParam.bgyml", 666)
    assert table.get_size("Actor/TwnObj_HatenoObj_A_12.engine__actor__ActorParam.bgyml") == 666

License

This project is licensed under the GPLv3+ license.

About

personal repo of restbl-py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%