Raised This Month: $ Target: $400
 0% 

allowing execute cfg to execute commands?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowdogg
Senior Member
Join Date: Jan 2006
Old 03-25-2008 , 10:45   allowing execute cfg to execute commands?
Reply With Quote #1

Is it possible for the execute cfg part of sourcemod to just execute commands like on mani?

or a third party plugin that allows this?
__________________
Shadowdogg is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 03-26-2008 , 00:20   Re: allowing execute cfg to execute commands?
Reply With Quote #2

Something like this: http://forums.alliedmods.net/showthread.php?t=67620
or something like adding to your adminmenu_cfgs.txt in Sourcemod/configs?
__________________

DontWannaName is offline
Shadowdogg
Senior Member
Join Date: Jan 2006
Old 03-26-2008 , 17:45   Re: allowing execute cfg to execute commands?
Reply With Quote #3

never mind i did it the very long winded way. just make up a .cfg for every tiny command i want.
__________________
Shadowdogg is offline
pRED*
Join Date: Dec 2006
Old 04-01-2008 , 00:10   Re: allowing execute cfg to execute commands?
Reply With Quote #4

Super Menu would let you do this.
It will be available as part of the standard package with 1.1 (and with the snapshot builds of 1.1 once they start up again).
pRED* is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 04-01-2008 , 15:42   Re: allowing execute cfg to execute commands?
Reply With Quote #5

My search for my question brought me this previously posted topic, however, I have a twist...I think. And the link provided for the plugin mentioned earlier does not seem to address my query.

The default SM allows for execution of a CFG file. I have seen it in my admin menu. I would like to now know how to use configure it. I couldn't find in the elaborate Wiki HOW-TO instructions. Maybe I'm just blind and someone would be very kind to direct me. I'm new to all the Source stuff, but like it alot!!! ;)

For example:

Want to execute a config that will do the following:
1. Change hostname
2. set server password
3. set maplist and rotation (assuming it still points to default map cfgs also)

Thanks in advance!!
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
pRED*
Join Date: Dec 2006
Old 04-01-2008 , 15:56   Re: allowing execute cfg to execute commands?
Reply With Quote #6

configs/adminmenu_cfgs.txt

It somewhat self explanatory I believe.
pRED* is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 04-01-2008 , 16:18   Re: allowing execute cfg to execute commands?
Reply With Quote #7

Quote:
Originally Posted by pRED* View Post
configs/adminmenu_cfgs.txt

It somewhat self explanatory I believe.
my bad. thanks for that.

I thought it was only limited to /cfg/ folder, but I guess you can specify by each line whatever you want.

template
Code:
/**
 * List config files here (relative to moddir) to have them added to the exec config menu list
 * Left side is the filename, right side is the text to be added to the menu
 */
Configs
{
    "cfg/server.cfg"            "Standard Server Setup"
    "cfg/sourcemod/sm_warmode_on.cfg"    "War Mode On"
    "cfg/sourcemod/sm_warmode_off.cfg"    "War Mode Off"
}
Example for me having subfolder called Scrim in cfg folder:
Code:
/**
 * List config files here (relative to moddir) to have them added to the exec config menu list
 * Left side is the filename, right side is the text to be added to the menu
 */
Configs
{
    "cfg/Scrim/Scrim.cfg"            "ScrimFun"
    "cfg/Scrim/mapcycle.txt         "ScrimMapCycle"
}
first line would contain the hostname and server password changes

second line would designate the mapcycle (e.g., 2fort, gravelpit, dustbowl)

so if that is correct, then will my existing map cfg be used or do they need to be included in the above, and how?
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 04-02-2008 , 11:13   Re: allowing execute cfg to execute commands?
Reply With Quote #8

So I wanted to pass on that my proposed Example did not work.

I made Scrim.CFG and placed it into the /cfg/sourcemod/

It contained all the server settings I wanted changed (ie. hostname, password, all talk, etc.)

However, I had to set my mapcycle (default /tf/ location) and the mapconfig.cfg (default /cfg/ location) to what I needed for 4 maps. Maps were (2Fort, GravelPit, Convoy, and Toy Fort, in order).

Then came to find out the following process:

1. Buffer map - starting map is not of the mapcycle list
2. Change to first map
3. Execute Scrim.CFG
4. For some reason, the Clan ready command didn't work. Is it supposed to be typed in chat as the following?
Code:
ready
or
Code:
#ready

5. Play that map
6. Map changes, must repeat steps 2-5.

I hope my concept is clearer for my usage. I'd like to know if SM can handle by default, given the correct setup of course, which is what I'm soliciting help with, or to look at a plugin. I will look at SM super menu.
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT 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 13:34.


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