This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************************************************/ | |
/* Godot PCK extractor (pckext.cpp) */ | |
/***************************************************************************/ | |
/* This program is free software: you can redistribute it and/or modify */ | |
/* it under the terms of the GNU General Public License as published by */ | |
/* the Free Software Foundation, either version 3 of the License, or */ | |
/* (at your option) any later version. */ | |
/* */ | |
/* This program is distributed in the hope that it will be useful, */ | |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"time" | |
"regexp" | |
"bufio" | |
"strconv" | |
"fmt" | |
"os" | |
"errors" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Python 3 code that can decompress (to a .gvas file), or recompress (to a .savegame file) | |
the UE4 savegame file that Astroneer uses. | |
Though I wrote this for tinkering with Astroneer games saves, it's probably | |
generic to the Unreal Engine 4 compressed saved game format. | |
Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract_pngs.py | |
# Extract PNGs from a file and put them in a pngs/ directory | |
import sys | |
with open(sys.argv[1], "rb") as binary_file: | |
binary_file.seek(0, 2) # Seek the end | |
num_bytes = binary_file.tell() # Get the file size | |
count = 0 | |
for i in range(num_bytes): | |
binary_file.seek(i) |