User:Phenomenon: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
Line 12: Line 12:
===== Installation =====
===== Installation =====


:Download the LUA script ''[http://www.force-opponents.org/lua/anymod.lua anymod.lua]''
*Download the LUA script ''[http://www.force-opponents.org/lua/anymod.lua anymod.lua]''


:Add the following command to your server.cfg to call the script on server start
*Add the following command to your server.cfg to call the script on server start


<blockquote><pre>
<pre>
set lua_modules "anymod.lua"
set lua_modules "anymod.lua"
</pre></blockquote>
*Open the script file in your prefered editor and
: set DELIMITER, if you want to import the file to EXCEL, (set to ";" by default)
: set SAFE_FILE or leave it as it is
: set WEAK_FILE or leave it as it is
<pre>
DELIMITER  = ";"                      -- set a delimiter char to make the list compatible for imports to EXCEL
SAFE_FILE  = "successful_logins.txt"  -- contains verified AND possibly hacked logins
WEAK_FILE  = "hacks.txt" -- "hacks.txt" -> contains all failed logins
</pre>
</pre>
*Save the file and upload it to the etpro folder on the server.
*Ensure, that the script is allowed to create the log files on our server (check File Permissions in ../ET/etpro/.. )


<pre><nowiki>
<pre><nowiki>

Revision as of 17:23, 25 July 2006

personal profile

... bla bla ...

anymod.lua

Requirements
Installation
  • Add the following command to your server.cfg to call the script on server start
set lua_modules "anymod.lua"
function et_InitGame(levelTime, randomSeed, restart)
	-- do something
end