Provides python utilities for AssaultCube.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Examples_PyAC
Programs
PyACube
.gitignore
README.md
setup.py

README.md

PyssaultCube

Provides python utilities to AssaultCube written by Ronald_Reagan

List of contents:

PyACube:
A python module for interacting with AssaultCube in various ways. Currently just reading, editing, and writing map files (cgz and cfg).
mapfiles/ - submodule for interacting with cgz and cfg files
--------/cfg.py - defines classes and functions for reading and writing .cfg files. Main class is MapCFG.
--------/cgz.py - defines classes and functions for reading and writing .cfg files. Main class is ACMap.
--------/consts.py - defines constant values. This includes team numbers, currentmapformat (the currently supported map file format), cubetypes and such.
--------/misc.py - contains random utilities that may be used.

Examples_PyACube:
A directory containg files using PyACube. ./ac_random.py - a almost completely random map generator. The map is fully playable, however probably will not provide too much gameplay value. Demonstrates basic usage of the cgz module.
./ac_helloworld.py - a simple hello world program, pointing out basic map manipulation.
./mapcfgclean.py - cleans out all unused textures, mapmodels, and sounds from a maps config file. Demonstrates useage of both the cgz and cfg modules.
./macrodemo.py - a demo showing all the macros in the macro part of the module.
./macrotools.py - a couple tools to make and view macros.

Programs
Contains standalone programs. May use PyACube.
./BlacklistCleaner.py - cleans out ipblacklists and nicknameblacklists of unwanted bans and accepts. Also can add in entries.
./BnW - Converts a packages folder to black and white. As well providing support for partial desaturation.