Game data editor for Star Wars: Rebellion (1998)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luis Visintini 3e0c1a5770 Updated the structure of the manager's metaclasses; 4 years ago
examples Update examples 5 years ago
src Updated the structure of the manager's metaclasses; 4 years ago
tests Updated the structure of the manager's metaclasses; 4 years ago
.gitignore Add test suite. 5 years ago
LICENSE Initial commit 5 years ago
README.md Updated the structure of the manager's metaclasses; 4 years ago
notes.txt Updated the structure of the manager's metaclasses; 4 years ago
pytest.ini Move ini file 5 years ago
requirements.txt a bit less chaos 5 years ago
setup.py Add test suite. 5 years ago

README.md

SWRebellionEditor

A library with tools that let you edit data files for the Star Wars Rebellion video game (1998)

You need to setup an SW_REBELLION_DIR environment variable that contains the path to the game's folder.

This is required to run the test suite, but optional for using this code.

Reading the data

If your are using this lib on linux you may want to:

$ export SW_REBELLION_DIR=/home/lvisintini/SWR/REBELLION

On windows, you may need to set up an environment variable for the same purpose.

Otherwise you will need to provide the path to your Rebellion directory as the first param for the manager classes:

from swr_ed.base import ALL_MANAGERS 
import json 
for manager_class in ALL_MANAGERS: 
    manager = manager_class('/home/lvisintini/SWR/REBELLION/') 
    manager.load() 
    print(json.dumps(manager.data, indent=2))