Skip to content

Instantly share code, notes, and snippets.

View 4LT's full-sized avatar
💭
Bikeshedding

Seth Rader 4LT

💭
Bikeshedding
View GitHub Profile
-------------------------------------------------------------
Command: cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
@4LT
4LT / log
Created May 7, 2024 03:35
Light compile log
#### Executing '"light" -surflight_subdivide 64 -threads 15 lim_4lt.bsp'
---- ClearLightmapSurfaces ----
---- light / ericw-tools 2.0.0-alpha7-6-g9985d6c8-dirty ----
LoadBSPFile: 'lim_4lt.bsp'
BSP is version Quake BSP2 bsp2
INFO: using built-in palette.
---- load_textures ----
Loading extended texinfo flags from lim_4lt.texinfo.json...
---- LoadEntities ----
157 entities read, 57 are lights.
@4LT
4LT / cross_windows.sh
Created February 22, 2024 19:43
Pectin cross-compile to Windows script
#!/bin/sh
script=`readlink -fn "$0"`
project_root=`dirname "$script"`
tcl_tag=core-8-6-13
cd "$project_root"
mkdir -p scratch/package/pectin/bin
mkdir -p scratch/package/pectin/lib
@4LT
4LT / sysinfo.txt
Created December 9, 2023 18:43
Steam System Info
Computer Information:
Manufacturer: ASRock
Model: B550M-ITX/ac
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 3700X 8-Core Processor
CPU Family: 0x17
@4LT
4LT / compile log.txt
Created August 15, 2022 23:55
2022-08-15 Compile Log
#### Using working directory '/home/seth/qmaps'
#### Exporting map file '/home/seth/qmaps/sm220_4lt-compile.map'
#### Executing '"qbsp" -bsp2 sm220_4lt-compile.map sm220_4lt.bsp'
---- qbsp / ericw-tools v0.18.1-388-g6e96ae7c ----
Input file: sm220_4lt-compile.map
Output file: sm220_4lt.bsp
SetQdirFromPath: no "maps" in '/home/seth/sm220_4lt-compile.map'
---- LoadMapFile ----
*** WARNING 06: No info_player_deathmatch entities in level
diff --git a/Quake/gl_rmain.c b/Quake/gl_rmain.c
index dc53dab2..a4205047 100644
--- a/Quake/gl_rmain.c
+++ b/Quake/gl_rmain.c
@@ -120,6 +120,9 @@ qboolean r_fullbright_cheatsafe, r_lightmap_cheatsafe, r_drawworld_cheatsafe; //
cvar_t r_scale = {"r_scale", "1", CVAR_ARCHIVE};
+cvar_t r_colorblind = {"r_colorblind", "", CVAR_ARCHIVE};
+float colorblind_mask[3] = { 1.f, 1.f, 1.f };
@4LT
4LT / grenade_fix.qc
Created February 26, 2021 21:13
Quake Grenade Slope Fix WIP
void(vector normal) GrenadeForceBounce;
void() GrenadeHandlePhysics = {
float dot, horiz_mag;
vector horiz_vel, horiz_dir;
if (self.velocity_z > 0) {
return;
}
@4LT
4LT / wood.md
Created April 20, 2020 23:47
Wood Texture Tutorial

A tutorial for creating Quake-palettized wood textures in GIMP.

Author: Seth Rader

Requirements

  • GIMP (I used 2.10.18)
  • Quake palette, imported (Raw "palette.lmp" file minus full-brights)

Creating the Wood Grain

@4LT
4LT / Shapes.java
Created March 27, 2020 15:17
Old Java Code for Computer Graphics
public class Shapes
{
public static Mesh barrel()
{
final float OUTER_RAD = 16;
final float THICKNESS = .8f;
final float INNER_RAD = OUTER_RAD - THICKNESS;
final float HEIGHT = 40;
final float SLIME_DEPTH = .86f * HEIGHT;
final int SIDES = 24;
@4LT
4LT / gist:5a398347d19605f7e49280a1b3c1caa0
Created September 27, 2018 00:56
Sven Co-op Debug Session
(gdb) break SDL_CreateWindow
Function "SDL_CreateWindow" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (SDL_CreateWindow) pending.
(gdb) run
Starting program: /mnt/extern2/SteamLibrary/steamapps/common/Sven Co-op/svencoop_linux
ERROR: ld.so: object './libiconv.so.2' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".