-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathserve.sh
More file actions
executable file
·36 lines (28 loc) · 1.02 KB
/
Copy pathserve.sh
File metadata and controls
executable file
·36 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
BASE_DIR="$(pwd)"
WAD="-file heights2.wad"
WAD=""
WAD="-iwad freedm.wad"
WAD="-file king1.wad"
WAD="-file sunder.wad"
WAD="-file judas23_.wad"
WAD="-file BOOMEDIT.WAD"
WAD="-file dwango5.wad"
MAP="2"
MAP="23"
MAP="1"
CMD="cbuild/d2k $WAD -skill 5 -warp $MAP -nomonsters -serve"
CMD="cbuild/d2k $WAD -skill 5 -warp $MAP -deathmatch -frags 5 -serve"
CMD="cbuild/d2k $WAD -skill 4 -warp $MAP -serve"
CMD="cbuild/d2k $WAD -skill 5 -warp $MAP -log /home/charlie/.d2k/log.txt -serve -nodaemon"
CMD="cbuild/d2k $WAD -skill 5 -warp $MAP -nomonsters -altdeath -frags 1 -log /home/charlie/.d2k/log.txt -serve -nodaemon"
CMD="cbuild/d2k $WAD -skill 5 -warp $MAP3 -nomonsters -altdeath -frags 1 -log /home/charlie/.d2k/log.txt -serve -nodaemon"
mkdir -p ~/.d2k/scripts
cp "${BASE_DIR}/d2k_config_schema.json" ~/.d2k/
cp "${BASE_DIR}/scripts/"* ~/.d2k/scripts/
# gdb -ex 'source gdbserver.txt' --args $CMD
gdb -ex run --args $CMD
# gdb --args $CMD
# CPUPROFILE=cpu.prof $CMD
# valgrind --leak-check=full --show-leak-kinds=all $CMD
# $CMD