Commit 7f62e36d authored by dylan grafmyre's avatar dylan grafmyre
Browse files

snap

parent f4b9ff53
Pipeline #3899 failed with stages
in 4 minutes and 1 second
*.log
*.prt
*.bsp
*.vmx
*.swp
*.prof
env
*.egg-info
......@@ -10,7 +10,8 @@ BSP_FLAGS?=$(VBIN_FLAGS)
VIS_BIN?=$(VBIN_DIR)vvis.exe
VIS_FLAGS?=$(VBIN_FLAGS) -fast
RAD_BIN?=$(VBIN_DIR)vrad.exe
RAD_FLAGS?=$(VBIN_FLAGS) -bounce 2 -noextra -StaticPropLighting
RAD_FLAGS?=$(VBIN_FLAGS) -StaticPropLighting -bounce 2 -noextra
# -StaticPropSampleScale 0.25
BSPZIP_BIN?=$(VBIN_DIR)bspzip.exe
BSPZIP_FLAGS?=
......
#!/usr/bin/env python3
import argparse
import collections
import logging
import os
ARGP = argparse.ArgumentParser()
ARGP.add_argument('input', type=argparse.FileType())
class WormDict(collections.UserDict):
def __setitem__(self, key, value):
if key in self:
raise KeyError('key {!r} already exists in dat'.format(key))
super().__setitem__(key, value)
class BsppackAddlist(collections.UserDict):
@classmethod
def new_from_file(cls, file_):
dat = WormDict()
while True:
local = file_.readline().rstrip('\n')
remote = file_.readline().rstrip('\n')
logging.debug('%r -> %r', local, remote)
if not local:
break
if not remote:
raise RuntimeWarning('uneven line count')
dat[local] = remote
return cls(dat)
def lint_local(self):
for key in self:
if not os.path.isfile(key):
logging.error('local file is not file: %r', key)
def main(argp=None, argv=None):
if argp is None:
argp = ARGP.parse_args(argv)
bsppack_addlist = BsppackAddlist.new_from_file(argp.input)
bsppack_addlist.lint_local()
if __name__ == '__main__':
main()
This diff is collapsed.
versioninfo
{
"editorversion" "400"
"editorbuild" "8538"
"mapversion" "1"
"formatversion" "100"
"prefab" "0"
}
visgroups
{
}
viewsettings
{
"bSnapToGrid" "1"
"bShowGrid" "1"
"bShowLogicalGrid" "0"
"nGridSpacing" "64"
"bShow3DGrid" "0"
}
world
{
"id" "1"
"mapversion" "1"
"classname" "worldspawn"
"skyname" "sky_day01_01"
"maxpropscreenwidth" "-1"
"detailvbsp" "detail.vbsp"
"detailmaterial" "detail/detailsprites"
solid
{
"id" "6"
side
{
"id" "12"
"plane" "(-128 1152 128) (128 1152 128) (128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "11"
"plane" "(-128 1152 128) (-128 896 128) (-128 896 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "10"
"plane" "(128 1152 -128) (128 896 -128) (128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "9"
"plane" "(128 1152 128) (-128 1152 128) (-128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "8"
"plane" "(128 896 -128) (-128 896 -128) (-128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "7"
"plane" "(96 928 96) (96 1120 96) (-96 1120 96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
solid
{
"id" "8"
side
{
"id" "18"
"plane" "(-128 896 -128) (128 896 -128) (128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "17"
"plane" "(-128 1152 128) (-128 896 128) (-128 896 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "16"
"plane" "(128 1152 -128) (128 896 -128) (128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "15"
"plane" "(128 1152 128) (-128 1152 128) (-128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "14"
"plane" "(128 896 -128) (-128 896 -128) (-128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "13"
"plane" "(96 1120 -96) (96 928 -96) (-96 928 -96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
solid
{
"id" "10"
side
{
"id" "24"
"plane" "(-128 1152 128) (-128 896 128) (-128 896 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "23"
"plane" "(128 1152 128) (-128 1152 128) (-128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "22"
"plane" "(128 896 -128) (-128 896 -128) (-128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "21"
"plane" "(-96 1120 96) (96 1120 96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "20"
"plane" "(-96 928 -96) (96 928 -96) (96 1120 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "19"
"plane" "(-96 928 -96) (-96 928 96) (-96 1120 96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
solid
{
"id" "12"
side
{
"id" "30"
"plane" "(128 1152 -128) (128 896 -128) (128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "29"
"plane" "(128 1152 128) (-128 1152 128) (-128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "28"
"plane" "(128 896 -128) (-128 896 -128) (-128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "27"
"plane" "(-96 1120 96) (96 1120 96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "26"
"plane" "(-96 928 -96) (96 928 -96) (96 1120 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "25"
"plane" "(96 928 96) (96 928 -96) (96 1120 -96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
solid
{
"id" "14"
side
{
"id" "36"
"plane" "(128 1152 128) (-128 1152 128) (-128 1152 -128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "35"
"plane" "(-96 1120 96) (96 1120 96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "34"
"plane" "(-96 928 -96) (96 928 -96) (96 1120 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "33"
"plane" "(-96 1120 96) (-96 928 96) (-96 928 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "32"
"plane" "(96 1120 -96) (96 928 -96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "31"
"plane" "(-96 1120 -96) (-96 1120 96) (96 1120 96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
solid
{
"id" "16"
side
{
"id" "42"
"plane" "(128 896 -128) (-128 896 -128) (-128 896 128)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "41"
"plane" "(-96 1120 96) (96 1120 96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "40"
"plane" "(-96 928 -96) (96 928 -96) (96 1120 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "39"
"plane" "(-96 1120 96) (-96 928 96) (-96 928 -96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "38"
"plane" "(96 1120 -96) (96 928 -96) (96 928 96)"
"material" "TOOLS/TOOLSNODRAW"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "37"
"plane" "(-96 928 96) (-96 928 -96) (96 928 -96)"
"material" "TILE/TILEWALL009B"
"uaxis" "[1 0 0 0] 0.25"
"vaxis" "[0 0 -1 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 220 220"
"groupid" "18"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
group
{
"id" "18"
editor
{
"color" "220 220 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
}
entity
{
"id" "26"
"classname" "info_player_start"
"angles" "0 0 0"
"origin" "-47.0772 1071.61 -95"
editor
{
"color" "0 255 0"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1000]"
}
}
entity
{
"id" "50"
"classname" "prop_static"
"angles" "0 0 0"
"disableselfshadowing" "0"
"disableshadows" "0"
"disablevertexlighting" "0"
"fademaxdist" "0"
"fademindist" "-1"
"fadescale" "1"
"ignorenormals" "0"
"maxdxlevel" "0"
"mindxlevel" "0"
"model" "models/combine_helicopter/helicopter_bomb01.mdl"
"screenspacefade" "0"
"skin" "0"
"solid" "6"
"spawnflags" "0"
"origin" "41.1586 955.603 -79.75"
editor
{
"color" "255 255 0"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1500]"
}
}
cameras
{
"activecamera" "-1"
}
cordon
{
"mins" "(-1024 -1024 -1024)"
"maxs" "(1024 1024 1024)"
"active" "0"
}
This diff is collapsed.
#!/usr/bin/env python3
import collections
import logging
def list_only(value):
if len(value) < 1:
raise ValueError('list too short')
if len(value) > 1:
raise ValueError('list too long')
return value[0]
try:
import regex as re
except ImportError as err: