This file contains 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
import sys | |
import os | |
import os.path | |
import time | |
import shutil | |
## Frostbite 1 Texture Converter by Heico | |
## Requires Python 3.6.9! Other versions may not work. | |
## Use command line or drag n drop file onto the script to convert | |
## Supported file formats: .dds .itexture .ps3texture .xenontexture .terrainheightfield |
This file contains 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
using System; | |
using System.IO; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TheaterBackendSniffer | |
{ | |
class Program | |
{ |
This file contains 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
############################### | |
# Created by Frankelstner # | |
############################### | |
##Requires Python 2.7. Rename to .py and drag and drop files onto the script to convert from dbx to xml and vice versa. | |
##Python does not have single precision floats. The struct module allows retrieving either single or double precision floats, | |
##but eventually the numbers are treated as doubles anyway. Python then tries to find the shortest string representation | |
##for the number. Now, this is the shortest representation for DOUBLES, so for singles there are more digits than necessary. | |
##There are two options, either accept the cumbersome representation, e.g. 0.949999988079 instead of 0.95, or download the |
This file contains 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
############################### | |
# Created by Acewell # | |
############################### | |
# Edited by Heico # | |
############################### | |
from inc_noesis import * | |
def registerNoesisTypes(): | |
handle = noesis.register("Frostbite 1 [X360]", ".xenontexture") |
This file contains 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
############################### | |
# Created by Frankelstner # | |
############################### | |
# Edited by Heico # | |
############################### | |
from struct import pack,unpack | |
import gzip | |
from cStringIO import StringIO | |
import sys |
This file contains 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
static void Main(string[] args) | |
{ | |
/* C# code snippet to calculate the mipmap sizes for the BFBC2 textures, by Heico */ | |
/* In this case we use a DXT1 texture with a resolution of 512 * 512 and 9 mipmaps */ | |
/* For DXT2-5 textures the code must be slightly edited, see Microsoft Docs below */ | |
//Read the integers below from file | |
int mipmapCount = 9; | |
int width = 512; | |
int height = 512; |