Skip to content

Python script to help pack and unpack Corona/Solar2D archive .car file

License

Notifications You must be signed in to change notification settings

0BuRner/corona-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Release GitHub Issues or Pull Requests GitHub Downloads (all assets, all releases)

Corona Archiver | Solar2D Game Engine pack/unpack

Python script to help pack and unpack Corona archive .car file

Distribution

Windows binary (.exe)

https://github.com/0BuRner/corona-archiver/releases

Usage

Unpacking

Usage: corona-archiver.py -u 'input_file' 'output_dir'

example: corona-archiver.py -u /home/0burner/resources.car /home/0burner/decompiled/

Packing

Usage: corona-archiver.py -p 'input_dir' 'output_file'

example: corona-archiver.py -p /home/0burner/decompiled/ /home/0burner/new_recompiled.car

File structure

[header]
    [magic_number] (4 bytes) \x72\x61\x63\x01
    [revision] (4 bytes)
    [data_offset_start] (4 bytes)
    [index_size] (4 bytes)

[index]
    [entry]
        [entry_type] (4 bytes) 1
        [data_offset] (4 bytes)
        [filename_length] (4 bytes)
        [filename] (filename_length+1 bytes) 0-terminated
        [padding] (1|2|3|4 bytes) \x00

[data]
    [entry]
        [entry_type] (4 bytes) 2
        [next_data_offset] (4 bytes)
        [file_size] (4 bytes)
        [file_content] (file_size bytes)
        [padding] (0|1|2|3 bytes) \x00

[end]
    [magic_number] (4 bytes) \xFF\xFF\xFF\xFF
    [padding] (4 bytes) \x00

Others languages

LUA

LUA Decompilers

LUA Tools

Tutorials

Dissasembling

About

Python script to help pack and unpack Corona/Solar2D archive .car file

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages