Skip to content

Instantly share code, notes, and snippets.

@Bluefissure
Bluefissure / fix.py
Last active June 22, 2024 07:59
Fix broken palworld save caused by existing guild & too many capture logs
# author: Bluefissure
# License: MIT License
# Description: Fixes Palworld brokwn save files corrupted by someone existing the guild
# Based on the work of https://github.com/cheahjs/palworld-save-tools/releases/tag/v0.13.0
import argparse
import codecs
import os
import json
from lib.gvas import GvasFile
@Bluefissure
Bluefissure / pal-scripts.md
Last active September 19, 2024 05:32
Some Useful PalWorld Scripts

Pal World Scripts (Linux & Bash)

Remember to replace the folder directory, <AdminPassword>, <RCONPort> to your own.

Also, you need to use crontab to schedule the following scripts if necessary.

Supervisor

I'm using supervisor to restart the service, the example config is as:

@Bluefissure
Bluefissure / chinese_locale_enabler.sh
Last active May 13, 2023 08:13 — forked from XargonWan/japanese_locale_enabler.sh
Enable Japanese locale on Steam Deck
#!/bin/bash
# This script is enabling (uncommenting) the Chinese&Japanese locale and regenerates them
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -S glibc
sudo sed -i "s%#ja_JP.UTF-8 UTF-8%ja_JP.UTF-8 UTF-8%" /etc/locale.gen
sudo sed -i "s%#zh_CN.UTF-8 UTF-8%zh_CN.UTF-8 UTF-8%" /etc/locale.gen
@Bluefissure
Bluefissure / pluginmaster_
Last active February 18, 2022 23:04
Pluginmaster without cloud function and with accelerate
[
{
"Author": "Haplo064",
"Name": "Chat Bubbles",
"Description": "\u4f7f\u7528\u6e38\u620f\u5185\u7f6e\u7684\u53d1\u8a00\u6c14\u6ce1\u6765\u5c55\u793a\u804a\u5929\u5185\u5bb9",
"InternalName": "ChatBubbles",
"AssemblyVersion": "1.3.2.0",
"RepoUrl": "https://github.com/Haplo064/ChatBubbles",
"ApplicableVersion": "any",
"Tags": [
@Bluefissure
Bluefissure / DalamudFontReplacer_repo.json
Created February 16, 2022 20:14
DalamudFontReplacer Single Repo
[{
"Author": "akira0245",
"Name": "DalamudFontReplacer",
"Punchline": "Replaces dalamud's default font",
"Description": "Replaces dalamud's default font(and glyph range) with NotoSansCJKsc-Medium 17pt in order to display Chinese characters properly.\nInstalling this and the font replacing effects immediately.\n If you don't want to replace font anymore, please disable this plugin and restart the game.\nFont size, path and glyph range can be changed in plugin config file.",
"InternalName": "DalamudFontReplacer",
"AssemblyVersion": "1.0.0.3",
"RepoUrl": "https://github.com/akira0245/DalamudCNAdapter",
"ApplicableVersion": "any",
"Tags": [
@Bluefissure
Bluefissure / varint.py
Last active December 1, 2021 20:07
Varint
def decodeVarint(x):
result = 0
exit = False
while not exit:
if (x & 0b10000000):
exit = False
else:
exit = True
low_byte = x & (0b11111111)
result = result << 7
@Bluefissure
Bluefissure / smartvote
Created March 22, 2021 22:57
SmartVote
[
{
"Author": "Bluefissure",
"Name": "SmartVote",
"InternalName": "SmartVote",
"AssemblyVersion": "1.0.1.0",
"Description": "Smart Vote the Mvp in player commendation for you.",
"ApplicableVersion": "any",
"RepoUrl": "https://github.com/Bluefissure/SmartVote",
"DalamudApiLevel": 2,
@Bluefissure
Bluefissure / matcha2dc.py
Last active January 16, 2021 21:16
matcha2dc
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./matcha2dc.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging, json
import requests
@Bluefissure
Bluefissure / add_cn_timeline.py
Created July 20, 2020 13:02
add_cn_timeline
import argparse
import csv
import os
import requests
import codecs
import random
import re
import json
from collections import defaultdict
import pyautogui
import time
import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.utils import formataddr
import requests
import base64,json
from io import BytesIO
import os