Skip to content

Instantly share code, notes, and snippets.

Playing Scarlet Nexus

Xzonn Xzonn

Playing Scarlet Nexus
View GitHub Profile
Xzonn / World's End Club - Extract
Created May 8, 2021
This script can be used to extract text content from <World's End Club>.
View World's End Club - Extract
# This script can be used to extract text content from <World's End Club>.
# You should firstly extract ".bin" files from your game, by tools such as AssetStudioGUI.
import os
import struct
def padFile(f):
return + 3) // 4 * 4)
def readString(f):
import os
import xml.dom.minidom as xmldom
w = os.walk("./")
f = open("export.txt", "w", 1024 * 16, "utf-8")
for root, dirs, files in w:
for file in files:
if file.endswith(".kup"):
dom = xmldom.parse(os.path.join(root, file))
Xzonn / .gitignore
Last active Jun 10, 2021
View .gitignore
# -*- coding: UTF-8 -*-
import datetime
import json
import os
import requests
View CNKI-pdf.user.js
// ==UserScript==
// @id CNKI-PDF-Special
// @name CNKI 中国知网 PDF 全文下载(特制版)
// @version
// @namespace
// @author YUE Long
// @description 参见
// @include http://**
// @include http://**/*
// @exclude*
View Bravely Default II - Extract
import os
import struct
walk = os.walk("./")
data = {}
for root, dirs, files in walk:
for fileName in files:
fullName = os.path.join(root, fileName)
Xzonn /
Created Oct 3, 2020 — forked from NWPlayer123/
Astral Chain PTD text
#Forked from NWPlayer123/
#thanks Simon for being a smartie
#unfinished, need to parse all the tables
#string_offset starts at +0x20 (header)
from struct import unpack
import sys
def read16(f):
return unpack("<H",[0]
import math
def ZOrderX(tileSize, count):
div = tileSize // 2;
x_in = count // div & div;
while div > 1:
div = div // 2;
x_in |= count // div & div;
return x_in;
View main.enlarge -
import struct
import re
import random
import json
import os
import time
from PIL import Image, ImageDraw, ImageFont
from pngToBin import getPointSequence
with open("../main.gzf", "rb") as f:
Xzonn /
Created Mar 24, 2020 — forked from abc1763613206/
BVID Validate
import requests
import json
import random
Back_URL = ''
headers = {
'Cookie': "Replace Me With REAL COOKIE" ,
'Pragma': 'no-cache',