Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thorsummoner
ttt_terrorcon
Commits
fcd5fa51
Commit
fcd5fa51
authored
Sep 19, 2021
by
dylan grafmyre
Browse files
lua was running twice by default, server/client
parent
945c1b25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
fcd5fa51
...
...
@@ -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
`
lua/nav_generate.lua
View file @
fcd5fa51
...
...
@@ -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']"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment