Raised This Month: $ Target: $400
 0% 

[REQ$]valid bsp map checker


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2011 , 00:16   Re: [REQ$]valid bsp map checker
Reply With Quote #11

Ok, done with my fairly simple one.

Creates two files:
Good Maps: /dod/mapcycle_good.txt
Bad Maps: /dod/mapcycle_bad.txt

Automatically disables itself too!

Steps to start (it may seem trivial to some but it's slightly different):
  1. Put maptester.amxx in the plugins folder.
  2. Download plugins-maptester.ini and place in the /addons/amxmodx/configs/ folder.
  3. Start server.
  4. Edit /addons/amxmodx/configs/plugins-maptester.ini to remove the word "disabled". Save.
  5. Change the map to the first map in mapcycle.txt
  6. Wait.

Notes:
  • Will only work with mapcycle.txt
  • My test server did about 2 maps every second (if they were good)
  • Adds about 10 seconds for each failed map (this is the default time for restart on crash for HLDS; if something else is restarting it, it may be different).
  • If you want to redo the whole thing, you have to delete mapcycle_good.txt and mapcycle_bad.txt (if you don't want the new run appended to the previous).
  • Detects both invalid maps (typos, .bsp missing, etc) and maps that crashed the server, see the comments in the bad map file.

I would recommend testing it on a small bunch of maps firt to make sure it's working correctly, just as precaution or if you would like to give me feedback before running it on the whole thing.
Attached Files
File Type: ini plugins-maptester.ini (23 Bytes, 135 views)
File Type: sma Get Plugin or Get Source (maptester.sma - 524 views - 4.1 KB)
__________________
fysiks is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 08-17-2011 , 01:31   Re: [REQ$]valid bsp map checker
Reply With Quote #12

Sweet Fysiks, I will test this tonight right after I get done playing for the evening, and then post my findings after noon tomorrow.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 08-17-2011 , 09:37   Re: [REQ$]valid bsp map checker
Reply With Quote #13

I installed exactly as you said and it gives this in hlsw.

[ 89] unknown unknown unknown maptester.amxx running
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2011 , 13:37   Re: [REQ$]valid bsp map checker
Reply With Quote #14

It's fine, it means just the plugin is not registered but that's not a problem. (register_plugin is missing)
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2011 , 15:59   Re: [REQ$]valid bsp map checker
Reply With Quote #15

Quote:
Originally Posted by MAUGHOLD View Post
I installed exactly as you said and it gives this in hlsw.

[ 89] unknown unknown unknown maptester.amxx running
Ooops, forgot to register a name, version, and author. No biggy, it still runs, that's how I tested it.
__________________
fysiks is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 08-17-2011 , 17:37   Re: [REQ$]valid bsp map checker
Reply With Quote #16

I compiled the plugin.
I added it to the plugins.ini.
I restarted my server.
I edited the plugins-maptester.ini and removed the word disabled.
I changed the map to the first map in the map cycle.

It doesn't change maps !!
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 08-17-2011 at 17:40.
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 08-17-2011 , 17:59   Re: [REQ$]valid bsp map checker
Reply With Quote #17

Quote:
Originally Posted by Arkshine View Post
The purpose of my plugin is to prevent map crash. So, to know exactly if a map has missing resources, I have to check server files, parsing bsp (entities+textures) and checking a lot (if existing, default resources, custom, wrong case, etc). Since I read almost all the files, I can autofix file with wrong case. Also I parse all the files type, I know if a file is truncated or not. When a problem is detected and for sure lead to a crash, the map is changed automatically to the hostmap or a map you want. It can detects if you have a fallback mod. It can generate full report about a map and a daily log to have a global view on the maps which have failed. The auto-downloading feature is specific to a site where there is a lot of maps and the owner (friend) has made me some scripts so I can download directly from his site if present.
It doesn't check pak files yet, I wanted to check more that before and you just remind me ! There are others things not added yet, like checking if a missing resources is on the sv_downloadurl and downloading from there or creating fake wad in case it can't be downloaded. I'm trying to have a complete and robust plugin. Give me more features/ideas !

EDIT : Do you know a map which uses a .pak file ?
Hey Ark, will you're plugin also create map configs and or per map .ini files ?

What we all need is a tool like the command menu editor for half life, or the buy script creator for cs, that will allow us to create .ini and .cfg files in batches. Does anyone know of such a tool ?

[edit] sorry for the double post
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 08-17-2011 at 18:03.
MAUGHOLD is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2011 , 18:05   Re: [REQ$]valid bsp map checker
Reply With Quote #18

I don't understand how it's related to my plugin ? Actually I don't understand what you are talking about. A check is done at each map change only or it's possible to use the command to checks one, few, or all maps.
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2011 , 20:31   Re: [REQ$]valid bsp map checker
Reply With Quote #19

Quote:
Originally Posted by MAUGHOLD View Post
I compiled the plugin.
I added it to the plugins.ini.
I restarted my server.
I edited the plugins-maptester.ini and removed the word disabled.
I changed the map to the first map in the map cycle.

It doesn't change maps !!
Don't add it to plugins.ini! I specifically said installing it is different.

Are all your maps in /dod/mapcycle.txt?
Are you on linux or Windows (shouldn't matter but who knows)?
Is there a file called /dod/mapcycle_testinprogress.txt?
Is the plugin running?
If you open plugins-maptester.ini again, does it show disable again?

I can't think of anything else to ask. I may need to add more debugging type output for these situations.
__________________
fysiks is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 08-17-2011 , 21:06   Re: [REQ$]valid bsp map checker
Reply With Quote #20

Quote:
Originally Posted by Arkshine View Post
I don't understand how it's related to my plugin ? Actually I don't understand what you are talking about. A check is done at each map change only or it's possible to use the command to checks one, few, or all maps.
Okay I think you're missunderstanding what I am trying to say.
It's all good. NM
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
Reply



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 16:36.


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