Skip to content

Instantly share code, notes, and snippets.

View HybridEidolon's full-sized avatar
🐥

Eidolon HybridEidolon

🐥
View GitHub Profile
@HybridEidolon
HybridEidolon / wowhead_tsm_group_button.user.js
Last active September 17, 2022 18:35
Wowhead TSM Group Button UserScript
// ==UserScript==
// @name Wowhead TSM Group Generator
// @namespace https://gist.github.com/HybridEidolon
// @description Adds a TSM Group button to copy the search results as a legacy TSM group import string
// @author Eidolon
// @version 2
// @grant none
// @match https://*.wowhead.com/items*
// @match https://*.wowhead.com/wotlk/items*
// @noframes
@HybridEidolon
HybridEidolon / ngsgloballaunchfaq.md
Last active June 9, 2021 04:27
NGS Global Launch FAQ

Phantasy Star Online 2 New Genesis Global Launch FAQ

Last updated June 8 2021 11:18 PM UTC-5

What PC platforms can I play PSO2 NGS Global on?

Steam, Epic, MS Store and Xbox One/Series. On MS Store and Xbox, there are additional rewards for GamePass subscribers. There are occassionally first log-in bonuses for each platform (e.g. Valve-themed cosmetics for Steam users).

When does NGS launch?

@HybridEidolon
HybridEidolon / microsoftpls.md
Last active May 28, 2020 11:26
PSO2 NA Problems

PSO2 NA Problems

Last updated May 28, 2020 00:07 UTC

Look, I don't know what to tell anyone at this point. SEGA and Microsoft have so thoroughly botched this release that it's going to take some serious effort to get it working if you are having issues. Short of reinstalling Windows 10, I don't know what to say for anyone who really wants to play this right now. Whatever you do, do not spend money on this game until they fix this, though, because there is no telling how badly this junk release is going to break down the road.

Game errors

Missing DLL vivoxsdk.dll

@HybridEidolon
HybridEidolon / pso2-sar-format.md
Last active July 3, 2023 20:00
Phantasy Star Online 2 Symbol Art Format

Symbol Art File Format (Phantasy Star Online 2)

SAR files are simple structures that are encrypted with Blowfish with a 32-bit key and optionally compressed with PRS and a 0x95 XOR.

Starting out

All sar files start with the magic ASCII string sar and, at position 0x03, either the byte 0x84 or 0x04.

Decrypting and Decompressing

rust_mod = "psudata";
byteorder = "LE";
struct MsgHdr {
size: u32,
type: u16
}
struct Welcome {
copyright: c_str<64>,
@HybridEidolon
HybridEidolon / build.gradle
Created May 4, 2016 18:43
Maven/Gradle bukkit examples
apply plugin: "java"
buildscript {
ext.bukkit_version = "1.9.2-R0.1-SNAPSHOT"
}
repositories {
mavenCentral()
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
@HybridEidolon
HybridEidolon / README.md
Created November 24, 2015 06:51
PSOBB Wine Mipmaps Patch

PSOBB Wine mipmap patch

For Phantasy Star Online: Blue Burst versions 1.25.10-1.25.13 and the Wine 1.7/1.8 series.

PSOBB tries to write all mipmaps at once on a single LockRect on mip level 0. This is undocumented behavior in Direct3D and PSOBB will clobber the implementation structs if this is not accounted for.

These patches, based on the PlayOnLinux League of Legends patch, do two

@HybridEidolon
HybridEidolon / main.rs
Last active August 29, 2015 14:24
rust operator overloading
use std::ops::Add;
#[derive(Copy, Clone)]
struct MyStruct {
pub a: i32
}
impl Add for MyStruct {
type Output = MyStruct;
@HybridEidolon
HybridEidolon / main.rs
Last active August 29, 2015 14:23
sine keyboard
extern crate sdl2;
use sdl2::audio;
use std::f32::consts::PI;
use std::sync::Arc;
use std::sync::Mutex;
fn note_frequency(tone: i32) -> f32 {
440.0 * (1.059463 as f32).powi(tone)
@HybridEidolon
HybridEidolon / stateMonad.hs
Created May 15, 2015 07:35
state monads are magic
import Control.Monad.State.Lazy
data Vec2 = Vec2 Float Float deriving (Show)
data Entity = Entity Vec2 [Char] deriving (Show)
vec2Add :: Vec2 -> Vec2 -> Vec2
vec2Add (Vec2 x1 y1) (Vec2 x2 y2) = Vec2 (x1+x2) (y1+y2)
incrementOne :: Num s => State s ()
incrementOne = do