Raised This Month: $32 Target: $400
 8% 

Execute Configs 1.0 (Updated 08/12/09)


Post New Thread Reply   
 
Thread Tools Display Modes
Bad Cold Man
Senior Member
Join Date: Apr 2014
Old 07-31-2016 , 10:20   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #161

Sorry for my post above. It's working for me! (CSGO!!!)
__________________

Last edited by Bad Cold Man; 07-31-2016 at 16:04.
Bad Cold Man is offline
lowheartrate
Member
Join Date: Apr 2015
Location: United States, New York
Old 04-18-2017 , 04:29   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #162

I'll try this again Does anyone know how I can target warmup rounds with this plugin so that I can change some cvars for warmup round and change more when first round comes?!

EDIT: I tried to run few cvars in my gamemode_competitive_server.cfg so that I can have those for default values (during warmup round) and then I want to execute round1.cfg file when the first round starts so I can change those cvars back to normal. The problem that I am having is during warmup for some reason the cvar mp_buy_anywhere is set to 0 & sv_cheats is set to 0. When round1 comes where the code should change, it still has start money of 65535 for some reason. Not sure why but it seems like only some of the cvars are being changed and when they are being changed, its at the wrong time. I have other config files I am using for execute configs that work fine like my alltalk.cfg file that allows everyone to talk to each other when there are less then 4 players on the server but for some reason I am having issues with this.

cvars I changed in gamemode_competitive_server.cfg:
Spoiler


cvars in round1.cfg that should exec on first round:
Spoiler
__________________

Last edited by lowheartrate; 04-24-2017 at 02:26. Reason: solved own issue.
lowheartrate is offline
lowheartrate
Member
Join Date: Apr 2015
Location: United States, New York
Old 04-25-2017 , 22:20   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #163

Quote:
Originally Posted by lowheartrate View Post
I'll try this again Does anyone know how I can target warmup rounds with this plugin so that I can change some cvars for warmup round and change more when first round comes?!

EDIT: I tried to run few cvars in my gamemode_competitive_server.cfg so that I can have those for default values (during warmup round) and then I want to execute round1.cfg file when the first round starts so I can change those cvars back to normal. The problem that I am having is during warmup for some reason the cvar mp_buy_anywhere is set to 0 & sv_cheats is set to 0. When round1 comes where the code should change, it still has start money of 65535 for some reason. Not sure why but it seems like only some of the cvars are being changed and when they are being changed, its at the wrong time. I have other config files I am using for execute configs that work fine like my alltalk.cfg file that allows everyone to talk to each other when there are less then 4 players on the server but for some reason I am having issues with this.

cvars I changed in gamemode_competitive_server.cfg:
Spoiler


cvars in round1.cfg that should exec on first round:
Spoiler
So I figured out that round:1 targets warmup round(s) and round:2 seems to truly target the actual first round (pistol round) of the match. Almost everything is working flawless for me but I only have one issue at the moment.

I have the plugin executing cfg/warmup.cfg at round:1 which has the following cvars in it:
Code:
mp_buy_anywhere 1
mp_maxmoney 65535
mp_startmoney 65535
mp_solid_teammates 0
... and then I have cfg/round1.cfg being executed at round:2 which should change the cvars to:
Code:
mp_buy_anywhere 0
mp_maxmoney 16000
mp_startmoney 800
mp_solid_teammates 1
When round 2 comes along it seems to change the mp_solid_teammates & mp_buy_anywhere cvars just fine but when starting the round the player(s) still have maximum money allowed which in this case is $16000 so there really is no initial pistol round, it's just a full gun on gun battle straight from round one.
__________________
lowheartrate is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 11-24-2017 , 18:22   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #164

I have deathmatch goes advanced installed and I have the round time set to 35. At 30, 25, 20 and 10 time left I want to execute a config. For some reason the timeleft isn't working properly for me.

Any idea's why?
lilpetri is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 12-04-2017 , 05:53   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #165

Quote:
Originally Posted by lilpetri View Post
I have deathmatch goes advanced installed and I have the round time set to 35. At 30, 25, 20 and 10 time left I want to execute a config. For some reason the timeleft isn't working properly for me.

Any idea's why?
Show your executeconfigs txt file pls.

What exactly does not work?

Does it work if you disable DM Goes Advanced, or other plugins? (I guess this a plugin?)
__________________
micazoid is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 01-06-2018 , 11:49   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #166

Using latest of fraug

Quote:
L 01/06/2018 - 17:42:29: [SM] Blaming: executeconfigs.smx
L 01/06/2018 - 17:42:29: [SM] Call stack trace:
L 01/06/2018 - 17:42:29: [SM] [0] CloseHandle
L 01/06/2018 - 17:42:29: [SM] [1] Line 100, /home/forums/content/files/3/4/6/6/8/24085.attach::OnMapTimeLeftChanged
L 01/06/2018 - 17:42:29: [SM] Exception reported: Handle ecca0703 is invalid (error 1)
Ejziponken is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-06-2018 , 12:26   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #167

Quote:
Originally Posted by Ejziponken View Post
Using latest of fraug
Franug*
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 01-06-2018 , 12:32   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #168

Quote:
Originally Posted by Franc1sco View Post
Yeapp thats it
Ejziponken is offline
Ahava
New Member
Join Date: Jan 2016
Old 01-08-2018 , 18:44   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #169

Hello,

I'm trying to use executeconfig so that it executes a new mode for "Deathmatch Goes Advanced" after a few minutes pass. Unfortunately it doesn't really work for me, the configs just don't get executed. I can execute them fine manually though.

Here's my config:
Code:
"Configs"
{
	"*"
	{
		"timeleft:1560"			"1:dm_pistol_normal.cfg"
		"timeleft:1260"			"1:dm_forcebuy.cfg"
		"timeleft:1080"			"1:dm_rifles.cfg"
		"timeleft:240"			"1:dm_rifles_hs.cfg"
	}
}
Thanks in advance for any help!

EDIT: Ejziponken helped me solve it. Timeleft is given in minutes, not seconds.

Last edited by Ahava; 01-09-2018 at 09:46.
Ahava is offline
System of a pWne!^
New Member
Join Date: May 2010
Old 05-19-2018 , 19:20   Re: Execute Configs 1.0 (Updated 08/12/09)
Reply With Quote #170

The program has a logic-error when distinguishing between bots, spectators and real players thus rendering sm_executeconfigs_include_bots and sm_executeconfigs_include_spec unusuable.

This can be easily fixed by changing the lines starting at #235 from
Code:
			new bool:bBot  = bIncludeBots && IsFakeClient(i);
			new bool:bSpec = bIncludeSpec && IsClientObserver(i);
			if(bBot   || bSpec ||
				 (!bBot && !bSpec))
				iClients++;
to
Code:
			new bool:bBot  = IsFakeClient(i);
			new bool:bSpec = IsClientObserver(i);
			if((bIncludeBots && bBot)   || (bIncludeSpec && bSpec) ||
				 (!bBot && !bSpec))
				iClients++;
I attached a fixed plugin + sourcode based on the latest release.
Attached Files
File Type: smx executeconfigs.smx (8.5 KB, 213 views)
File Type: sp Get Plugin or Get Source (executeconfigs.sp - 559 views - 6.8 KB)
System of a pWne!^ is offline
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 02:38.


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