Skip to content

Instantly share code, notes, and snippets.

@xycaleth
xycaleth / chat.log
Created March 23, 2020 23:17
SP intro sound stuttering fix
10:12 PM] Xycaleth: wtf >_> on mac SP intro works fine if I launch with the binary directly. if i use the .app then i get the stuttering
[10:45 PM] Ensiform: Logic
[10:48 PM] Xycaleth: where's the code to show the Jedi Academy logo at the start?
[10:48 PM] Xycaleth: i noticed sometimes it doesn't show in SP
[10:55 PM] Xycaleth: oh comes from the renderer
[11:03 PM] Xycaleth: oh yay i think i fixed it
[11:03 PM] Xycaleth: the stuttering
[11:04 PM] Xycaleth: i don't really understand why it works though
[11:05 PM] Xycaleth: Had to move a CL_StartHunkUsers from CL_Init to Com_Init to match MP
[11:10 PM] Xycaleth: https://gist.github.com/xycaleth/58dd14c4e2ee3da899832969d8c3e867
@xycaleth
xycaleth / fix.patch
Created July 24, 2019 22:10
sound fix??
diff --git a/code/client/cl_main.cpp b/code/client/cl_main.cpp
index e8f3d3f2..d473ca3a 100644
--- a/code/client/cl_main.cpp
+++ b/code/client/cl_main.cpp
@@ -1316,8 +1316,6 @@ void CL_Init( void ) {
CL_InitRef();
- CL_StartHunkUsers();
-
@xycaleth
xycaleth / GLM.md
Created April 15, 2019 18:39
Ghoul2 file formats

Ghoul 2 formats

Model format

GLM is the Ghoul2 model format. Meshes/surfaces in the model are arranged in a hierarchy, starting from the torso going outwards, to make it easy to not render whole parts of the model, e.g. limbs.

LODs are built into the model format.

Header

/*[Vertex]*/
uniform float u_Gravity;
uniform float u_DeltaTime;
uniform vec3 u_MapExtents[2];
uniform sampler2D u_OverheadDepthMap;
in vec3 attr_Position;
in vec3 attr_Color;
out vec3 var_Position;
@xycaleth
xycaleth / duel1.eal
Last active April 28, 2018 17:30
EAL file
Type: "RIFF"
Size: 2144
Form Type: "eal "
{
Type: "majv"
Size: 4
ASCII Data:
....
Hex Data:
03 00 00 00
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDQO4hHrgi4ppg8TukdVguV8qquoc93RRlVQz7sN5JZQxVgUIsNPlBTURjaoMeMjZf9PTfdLt6G9y75H6MLrD8APC9++TWacnJ3lrsyAHXe4K7KPG4MBCe284WqgzSntK5A3c+NCQhDdbvyozCzzjKDsAK2z1AiiNpuGIUE7SG7KSpRW9NdwTnWgd60lWYYw1kHT147Dx6fJcvHNkMotsj6Mmz1dJtsmO2x+4YahWYC2WiGcAJkSp80UHw/x4tVwLuWQXRh3BoufYdrRPrmQcd+b7LszCvm3a39sLQYAfyEWI0sHK4tHiNPkZ6vzx14MFPDvy3GCFifzTTNtRIXbhTW/toy4v7u27GAivRQvbuqLlotDZRkEGjkyJ3g4O+RnKWusqinzPRKxZ9gQCYb79ob4fDoWIQ42BoeyLPj3JR+hW2ZREhC0oHoupa8kzSEyAEwBerGHolsunUOkW2T8biUaMisB2zkg+7wzrqVAWwzB1NCxoY7XoU8RlWKxlYwRF1RolkFDLtfbC7pGfloeiANOa+Ak1l/sKrux0f1z9kEjOjH5crO6ZpLy8I8NNj98L8Zsm7xnRJWohzFbEUeMrBnLx7Uj6FZ07OM6ucZnu2L8+uoTomcnGwTSg5K75w30t63V8TYQGNBYumnnIq+bT4I+wS2U0Zy9si+5jgn1Fcudw== JACoders Deployment Key Pair
#include <DetourNavMeshQuery.h>
#include "NPC_local.h"
extern "C"
{
#include "g_local.h"
}
bool FindNearestPoly ( const vec3_t position, const dtNavMesh *navMesh, const dtNavMeshQuery *query, dtPolyRef *nearestPoly )
{
#include <math.h>
#include <DetourNavMesh.h>
#include <DetourNavMeshBuilder.h>
#include <Recast.h>
#include "NPC_local.h"
extern "C" {
#include "g_local.h"
#include "qcommon/qfiles.h"
}

Keybase proof

I hereby claim:

  • I am xycaleth on github.
  • I am acslo (https://keybase.io/acslo) on keybase.
  • I have a public key whose fingerprint is FBCB BD14 FC4B 5255 42EF 88D9 A29A 1134 0A86

To claim this, I am signing this object: