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

lua was running twice by default, server/client

parent 945c1b25
......@@ -195,6 +195,8 @@ maps/%.bsp: %.bsp
rm -v "$(MOD_DIR)/maps/graphs/navgen.ain"
_comments:
true
# only ents works on an existing bsp,
# which are not typically left "in place" for this operation
#%_ents.bsp: %.vmf
......@@ -279,3 +281,5 @@ lint: ttt_terrorcon_v2.bspzip-addlist
hl2pid:
$(WINPGREP_BIN) $(WINPGREP_FLAGS) hl2.exe
killhl2:
taskkill -f -pid `$(WINPGREP_BIN) $(WINPGREP_FLAGS) hl2.exe`
......@@ -2,8 +2,13 @@ function string_repr(str)
return string.format("%q", str):gsub("\\\n", "\\n")
end
local function main()
local state = file.Read('runme.txt')
if SERVER then
return
end
print( string.format("nav_generate:main: SERVER=%s CLIENT=%s", SERVER, CLIENT) )
if state == '' then
print( "nav_generate:main:: start nav_generate ..." )
RunConsoleCommand( "nav_generate", nil )
......@@ -18,7 +23,7 @@ local function main()
print( "nav_generate:main:ng_2: write state: ng_f ... done " )
print( "nav_generate:main:ng_2: manual tasks: ['quit']" )
return
else:
else
print( "nav_generate:main:E: unhandled state: " )
print ( string_repr(state) )
print( "nav_generate:main:E: manual tasks: ['quit']" )
......
Markdown is supported
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