MohFill Fix 2.0 (must have for AA server owners)

Started by Elgan {sfx}, May 08, 2006, 11:58:14 PM

Previous topic - Next topic

Elgan {sfx}

oki, i start coding it like 2 months ago and i put it back a lil while i had important other things to do, but last 2 days i decided to get it out the way. I just wanted to rescript the admin.ini file. I also wanted wombat to check it over however he is in switzerland i think.  I also wanted to add alot more. However, i decided to get it done, redo admin bit and release as is.  I thought why add as much and keep ppl waiting, it was also playing on my mind.  New things and fixes can always be added, easier to update.

   

   use at your own risk, i dont have time to test everything but im pretty sure at least everything works to a degree... :D

   

   The main reason for the update was 1.0 fix could be by passed with a new mohfill programme that basicaly thrashes and bombards the server. (see my picture), In the picture i pressed the button, god knows how many times... The server still seems to be running tho :)

   

   

   Apart from an update to the actual Moh fill fix i added some more things, wombats admin mod also got in there.

   

   Description:

   ------------

   Fix and enhancement for Medal of honor Allied Assault.

   

   Contains:

   

   * chat filter.

      Works on a point based system. If the chatter used words in the chatfilter.cfg

      then they will receive a point. If they match or exceed the points given as badchatlimit cvar.

      They will be kicked from the server.

   

   * Ip Filter.

      Ip's entered into the ipfilter.cfg will not be able to connect to the server.

   

   * Name Filter.

      Name's entered into the Namefilter.cfg will not be able to connect to the server.

   

   * Fixes

      For skin fps crash bug

      moh fill crash bug

      bad command crash bugs

   

   * Bad command filter

      cheat cmds like noclip,

      some dangerous cmds that case a crash.

   

   * Admin mod

   

      Admins can be assigned using the admin.ini. This allows you to give

      admins some abilities without giving them the actual rcon password.

      This is safer and easier way to manage admins.

   

      Rights:

      1 = Protected name

      no cmds:

   

      2 = Can Change Maps.

      admin_map <map>

   

      4 = Can restart map.

      admin_restart

   

      8 = Can change game type.

      admin_gametype <gametype #>

   

      16 = Can change fraglimit and time limit.

      admin_timelimit <timelimit #>

   

      32 = Can kick players on server.

      admin_clientkick <client id #>

      admin_kick <name>

   

      64 = Can use "bad" cmds on server. This is mainly for scriptures. noclip, dog etc.

      no cmds:

   

      128 = Can ban players on the server.

      admin_addname <name>

      admin_addip <ip>

      admin_listnames

      admin_iplist

   

      256 = Can un ban players on the server.

      admin_listnames

      admin_iplist

      admin_removename <name>

      admin_removedip <ip>

   

      512 = Can add and remove, view chat filter.

      admin_chatfilteradd < word >

      admin_chatfilterremove < word >

      admin_chatfilterlist

   

      1024 = Can use Admin Pro

      admin_cmd <cmd string>

   

      2048 = Can list admins

      adminlist

   

      4096 = Can do anything. Same as normal rcon. (super admin)

      admin_rcon

   

      All together total added is 16383

   

      You can add rights together.

      eg1.  map(2) + restart(4) = 6

      eg2.  Protected name(1) + Map(2) +  restart(4) = 7

      just like dmflags

   

      Admins must setu the cvar "admin_auth" in their game. This cvar should contain the password

      apointed them in the admin.ini admins list.

   

      eg, in my config for my game, i put setu "admin_auth" "password"

   

   

   * Some new cvars

      

   New cvars:

   ------------

   

      sv_kickbadcmd ( # ) default: 1.

         Kicks a player for entering a bad command.

   

      g_teamforcebalance ( # ) default: 0.

         Force even teams.

   

      filterban ( # ) default: 1.

         Turn on ip and name banning.

   

      badchatlimit ( # ) default: 3.

         limit , how many times can an offender use

         filtered words in chat before kicked.

   

      sv_disablechat ( # ) default: 0.

         Disable chat for everyone.

         No one will be able to use chat and a message will display

         "chat disabled" if they try.

   

   

   

   again. i only have a compiled version for windows. i installed linux vwmware hwoever i cant get damn net sharing with windows so cant download a compiler and sompilers ive tried on windows to compile for linux get some stupid error, either i am compiling wrong or as the erropr says it still compiles as an AMD 64 windows executable or something.

   

   There is 2 downloads. 1 is the windows fix, dll, read me and filter configs. The other contains the source code for windows and linux.  

   

   For windows AA, combined with bof fix and AP, your server should be prety stable

   

   Oki , have fun. back to boring work now :(

   

   

   

   75-bruteattackmohfill.jpg

   

   75-windows mohfill fix 2.0.rar

   75-source mohfill fix 2.0.rar[/pfs]

   [pfs]75-windows mohfill fix 2.0.rar">75-mohaafill fix 2.0 (linux).rar">75-source mohfill fix 2.0.rar[/pfs]

   [pfs]75-windows mohfill fix 2.0.rar


   [pfs]75-mohaafill fix 2.0 (linux).rar

JoeyC

Amazing work Elgan. Thanks for the release. The config you are talking about adding the password to. Is that the unnamedsoldier cfg or did you create a cfg and exec it from the game shortcut.

JiMbOb

excellent, great working. I'm just wondering which file it is too lol....

   

   Jimbob

Elgan {sfx}

JoeyC :
   Amazing work Elgan. Thanks for the release. The config you are talking about adding the password to. Is that the unnamedsoldier cfg or did you create a cfg and exec it from the game shortcut.

   

   

   

   for admin_auth? your admins should add their admin_auth password to any config that gets executed. unnamedsoldier.cfg should be fine. it must be "SETU" not set ot seta. setu. i  have maybe 5/6 configs that run but unnamedsolder.cfg should be ok.

   

   

   

   eg.

   

   

   setu "admin_auth" "deadman"

JoeyC

Set up a server last night. Its running nice. Excellent work m8 :)

Elgan {sfx}

np

   

   just top let u know i had 2 tiny bugs.

   

   1 bug was in the read me, i forgot the "admin_fraglimit" and another was with admin_restart. just fixing them and reuploading, but u dont have to worry if u dont use em. nothing serious. wont bother making it 2.1 or anything.

   

   

   edit:

   

   restart fixed

   

   admin_status and admin_fraglimit in now too.

Rookie One

Wow! :o_o That's some really impressive piece of work, m8! It's great that you included the source, I'll try and get a Linux build for you. :)
here's my stuff - inequation.org | here's where I work - thefarm51.com

JoeyC

This is for a test server I put up last night. I can not get the admin cmd's working for some reason.

   

   I put this in my moh shortcut

   

   "C:Program FilesEA GAMESMOHAAMOHAA.exe" +logfile 1 +exec admin.cfg

   

   Put this in the admin.cfg

   

   setu "admin_auth" "blah"

   

   Put this in this admin.ini

   

   //name          password          Level

   //--1------------|-------------2-----------------|--------3-----

   name=-=DSR=-RustedRoot69     password=blah       rights=4096

   

   When I type in console admin_restart , admin_map admin_map dm/mohdm1 nothing happens. Do you see something I missed. I have admin pro and freezetag running on the server.

Elgan {sfx}

hm, strange joey.  login as rcon and see does the cvars exist. maybe you got the dll in main bad?

   

   

   ini loooks good,  config sounds good, name is same?

   

   

   and thanx rookie!


JoeyC

Cvars are working. I disabled chat also cursed and got kicked lol. So they are working except for the adminmod stuff.

stay2theleft

Nice work Elgan,

    Thanks again for your hard work m8

Elgan {sfx}

JoeyC :
   Here is a screenshot of my ftp. http://www.funmodsforu.com/ftp.jpg">http://www.funmodsforu.com/ftp.jpg

   

   

   hmmm. strange, try putting ur name in lowercase, ur name must be wrong., If caps aint working, ill have to check. :S.

JoeyC

I tried all different ways with my name. Upper and lower case. I can not get it to work. Everything else works fine so its cool. Thanks m8

Rookie One

Try a simple name maybe and see if it works?
here's my stuff - inequation.org | here's where I work - thefarm51.com