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

mexicanus

// Admins.ini - For AdminMod by Wombat

   // 21:13 13/03/2006

   //

   // Name=mexicanus2

   // password= vinito86

   // rights= 16383

   //

   // Rights:

   //

   // 1 = Protected name, can view status

   // admin_status

   //

   // any admin level can use admin_status.

   //

   // 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 #>

   // admin_fraglimit <fraglimit #>

   //

   // 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_removeip <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

   // listadmins

   //

   // 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"

   //

   //   You must enter these commands into console.

   //

   // Contact/Help

   // ------------

   // If you have any questions, feel free to contact me at:

   // Forums: Www.mods-r-is.net

   // E-mail:

   //------------------------------------------------------------

   //

   //name          password          Level

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

   //name=mexicanus     password=sabritas       rights=16383

   

   Heres my admin test file... I uploaded. Then a joinied the server and type in console setu "admin_auth" "sabritas"

   then a command and nothing happens , i need some help. Thanks

Elgan {sfx}

// means remove, So its not being read by the game.

   

   

   you want to do..

   

   

   //------------------------------------------------------------

   //

   //name password Level

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

   name=mexicanus password=sabritas rights=16383

StatiKShocK

Does the banning option support IP range?

   

   installed it on the server, but somehow its not working for muah

   

   

   i have this on the admins.ini

   name=god password=thepassword rights=16383

   

   

   on unknonwnsoldier.cfg i have manually added:

   alias "activate" "exec admin.cfg"

   

   

   on admin.cfg i have:

   setu admin_auth "thepassword"

   

   

   when i type activate, i get:

   cannot exec admin.cfg

   

   

   

   Well, i know i can do them manually, no big deal, but just want to know if this could ban ranges, if so how? 192.268.*.* , 192.168, 192.168.0.0-192.168.255.255?

   

   thanks guys.

Elgan {sfx}

yes, it can ban ranged. how?, like u said. hehe , however i didnt test the ip range so who knows what happens?

   

   

   

   admin.cfg should be placed inside main/.

Elgan {sfx}

heh 5am anyway... made a new topic so ppl will notice.

   

   ty to rookie for solving the linux riddle. Also thanx to Wombat for creating this. The fgameded.so compiled now loads in mohaa and thats all i have tested. i dont have a linux server and dont have a linux mohaa client to test agaisnt the linux server on here , yep,, #1 tmt post from linux! omg, yep, linux sucks :D.

   

   Not tested at all, so really beta, code not tested at all, NOTHING is tested! Please dont blame me for any problems..etcetc...use at your own risk etc.

   

   Here is also the updated source code for linux,

   

   

   Enjoy! report errors, u may get errors as i commented out some code and who knows what happens, the code is just some memory stuff, shouldnt change anything really.. (cough)

   

   

   

   UPDATED FIRST POST

Rookie One

It's all thanks to Linux giving more info about the crash. :P

   I'm also trying to force the damn thing to compile under mingw so that peeps who can't afford Visual Studio can still compile. :)
here's my stuff - inequation.org | here's where I work - thefarm51.com

Rookie One

YES!!! I made the mingw build work!!! :D And the file's 20kb smaller! :D The server quit crash problem is fixed as well. :)

   

   Now I'll try to make these memory freeings work again.

   

   You can view what I've done so far here: https://opensvn.csie.org/traccgi/mohfillfix">https://opensvn.csie.org/traccgi/mohfillfix
here's my stuff - inequation.org | here's where I work - thefarm51.com

Elgan {sfx}

wow great.  ill have to download mingw.  20kb, heh, sweet.  What server quit problem :O?

Rookie One

The dll used to crash the server, but I fixed that as well. :)
here's my stuff - inequation.org | here's where I work - thefarm51.com

Elgan {sfx}

ah cool.

   

   the combined source sounds good but i like VC:.hehe , i think its easier tho, maybe vc can still compile it anyway. im sick of having attchments everywhere for all the damn packs!

   

   forgot to mention about the "//" for comments in the docs grr, nm. hehe.

dixie265

Elgan dose this fix have a problem with custom maps? its ok so long as i dont load a custom map if i do it crashes the game ???

Elgan {sfx}

i dont think it would have a problem.

   

   hm, strange, i was playing skylimit earlier, my game didnt crash ...i think it must be the custom map crashing u;)

Rookie One

It can compile in VC indeed, m8. :)

   

   All the features are back in! :D I updated the SVN repo to the latest version. I had to recode the memory management and now it works like a charm in windows. I wasn't really able to test it in Linux (I could only check if it crashes or not - and it didn't, so it seems it's OK :)), though.

   

   So, I've got a little request for Linux server owners: could someone use this build: 1844-fgameded.rar and see if the admin, banning etc. features work?

   

   Dixie, what map was that?
here's my stuff - inequation.org | here's where I work - thefarm51.com

DanJ

The server starts up, but as I connect to the server It crashes.

Rookie One

Hmm. Any error message in the server console?
here's my stuff - inequation.org | here's where I work - thefarm51.com