Skip to content

Instantly share code, notes, and snippets.

# XML-RPC
scgi_port = localhost:5000
encoding_list = UTF-8
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
//https://github.com/etlegacy/etlegacy/blob/master/src/server/sv_init.c#L1083
// master servers
sv_master[0] = Cvar_Get("sv_master1", "etmaster.idsoftware.com", 0);
sv_master[1] = Cvar_Get("sv_master2", "master.etlegacy.com", 0); // <- this one is not saved for some reason
for (index = 2; index < MAX_MASTER_SERVERS; index++)
{
sv_master[index] = Cvar_Get(va("sv_master%d", index + 1), "", CVAR_ARCHIVE);
}
@JanSimek
JanSimek / gdb.txt
Created May 22, 2014 14:03
Crash when extracting _sound_pc.resources basedev and _sound_pc_en.resources in RBDOOM-3-BFG
]exec extract_resources
execing extract_resources
idFile_Permanent::Write: 0 bytes written to basedev/sound/air_and_vents/recompress.wav
fwrite: Bad address
idFile_Permanent::Write: 0 bytes written to basedev/sound/air_and_vents/decompress.wav
fwrite: Bad address
idFile_Permanent::Write: 0 bytes written to basedev/sound/weapons/soulcube/fly_end_01.wav
fwrite: Bad address
idFile_Permanent::Write: 0 bytes written to basedev/sound/weapons/soulcube/soulcube_shred.wav
fwrite: Bad address
@JanSimek
JanSimek / log.txt
Created May 20, 2014 12:21
OpenAL error in RBDOOM3-BFG
pc-200-139:build jansimek$ ./RBDoom3BFG
QA Timing INIT: 000068ms
RBDOOM 3 BFG 1.0.2.1400 osx-x86_86 May 20 2014 12:37:15
loopback
10.244.212.89/255.255.240.0
10.211.55.2/255.255.255.0
10.37.129.2/255.255.255.0
10.244.200.139/255.255.240.0
couldn't stat exe path link /proc/80865/exe
------ Initializing File System ------
@JanSimek
JanSimek / gist:1ff92b3221bff633fcd4
Created May 19, 2014 20:40
clock_gettime reimplementation on OS X
// posix_public.h
#ifdef __APPLE__
enum clk_id_t { CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW };
int clock_gettime(clk_id_t clock, struct timespec *tp);
#endif
// posix_main.cpp
#ifdef __APPLE__
// OS X doesn't have clock_gettime()
int clock_gettime(clk_id_t clock, struct timespec *tp)
@JanSimek
JanSimek / gist:8570438
Created January 23, 2014 00:25
shadowgrounds: stuck at the elevator exit
DEBUG: GameScripting::startUnitScript - Given sub not defined in script.
DEBUG: mission5_script537
DEBUG: execute
DEBUG: GameScripting::startUnitScript - Given sub not defined in script.
DEBUG: mission5_script322
DEBUG: execute
ERROR: DevScripting::process - Script error:
ERROR: roof
DEBUG: mission5_script321
DEBUG: