Skip to content

small lib to edit bini files in the game freelancer

License

Notifications You must be signed in to change notification settings

TobiasWeiseX/Bini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bini

This library gives you a bunch of functions to read, write and manipulate binary ini-files used in windows programms like the game Freelancer.

from bini import *

def negateEmpathy(b):
    version, sections = b
    for section in sections:
        secname, entries = section
        for entry in entries:
            entryname, values = entry
            if entryname == "empathy_rate":
                values[1] *= -1
    return b

if __name__ == "__main__":
    b = readBini("empathy.ini")
    writeIni("empathy.ini.txt", b)
    writeBini("empathy2.ini", negateEmpathy(b))
    print(biniToStr(b))

Install with

pip install bini

About

small lib to edit bini files in the game freelancer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages