AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Enhanced Map Searching v1.6 ( Ludwig van ) (https://forums.alliedmods.net/showthread.php?t=2026)

jtp10181 05-18-2004 02:10

Enhanced Map Searching v1.6 ( Ludwig van )
 
2 Attachment(s)
********************************************* *******************************
*
* Version 1.6 - 07/24/2005
*
* Original by Eric Lidman aka "Ludwig van" <[email protected]>
* Homepage: http://lidmanmusic.com/cs/plugins.html
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <[email protected]>
* Homepage: http://www.jtpage.net
*
********************************************* *******************************

Now Has MOTD Popup Support
Now Has MapCycle Output Support


This plugin allows users to search through all the maps on your server. The plugin can either search through the servers maps folder and lists them from there, or it can read from a file. This can be set as a compile time define below. To cut down on the lag caused by file actions, the maps are loaded into memory at the start of each map and searched from there while games are in progress. Thus if you add a map to your server, it wont show up in the search until you load the next map. If you are loading the map list from a file a map will not show up until it is added to the file being read. This plugin also has an automatic chat response that will tell people

Commands:
  • mapsearch <target> - returns up to 20 maps in the HUD containing the search target
  • listmaps - returns all maps in the console paginated amx_help style
  • listmaps <target> - returns all maps containing search target in the console amx_help style.
  • listmapsm - returns all maps in a MOTD popup paginated amx_help style
  • listmapsm <target> - returns all maps containing search target in a MOTD popup window.
  • listcycle - returns mapcycle in the console paginated amx_help style
  • listcycle <target> - returns mapcycle maps containing search target in the console amx_help style.
  • listcyclem - returns mapcycle in a MOTD popup paginated amx_help style
  • listcyclem <target> - returns mapcycle maps containing search target in a MOTD popup window.

Changelog:

v1.6 - JTP10181 - 07/24/05
  • Fixed bug causing it to not compile on loadfile mode
  • Merged in multi-language code from faluco (Thanks!)
v1.5 - JTP10181 - 10/17/04
  • Fixed readdir code so it works on linux (thanks PM)
  • Small tweaks to code to fix some dumb things I did
v1.4 - JTP10181 - 07/22/04
  • Added new compile option to enable listcycle to list the current mapcycle
  • Fixed a few random things that I was doing incorrectly
  • Condensed the "admin" command function into one function
v1.3 - JTP10181 - 07/02/04
  • Added some new code to catch "say listmaps" and block it from being used by other plugins (Deags Map Manager)
  • Added MOTD popup support in the form of "listmapsm"
  • Added some basic dupe checking where it loads the maps in from a dir
  • Added function to sort the array with the maps
  • Added advanced dupe checking into the sorting function
v1.2.2 - JTP10181
  • Tweaked the help info for the commands a little
  • Fixed some hardcoded paths I left in on accident
v1.2.1 - JTP10181
  • Changed all printed messages to use the [AMXX] tag instead of [AMX]
v1.2 - JTP10181
  • Added ability to read from a file as a compile option
  • Fixes for steam (.ztmp files ignored)
  • Added listmaps output to console amx_help style (thanks tcquest78for amx_help code)
  • Added a "currentmap" response to the say handler, people are always asking this.
  • Added lots of other common triggers to a handle say catch so anyone trying to find maps should not have a problem
Below v1.2 was maintained by Eric Lidman

********************************************* ******************************/

In case anyone is wondering I was given rights to maintain all Luds plugins by Eric Lidman himself.

To use the listcycle mode you moust download the SMA, change the define setting and compile the plugin yourself.

Check out my CVS for all the plugins I have worked on. Many are not released anywhere except the CVS because they are not my plugins orginally.
http://web.thekingpin.net/cgi-bin/cvsweb.cgi/jtp10181/

ToTaLKaosPaNcAk3 06-13-2004 23:00

hi, it works well. But just one question. Can you make it so it could add more maps. Listmaps only shows 600 maps. i have like 1000+ maps.

rompom7 06-13-2004 23:31

I have always wanted it so you didn't need a txt file. gj.

jtp10181 06-13-2004 23:43

Quote:

Originally Posted by ToTaLKaosPaNcAk3
hi, it works well. But just one question. Can you make it so it could add more maps. Listmaps only shows 600 maps. i have like 1000+ maps.

Edit the sma file and put in the max maps you want, it is a define option at the top under all the comments.

then just compile the sma, if you don't know how you can use the sites compiler.

http://www.amxmodx.org/compiler.php?go=sc

jarrodatt 06-14-2004 01:29

list all
 
is there a way to do a "listmaps all"

so you can see every map if you cant remeber the name or whatever

jtp10181 06-14-2004 11:46

that would actually overflow you and kick you out of the server if there was more than around.... 100 maps installed or so. You can page through the listmaps output just like amx_help

listmaps
listmaps 43
listmaps ##

etc

if you just do "listmaps" by itself it will tell you what the next page number is on the bottom.

jarrodatt 06-14-2004 15:12

thank you
 
okay thanks for the info i will try that.

TheEnd 06-14-2004 19:38

What happened here? (Top)
http://rec0n.nauticaltech.com/temp/de_dust0003.jpg

and

In console, when I do listmaps, I get the right maps, but in the second section below it, it lists each map like 10 times, and says I got like 500 maps, when I really got like 20.
http://rec0n.nauticaltech.com/temp/Untitled-1.jpg

jtp10181 06-14-2004 19:43

the top shot is output form deags map manager, nothing to do with this plugin. Second is a known issue that so far only I had encountered.

quite form plugin source
Quote:

/* Set to 0 to read the maps from the maps folder
* Set to 1 to attempt to read from a file in the following order:
* addons/amx/allmaps.txt
* addons/amx/mapchoice.ini
* mapcycle.txt
*
* NOTE: In testing reading the directory had issues with LINUX server
* where it was reading each map multiples times into the maps array.

*/
I have no idea what is causing this or any good way to run a dupe check besides a giant loop checking everything. Is there such thing as a hash in small like perl?

Anyway, what kind of system is it? (linux or windows) and what version of linux/windows is it. This should help me narrow down the problem.

Oh and also, on the second screenshot you are getting output from multiple plugins. Try putting this plugin directly ABOVE the deagels map manager plugin in the plugins ini so it can cancel out the output from there. That way you will only see it once. Once you tell me what system you are running on I will try to debug this problem or add some dupe checking in.

TheEnd 06-14-2004 20:35

Still doe's multiple listings and cluttered top.


All times are GMT -4. The time now is 17:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.