Skip to content

Instantly share code, notes, and snippets.

View HelloKitty's full-sized avatar
🎯
Focusing

HelloKitty

🎯
Focusing
View GitHub Profile
@HelloKitty
HelloKitty / Quaternion.cs
Last active October 4, 2024 14:56 — forked from JakubNei/MyQuaternion.cs
A custom completely managed implementation of UnityEngine.Quaternion. Base is decompiled UnityEngine.Quaternion. Doesn't implement methods marked Obsolete. Does implicit coversions to and from UnityEngine.Quaternion
// A custom completely managed implementation of UnityEngine.Quaternion
// Base is decompiled UnityEngine.Quaternion
// Doesn't implement methods marked Obsolete
// Does implicit coversions to and from UnityEngine.Quaternion
// Uses code from:
// https://raw.githubusercontent.com/mono/opentk/master/Source/OpenTK/Math/Quaternion.cs
// http://answers.unity3d.com/questions/467614/what-is-the-source-code-of-quaternionlookrotation.html
// http://stackoverflow.com/questions/12088610/conversion-between-euler-quaternion-like-in-unity3d-engine
// http://stackoverflow.com/questions/11492299/quaternion-to-euler-angles-algorithm-how-to-convert-to-y-up-and-between-ha
Revision: TrinityCore rev. 8a7ae3e78c30+ 2016-12-20 11:03:35 -0600 (LoSFix branch) (Win64, Release, Dynamic)
Date 13:2:2017. Time 12:26
//=====================================================
*** Hardware ***
Processor: AMD FX(tm)-8350 Eight-Core Processor
Number Of Processors: 8
Physical Memory: 33502684 KB (Available: 10429620 KB)
Commit Charge Limit: 67003508 KB
*** Operation System ***
Revision: TrinityCore rev. 8a7ae3e78c30+ 2016-12-20 11:03:35 -0600 (LoSFix branch) (Win64, Debug, Dynamic)
Date 13:2:2017. Time 12:56
//=====================================================
*** Hardware ***
Processor: AMD FX(tm)-8350 Eight-Core Processor
Number Of Processors: 8
Physical Memory: 33502684 KB (Available: 9541164 KB)
Commit Charge Limit: 67003508 KB
*** Operation System ***
@HelloKitty
HelloKitty / LoginCharacterBasicDump
Created October 10, 2017 15:13
Contains a basic dump of interactions with login/character server for PSOBB. Thanks to Soly.
LOGIN connection from: 192.168.1.1:51121
snd 0003 (200)
rcv 0093 (180)
snd 00E6 (68)
snd 0019 (16)
CHARACTER connection from: 192.168.1.1:51123
snd 0003 (200)
rcv 0093 (180)
snd 00E6 (68)
SHIP connection from: 192.168.1.1:50419
snd 0003 (200)
rcv 0093 (180)
snd 00E6 (68)
snd 00A1 (184)
snd 0011 (76)
rcv 0010 (16)
snd 0019 (16)
BLOCK connection from: 192.168.1.1:50420
Shader "Custom/CharacterScreenBackgroundShader" {
Properties {
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_uvAnimationTileX ("X tile Count", Int) = 3
_uvAnimationTileY ("Y tile Count", Int) = 2
_framesPerSecond ("Speed of the animation in frames per second.", Float) = 10.0
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
@HelloKitty
HelloKitty / OtherPlayerJoinsOurNonEmptyLobby
Last active October 17, 2017 04:36
OtherPlayerJoinsOurNonEmptyLobby packet dump
[2017-10-15T16:00:29] rcv 1 : 60 [40] (24)
[2017-10-15T16:00:29] snd 2 : 60 [40] (24)
[2017-10-15T16:00:30] rcv 1 : 60 [3E] (32)
[2017-10-15T16:00:30] snd 2 : 60 [3E] (32)
[2017-10-15T16:00:30] rcv 1 : 60 [40] (24)
[2017-10-15T16:00:30] snd 2 : 60 [40] (24)
[2017-10-15T16:00:30] rcv 1 : 60 [42] (20)
[2017-10-15T16:00:30] snd 2 : 60 [42] (20)
[2017-10-15T16:00:30] rcv 1 : 60 [42] (20)
[2017-10-15T16:00:30] snd 2 : 60 [42] (20)
@HelloKitty
HelloKitty / core.cpp
Created September 3, 2022 20:41
Patching Spell Data in 3.3.5 Client at Runtime
// @HelloKitty: Core stuff
//From Tomrus88 and HelloKitty's DLL
#if WIN32
__pragma(pack(push, 1))
struct SpellRec
#else
struct __attribute__((__packed__)) SpellRec
#endif
{
uint32 m_ID;