Skip to content

Instantly share code, notes, and snippets.

@infval
infval / emuparadise.download.user.js
Last active August 11, 2026 21:30
emuparadise.me download workaround (Most games + Sega Dreamcast, Books/Comics/Guides/Magazines)
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.2.3
// @description Replaces the download button link with a working one
// @author infval (Eptun)
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
// https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/
#-*- coding: utf-8 -*-
#!/usr/bin/env python3
"""
Pursuit Force: Extreme Justice (PSP)
VDB/VIB extractor
VAG без заголовка
В MFAudio аудиофайлы можно задать как:
@infval
infval / extractor_texture_mgf_SH2_PS2.py
Last active July 26, 2026 21:26
[PS2] Silent Hill 2 PIC.IMG extractor (unpacker/packer)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import math
import argparse
from collections import OrderedDict
from PIL import Image, ImageDraw
@infval
infval / extract_hana_to_otome.py
Created November 2, 2019 19:57
[PS2] Hana to Otome ni Shukufuku o: Harukaze no Okurimono | extractor
#!/usr/bin/env python3
import re
import pathlib
from struct import unpack
pathlib.Path('./EXTRACTED').mkdir(exist_ok=True)
with open("SLPM_552.63", "rb") as f:
bexe = f.read()
@infval
infval / sor2_comp.py
Last active July 26, 2026 21:25
[SMD] Streets of Rage 2 tileset (de)compressor (extractor, unpacker)
#!/usr/bin/env python3
import io
import struct
from pathlib import Path
def decompress(inpt, artAddress):
inpt.seek(artAddress)
output = io.BytesIO()
@infval
infval / ps2_psiops_movies_packer.py
Created March 21, 2020 21:40
[PS2] Psi-Ops MOVIES.MPK unpacker / packer (PlayStation 2, Psi-Ops: The Mindgate Conspiracy)
#!/usr/bin/env python3
__version__ = "1.0"
__author__ = "infval"
import argparse
from pathlib import Path
from struct import unpack, pack
@infval
infval / psx_fix_license.py
Last active July 26, 2026 21:23
Fix pirated PlayStation 1 BIN for OpenEmu, Mednafen | Исправление пиратских PlayStation 1 дисков для запуска на эмуляторах [ PSX, PS1, PSOne ]
#!/usr/bin/env python3
"""Fix pirated PlayStation 1 BIN for OpenEmu, Mednafen
usage:
script.py Image.bin [0|1|2]
0 - Japan, 1 - USA, 2 - Europe. Default: 1
examples:
script.py "Chrono Cross (USA) (Disc 1).bin"
script.py "Chrono Cross (USA) (Disc 1).bin" 1
script.py "Sexy Parodius (Japan).bin" 0
@infval
infval / sfd_demux.py
Last active July 26, 2026 21:23
Batch SFD mux / demux (Multiplexer / DeMultiplexer) | M1V, ADX, SFA | Python 3, ffmpeg, SFDmux
#!/usr/bin/env python3
from pathlib import Path
from os import system
import sys
overwrite = ''
if len(sys.argv) > 1 and sys.argv[1] == '-y':
overwrite = '-y'
p = Path('.')
@infval
infval / dxt_to_png.py
Last active July 26, 2026 21:22
[Wii] Coraline | dxt Converter / Unpacker / Packer / Extractor | Magic: 30 81 80 00 / \x30\x81\x80\x00 / 30818000 / 308180
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
[Wii] Coraline
.dxt <-> PNG
Requirements:
pip install -U pillow
Usage:
@infval
infval / qd2fds.py
Last active April 4, 2026 18:39 — forked from einstein95/qd2fds.py
Converts between QD and FDS disk images (Family Computer Disk System / Famicom)
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)