Skip to main content

Open & edit .img files for gta III / VC / SA (+GUI)

Project description

Universal iMG

https://github.com/NIKDISSV-Forever/UniversalIMG

Open & edit .img files for gta III / VC / SA (+GUI)

GUI

Buttons

Hotkeys

F2 Ctrl+O - Open | Открыть

F3 Ctrl+E - Extract | Извлечь

Ctrl+A - Add | Добавить

Ctrl+Shift+A - Select All | Выбрать всё

F4 Ctrl+D - Delete | Удалить

F5 Ctrl+R - Reload | Перезагрузить

F6 Ctrl+Shift+R - Rebuild | Перестроить

F7 Ctrl+L - Light (Theme) | Лампочка (Тема)

While something works, other buttons are disabled.

Если вы нажали на что-то, кнопки побледнеют пока то на что вы нажали, делает что должно

There are light and dark themes, the letter A under the light bulb means that the theme depends on the theme of the system (Win 10)

Есть светлая и тёмная темы, буква A под лампочкой означает, что тема зависит от темы системы (Win 10)

Files list

Click on the button with the file name to rename it.

Нажмите на кнопку с именем файла чтоб его переименовать.

Sorting

Нажмите на название колонки чтобы по ней отсортировать.

Just click on a column heading to sort.

Navigation bar

Specify the size and page number. Search by file name.

Указывайте размер и номер страницы. Ищите по названию файла.

Up/Down Arrows, Top (First Page)/Down (Last Page) Arrows

Стрелки вверх/вниз, в самый верх (первая страница)/в самый низ (последняя страница)

Select all

Select all files to delete or export (see Buttons)

Ничего особенного. Выберите все файлы, чтоб их удалить или экспортировать (смотрите Buttons)

Logging

freimgedcs output. If it has Failed, then something is going wrong.

Вывод freimgedcs. Если в нём есть Failed, значит что-то идёт не так.

Progress bar

There is a progress display.

Если что-то происходит с группой файлов, эта оранжевая полоска будет двигаться.


Если у вас проблемы с открытием архивов, может помочь запуск от имени администратора.

Если это не помогло, вам придётся убедиться что исполняемый файл и архив находятся на одном диске.

If you're having trouble opening archives, running as administrator may help.

If this does not help, you will have to make sure that the executable and the archive are on the same disk.

Code

pip install UniversalIMG

class BlocksBytes:
    """Class for storing Block/Size format data present in the html file generated by the -lst command"""

    def __init__(self, bb: str):
        ...


class ArchiveContent:
    """Stores one line data from the generated html file"""

    def __init__(self, offset: str, size: str, name: str):
        ...


class IMGArchive:
    """API for freimgedcs.exe"""

    def __init__(self, imgname: str | Path,
                 freimgedcs_path: str = get_freimgedcs_exe()):
        ...

    def rebuild(self):
        """Rebuild archive (imgname)"""
        ...

    def list(self, *, delete_html_file: bool = False):
        """
        Returns the header of the opened archive, information about it, and a list of files of the class ArchiveContent
        """
        ...

    def add(self, filename: str):
        """Add/replace file [filename] to/in archive (imgname)"""
        ...

    def extract(self, filename: str, filename2: str):
        """Extract file [filename] from archive (imgname) to file [filename2]"""
        ...

    def rename(self, filename: str, filename2: str):
        """Rename file [filename] in archive (imgname) to file [filename2]"""
        ...

    def delete(self, filename: str):
        """Delete file [filename] from archive (imgname)"""
        ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UniversalIMG-1.2.2.tar.gz (211.2 kB view hashes)

Uploaded Source

Built Distribution

UniversalIMG-1.2.2-py3-none-any.whl (211.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page