jaredballou / confogl

Automatically exported from code.google.com/p/confogl
1 stars 0 forks source link

Confogl Autoloader does not load a config which I described. #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Set confogl_autoloader_config "" in server.cfg
2.Connect the server.
3.Load different cfg/cfgogle/something(by sm_forcematch something)
4.Game end
5.New lobby connect

What is the expected output? What do you see instead?
When a new lobby connected, cfg/confog.cfg should be loaded.
I see that cfg/cfgogl/something is loaded

What version of the product are you using? On what operating system?
Metamod:Source version 1.8.4-dev
SourceMod Version: 1.3.5
Confogl's Competitive Mod (2.2.1_a062eb111e_elevatorfix)
Confogl Autoloader 1.1

Please provide any additional information below.
Console log when a new lobby connected(not confogl debug on)
http://rino-l4d2.ddo.jp/blog/?page_id=1427

Original issue reported on code.google.com by nori...@gmail.com on 24 Oct 2010 at 1:30

GoogleCodeExporter commented 8 years ago
About console log.
When a new lobby connected, cfg/cfgogl/something/confogl.cfg is loaded(Line 
145, l4d_ready_enabled "1")

In cfg/confogl.cfg, l4d_ready_enabled is "0".

Original comment by nori...@gmail.com on 24 Oct 2010 at 1:35

GoogleCodeExporter commented 8 years ago
Is the config it is loading actually called "something"?  If not, what config 
is being loaded?  For now you can try using the autoloader v1.0 from: 
http://code.google.com/p/confogl/downloads/detail?name=autoloaderv1.0.zip

I'll look into this issue on my server ASAP.

Original comment by Canada.R...@gmail.com on 25 Oct 2010 at 1:12

GoogleCodeExporter commented 8 years ago
>Is the config it is loading actually called "something"?
No, it is called competitive.

cfg/cfgogl/competitive/confogl.cfg(l4d_ready_enabled 1).

sm_forcematch competitive

If you need to any information or you would me like to try something, please 
tell me.

I'll test version 1.0 later.

Original comment by nori...@gmail.com on 25 Oct 2010 at 1:47

GoogleCodeExporter commented 8 years ago
Adding the following in confogl_autoloader.sp will probably fix the problem:
After line 63:
ServerCommand("sm_resetmatch");

The lines 63-65 should look something like this:
        Format(sCommandBuffer, sizeof(sCommandBuffer), "sm_forcematch %s", sConfigBuffer);
        ServerCommand("sm_resetmatch"); 
        ServerCommand(sCommandBuffer);

Original comment by yumyudai on 25 Oct 2010 at 3:54

GoogleCodeExporter commented 8 years ago
I have not tested the above changes by the way so there is no guarantee that it 
will work.
Also, there maybe a better way to fix the problem.

Original comment by yumyudai on 25 Oct 2010 at 3:56

GoogleCodeExporter commented 8 years ago
Matchmode doesn't reset until 1 minute after players have left the server.

Adding the resetmatch to that plugin should fix the issue if that is indeed the 
cause of your problem.

Original comment by prodigysim@gmail.com on 27 Oct 2010 at 11:28

GoogleCodeExporter commented 8 years ago
I have fixed latest source file and compiled(make confogl_autoloader.smx).
It still loads previews setting.

Did I miss something to fix?

diff -r d8286efd6cb8 -r bf0d6f42f3bb src/scripting/confogl_autoloader.sp
--- a/src/scripting/confogl_autoloader.sp       Mon Oct 25 18:31:31 2010 -0500
+++ b/src/scripting/confogl_autoloader.sp       Wed Oct 27 10:58:08 2010 +0900
@@ -3,7 +3,7 @@
 #include <sourcemod>

 #define CVAR_FLAGS FCVAR_PLUGIN
-#define PLUGIN_VERSION "1.1"
+#define PLUGIN_VERSION "1.1_fixed1"

 public Plugin:myinfo =
 {
@@ -61,7 +61,8 @@
                GetConVarString(hAutoloaderConfig, sConfigBuffer, sizeof(sConfigBuffer));

                Format(sCommandBuffer, sizeof(sCommandBuffer), "sm_forcematch %s", sConfigBuffer);
-               ServerCommand(sCommandBuffer);
+               ServerCommand("sm_resetmatch");
+               ServerCommand(sCommandBuffer);
        }

        else

Original comment by nori...@gmail.com on 27 Oct 2010 at 2:28

GoogleCodeExporter commented 8 years ago
close

Original comment by prodigysim@gmail.com on 27 Oct 2010 at 6:49

Attachments:

GoogleCodeExporter commented 8 years ago
So does this final version work properly?  Should this be a newer version of 
the autoloader?

Original comment by Canada.R...@gmail.com on 17 Nov 2010 at 4:37

GoogleCodeExporter commented 8 years ago
I am going to be rewriting the autoloader so that it functions as intended.  
Merging this issue with the new one I created to clean up our issue report page.

Original comment by Canada.R...@gmail.com on 13 Jan 2011 at 8:55