Commit c2954993 authored by dylan grafmyre's avatar dylan grafmyre
Browse files

snap

parent c961b4d5
......@@ -17,3 +17,5 @@ lint
*_default.bspzip-addlist
*_hdr.bspzip-addlist
*_hdr_final.bspzip-addlist
addons-src/*
addons/*.gma
......@@ -26,6 +26,9 @@ GMPUBLISH_FLAGS?=
GEN_BSPZIP_ADDLIST_BIN?=$(PYTHON_BIN) ./contrib/gen-bspzip-addlist
GEN_BSPZIP_ADDLIST_FLAGS?=--pack-used-local
J2_BIN?=$(PYTHON_BIN) ./contrib/j2
J2_FLAGS?=
# my take on compiling
# vbsp: writes bsp
# vvis: depends on .prt, r/w bsp
......@@ -111,9 +114,17 @@ install: ttt_terrorcon_v2_hdr_final_p.bsp
# mv $(@:_ents.bsp=.bsp) $@
# cp $@ $(MOUNT_DIR)maps\\$(notdir $@)
%.gma: %/addon.json
$(GMAD_BIN) $(GMAD_FLAGS) create -folder "$(dir $^)" -out "$@"
publish: addons/ttt_terrorcon_v2.gma
%.gma: %.bsp
rm -rv \
addons-src/maps/*.bsp \
addons-src/materials/vgui/maps/*.vmt \
addons-src/materials/vgui/maps/*.vtf \
|| true
cp $^ addons-src/maps/
$(J2_BIN) $(J2_FLAGS) <addons-src/512x512.vmt.j2 $(basename $^).vmt >addons-src/materials/vgui/maps/menu_thumb_$(basename $^).vmt
cp addons-src/512x512.vtf addons-src/materials/vgui/maps/menu_thumb_$(basename $^).vtf
$(GMAD_BIN) $(GMAD_FLAGS) create -folder "addons-src" -out "addons/$@"
publish: addons/ttt_terrorcon_v2_hdr_final_p.gma
$(GMPUBLISH_BIN) $(GMPUBLISH_FLAGS) create -addon "$^" -icon "addons/512x512.jpg"
addons-src/512x512.jpg

4.21 KB | W: | H:

addons-src/512x512.jpg

54.8 KB | W: | H:

addons-src/512x512.jpg
addons-src/512x512.jpg
addons-src/512x512.jpg
addons-src/512x512.jpg
  • 2-up
  • Swipe
  • Onion skin
UnlitGeneric
{
$basetexture "vgui\maps\{{argv[1]}}"
$translucent 1
$ignorez 1
$vertexcolor 1
}
......@@ -5,6 +5,9 @@
"ignore" :
[
"*.git-keep",
"512x512.jpg"
"512x512.jpg",
"512x512.vmt.j2",
"512x512.vtf",
"*.swp"
]
}
#!/usr/bin/env python3
import sys
import jinja2
t = jinja2.Template(sys.stdin.read())
sys.stdout.write(t.render({'argv': sys.argv}))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment