Raised This Month: $51 Target: $400
 12% 

Maplister


Post New Thread Reply   
 
Thread Tools Display Modes
DaftMink
Member
Join Date: Apr 2009
Old 01-27-2014 , 08:45   Re: Maplister
Reply With Quote #71

Any chance you can make a version of maplister that uses map * instead of checking the map directory?.
Want to use this in Synergy, but b/c the mod loads content from outside it's directory it doesn't work.
DaftMink is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 07-18-2016 , 20:07   Re: Maplister
Reply With Quote #72

Alternative:
listbatch.bat
Code:
dir /s /b >list.txt
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux
DJPlaya is offline
Send a message via Skype™ to DJPlaya
michaelrw
Senior Member
Join Date: Jul 2017
Old 08-20-2017 , 00:38   Re: Maplister
Reply With Quote #73

ive been going through the source trying to figure a way to have it write to more than 1 file, but cant figure it out. I added a second target in the cfg file on a new line, but that did not work. ive read through the code a few time and imm just not sure where is a good spot to edit.. i dont care if its a quick and dirty solution. anyone have a recommendation?
michaelrw is offline
michaelrw
Senior Member
Join Date: Jul 2017
Old 08-20-2017 , 02:52   Re: Maplister
Reply With Quote #74

this is what i came up with after another 3 hours lol... but it works. it makes a maplist in mapcycle.txt just by issuing sm_writemaplist from the main plugin.

PHP Code:
#include <sourcemod>
#include <console>

 
public Plugin myinfo =
{
    
name "My First SM Plugin - running a server command at start",
    
author "michaelrw/DNA",
    
description "runs sm_writemaplist to make a maplist at mapcycle.txt",
    
version "1.0.0.0",
    
url "http://www.sourcemod.net/"
}

public 
void OnPluginStart()
{
    
ServerCommand("sm_writemaplist mapcycle.txt"

michaelrw 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 06:15.


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