User:Phenomenon: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
Line 16: Line 16:
: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 ''[[http://wolfwiki.anime.net/index.php/ETPro:Lua_Mod_API#lua_modules check also ETPRO:Lua Mod API for further informations]]''
:Add the following command to your server.cfg to call the script on server start
 
<pre>
<pre>
set lua_modules "ref_monitor.lua"
set lua_modules "anymod.lua"
</pre>
</pre>



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