User:Phenomenon: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
Line 18: Line 18:
: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


<pre>
<blockquote><pre>
set lua_modules "anymod.lua"
set lua_modules "anymod.lua"
</pre>
</pre></blockquote>


*Open the script file in your prefered editor and  
*Open the script file in your prefered editor and  

Revision as of 17:21, 25 July 2006

personal profile

... bla bla ...

anymod.lua

Requirements
Wolfenstein - Enemy Territory (patched to v2.60b) - splashdamage.com
ET Pro 3.2.6 or higher - etpro.anime.net
set lua_modules "anymod.lua" in your server configuration
Installation
Download the LUA script anymod.lua
Add the following command to your server.cfg to call the script on server start
set lua_modules "anymod.lua"
  • 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
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
  • 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/.. )


function et_InitGame(levelTime, randomSeed, restart)
	-- do something
end