Skip to content

Rigborn4/PyCASCLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCASCLib

CASC interface for Warcraft III. This repo provides bindings for JCASC: https://github.com/DrSuperGood/JCASC

Installation

Jdk is required for installation. You can either download it manually and set jdk_path or let the installer do it automatically. for windows:

python setup.py install --new --version=16
python setup.py install --jdkpath "path_to_your_jdk"

for unix:

python3 setup.py install --new --version=16
python3 setup.py install --jdkpath "path_to_your_jdk"

Usage

main functions are: read_temp, open_image, open_file, read_text

from PyCASCLib.storage import read_temp, open_image, open_file, read_text
from pathlib import Path
storage_path = Path('C:/Program Files/Warcraft III')
image_path = 'UI\Widgets\Glues\GlueScreen-Button1-BorderedBackdropBorder-DisabledDown.dds'
image = open_image(storage_path, image_path, is_hd=False)  # returns pil image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages