Raised This Month: $94 Target: $400
 23% 

Enhanced Map Searching v1.6 ( Ludwig van )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   DS (30)
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-18-2004 , 03:10   Enhanced Map Searching v1.6 ( Ludwig van )
Reply With Quote #1

********************************************* *******************************
*
* 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/
Attached Files
File Type: sma Get Plugin or Get Source (amx_ejl_searchmaps.sma - 5054 views - 19.9 KB)
File Type: txt amx_ejl_searchmaps.txt (6.5 KB, 2359 views)
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
ToTaLKaosPaNcAk3
Member
Join Date: Mar 2004
Location: Duarte, CA
Old 06-14-2004 , 00:00  
Reply With Quote #2

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.
__________________
-PaNcAk3
ToTaLKaosPaNcAk3 is offline
Send a message via AIM to ToTaLKaosPaNcAk3
rompom7
Senior Member
Join Date: May 2004
Old 06-14-2004 , 00:31  
Reply With Quote #3

I have always wanted it so you didn't need a txt file. gj.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-14-2004 , 00:43  
Reply With Quote #4

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
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
jarrodatt
Member
Join Date: May 2004
Old 06-14-2004 , 02:29   list all
Reply With Quote #5

is there a way to do a "listmaps all"

so you can see every map if you cant remeber the name or whatever
jarrodatt is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-14-2004 , 12:46  
Reply With Quote #6

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.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
jarrodatt
Member
Join Date: May 2004
Old 06-14-2004 , 16:12   thank you
Reply With Quote #7

okay thanks for the info i will try that.
jarrodatt is offline
TheEnd
Junior Member
Join Date: Mar 2004
Old 06-14-2004 , 20:38  
Reply With Quote #8

What happened here? (Top)


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.
__________________
- [Rec0n] TheEnd

TheEnd is offline
Send a message via AIM to TheEnd Send a message via MSN to TheEnd Send a message via Yahoo to TheEnd
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-14-2004 , 20:43  
Reply With Quote #9

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.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
TheEnd
Junior Member
Join Date: Mar 2004
Old 06-14-2004 , 21:35  
Reply With Quote #10

Still doe's multiple listings and cluttered top.
__________________
- [Rec0n] TheEnd

TheEnd is offline
Send a message via AIM to TheEnd Send a message via MSN to TheEnd Send a message via Yahoo to TheEnd
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:58.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode