AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   News (https://forums.alliedmods.net/forumdisplay.php?f=59)
-   -   SourceMod 1.7.1 Released (https://forums.alliedmods.net/showthread.php?t=261698)

psychonic 04-18-2015 16:06

SourceMod 1.7.1 Released
 
I'm pleased to announce that SourceMod 1.7.1 has been released.

As usual for our minor releases, they primarily contain updates to game compatibility and bug fixes.

Due to some logic errors, for any plugins that were compiled with the 1.7.0 SourcePawn compiler, it is highly recommended to recompile them with the new 1.7.1 compiler.

Some highlights include:
  • Updated sm_rename command to work with CS:S and CS:GO, adding new SetClientName native.
  • Fixed some core.cfg values being ignored (some a regression from 1.7.0, some from earlier).
  • Fixed some compiler issues that causing incorrect code generation.
  • Fixed some crash issues.
See the release notes for the full SourceMod changelog.

You can get SourceMod 1.7.1 from the downloads page. Some support links:
Thanks to all community members that contributed, as well as the rest of the SM Dev Team.

asherkin 04-18-2015 16:29

Re: SourceMod 1.7.1 Released
 
:bee:

Dr. Greg House 04-18-2015 16:37

Re: SourceMod 1.7.1 Released
 
Psychonic: Being pleased to announce stuff since 08.
You need to freak out when there's good news like this.

Franc1sco 04-18-2015 23:33

Re: SourceMod 1.7.1 Released
 
ty :bee:

CenT 04-19-2015 03:47

Re: SourceMod 1.7.1 Released
 
Hello,
I get an error with this new version of sourcemod:

Quote:

L 04/19/2015 - 09:43:11: SourceMod error session started
L 04/19/2015 - 09:43:11: Info (map "de_dust2") (file "errors_20150419.log")
L 04/19/2015 - 09:43:11: [UPDATER] --- BEGIN ERRORS FROM AUTOMATIC UPDATER ---
L 04/19/2015 - 09:43:11: [UPDATER] Unsupported SourceMod version. Please upgrade.
L 04/19/2015 - 09:43:11: [UPDATER] --- END ERRORS FROM AUTOMATIC UPDATER ---
L 04/19/2015 - 09:43:11: Error log file session closed.

sneaK 04-19-2015 04:30

Re: SourceMod 1.7.1 Released
 
Thank you!

RoboCop 04-19-2015 05:07

Re: SourceMod 1.7.1 Released
 
Nice work!

Lucky_luck 04-19-2015 06:27

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by CenT (Post 2287841)
Hello,
I get an error with this new version of sourcemod:

Me too

psychonic 04-19-2015 08:55

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by CenT (Post 2287841)
Hello,
I get an error with this new version of sourcemod:

I'll fix that on the updated backed shortly. It can be safely ignored for now as there are currently no gamedata updates needed for 1.7.1.

Electr000999 04-20-2015 01:58

Re: SourceMod 1.7.1 Released
 
i am put line "#pragma newdecls required" after include's and after experiments get error..
  • why we cannot create custom native with type not a int type, may be beacuse by this in .inc files
    Code:

    native CreateNative(const String:name[], NativeCall:func);
    typedef NativeCall = function int (Handle plugin, int numParams)

    for example how get error
    Code:

    error 100: function prototypes do not match
    example code:
    Code:

    #include <sourcemod>

    #pragma        semicolon 1
    #pragma newdecls required

    public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
    {
        CreateNative("TestNative", _TestNative);
        return APLRes_Success;
    }

    public bool _TestNative(Handle plugin, int numParams)
    {
            return GetSpawnAccess(); 
    }

    bool GetSpawnAccess()
    {
      return true;
    }

  • line public void OnEntityCreated(int entity, const char[] classname) get error:
    Code:

    error 180: function return type differs from prototype. expected 'int', but got 'void'
    example code:
    Code:

    #include <sourcemod>
    #include <sdkhooks>

    #pragma        semicolon 1
    #pragma newdecls required

    public void OnEntityCreated(int entity, const char[] classname)
    {
            if (IsServerProcessing())
            {                               
                   
            }
    }

    in sdkhooks.inc
    Code:

    /**
     * @brief When an entity is created
     *
     * @param                entity                Entity index
     * @param                classname        Class name
     */
    forward void OnEntityCreated(int entity, const char[] classname);


psychonic 04-20-2015 06:52

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Electr000999 (Post 2288211)
i am put line "#pragma newdecls required" after include's and after experiments get error..
  • why we cannot create custom native with type not a int type, may be beacuse by this in .inc files
    Code:

    native CreateNative(const String:name[], NativeCall:func);
    typedef NativeCall = function int (Handle plugin, int numParams)

    for example how get error
    Code:

    error 100: function prototypes do not match
    example code:
    Code:

    #include <sourcemod>

    #pragma    semicolon 1
    #pragma newdecls required

    public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
    {
        CreateNative("TestNative", _TestNative);
        return APLRes_Success;
    }

    public bool _TestNative(Handle plugin, int numParams)
    {
        return GetSpawnAccess(); 
    }

    bool GetSpawnAccess()
    {
      return true;
    }


For now, you must just retag the return value. return view_as<int>(true);

Note that this is nothing new, other than the transitional syntax for retagging. Before, it would have been return _:true; (which is still valid now).

Quote:

Originally Posted by Electr000999 (Post 2288211)
  • line public void OnEntityCreated(int entity, const char[] classname) get error:
    Code:

    error 180: function return type differs from prototype. expected 'int', but got 'void'
    example code:
    Code:

    #include <sourcemod>
    #include <sdkhooks>

    #pragma    semicolon 1
    #pragma newdecls required

    public void OnEntityCreated(int entity, const char[] classname)
    {
        if (IsServerProcessing())
        {               
           
        }
    }

    in sdkhooks.inc
    Code:

    /**
     * @brief When an entity is created
     *
     * @param        entity        Entity index
     * @param        classname    Class name
     */
    forward void OnEntityCreated(int entity, const char[] classname);


I think that you are compiling against old include files.

Electr000999 04-20-2015 08:28

Re: SourceMod 1.7.1 Released
 
1 Attachment(s)
okay, what about the second problem? i am download latest release from main page, and check this .inc on official repository github.com/alliedmodders, all this crap.

psychonic 04-20-2015 09:26

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Electr000999 (Post 2288265)
okay, what about the second problem? i am download latest release from main page, and check this .inc on official repository github.com/alliedmodders, all this crap.

This was supposed to be in 1.7.1, and is even noted on the changelog, but was missed.
https://github.com/alliedmodders/sourcemod/pull/294

I will respin the release package today.

Edit: that commit was in. A similar change for just sdkhooks.inc got missed as only part of the commit was meant for 1.7.1.

Edit 2: I've just made a link to the updated file on the current release's download page.

Electr000999 04-21-2015 03:55

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by psychonic (Post 2288282)
This was supposed to be in 1.7.1, and is even noted on the changelog, but was missed.
https://github.com/alliedmodders/sourcemod/pull/294

I will respin the release package today.

Edit: that commit was in. A similar change for just sdkhooks.inc got missed as only part of the commit was meant for 1.7.1.

Edit 2: I've just made a link to the updated file on the current release's download page.

thx), works fine.

Electr000999 04-21-2015 11:07

Re: SourceMod 1.7.1 Released
 
1 Attachment(s)
I am found bug in checks with new view_as.. and enum i writed example for repeating mistakes.., or it features new syntax?

Code:

#include <sourcemod>

#pragma        semicolon 1
#pragma newdecls required

enum TestType
{
        TYPE_ONE = 1,        TYPE_TWO,                TYPE_THREE
}

public void OnPluginStart()
{
        RegConsoleCmd ( "sm_test"                                        , CmdTest, "");
}

public Action CmdTest(int client, int args)
{
        int iVar = 3;
       
        // WORKS CORRECT
        if(iVar != 3)
        {
                PrintToChatAll("[test 1] %i != 3", iVar);
        }
        else
        {
                PrintToChatAll("[test 1] %i == 3", iVar);
        }
       
        // WORKS CORRECT
        if(!(iVar == 2 || iVar == 3))
        {
                PrintToChatAll("[test 2] %i != 2 or 3", iVar);
        }
       
        // OLD variant view_as work fine
        if(!(iVar == _:TYPE_TWO || iVar == _:TYPE_THREE))
        {
                PrintToChatAll("[test 3] %i != %i or %i", iVar, TYPE_TWO, TYPE_THREE);
        }
       
        // BROKEN
        if(!(iVar == view_as<int>TYPE_TWO || iVar == view_as<int>TYPE_THREE))
        {
                PrintToChatAll("[test 4] %i != %i or %i - !BUG!", iVar, TYPE_TWO, TYPE_THREE);
        }
       
        // WORKS CORRECT if i am place check in ()
        if(!((iVar == view_as<int>TYPE_TWO) || (iVar == view_as<int>TYPE_THREE)))
        {
                PrintToChatAll("[test 5] %i != %i or %i", iVar, TYPE_TWO, TYPE_THREE);
        }
}


cam0 04-21-2015 23:29

Re: SourceMod 1.7.1 Released
 
I get warnings compiling on 1.7+ (didn't occur prior)
Code:
new g_ModeConfig[MAX_MODES][ModeConfig]; public OnPluginStart(){ CreateNative("Mode_GetConfig", Native_GetModeConfig); } public Native_GetModeConfig(Handle:plugin, numParams) {     new Mode = GetNativeCell(1);         if(Mode < g_TotalModes)     {         SetNativeArray(2, g_ModeConfig[Mode], ModeConfig);           return true;     }     else     {         return false;     } }

In my .inc
Code:
enum ModeConfig {     String:Name[32],     String:Name_Short[32],     bool:Enabled,     bool:TempEnabled,     Testvalue }; native Mode_GetConfig(Mode, Properties[]);


The error I get is with SetNativeArray(2, g_ModeConfig[Mode], ModeConfig); The second argument is the error (g_ModeConfig[Mode]).

http://puu.sh/hmtnX/57c53cc222.png

Neuro Toxin 04-23-2015 05:14

Re: SourceMod 1.7.1 Released
 
If I recompile plugins in 171. Can I place them on 170 servers or should all servers run 171 also?

asherkin 04-23-2015 06:32

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Neuro Toxin (Post 2289273)
If I recompile plugins in 171. Can I place them on 170 servers or should all servers run 171 also?

No, it's fine to run a plugin compiled with 1.7.1 on 1.7.0. If you do have any issues, just use the 1.7.0 include files with the 1.7.1 compiler.

Kriax 04-23-2015 07:44

Re: SourceMod 1.7.1 Released
 
It is still impossible to compile the old syntax with the new compiler?
I did not want to change everything .. it's a lot of work ...

asherkin 04-23-2015 07:47

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Kriax (Post 2289319)
It is still impossible to compile the old syntax with the new compiler?

It's never been impossible, see the 1.7.0 release post for information about the very few breaking changes.

Sarabveer 04-27-2015 18:43

Re: SourceMod 1.7.1 Released
 
:bee:

:fox:

:bacon!:

Just realized that GetClientAuthId works in SM 1.6.3

What other versions of SourceMod does this work in?

Powerlord 04-27-2015 20:18

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Sarabveer (Post 2290919)
:bee:

:fox:

:bacon!:

Just realized that GetClientAuthId works in SM 1.6.3

What other versions of SourceMod does this work in?

I want to say GetClientAuthId was introduced in either 1.6.1 or 1.6.2.

WildCard65 04-27-2015 22:26

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by Powerlord (Post 2290946)
I want to say GetClientAuthId was introduced in either 1.6.1 or 1.6.2.

I'll just say what ever version sm 1.6 was at +1 when sm 1.7 got native.

parthi 05-03-2015 15:59

Re: SourceMod 1.7.1 Released
 
Sourcemode 1.7.1 can't connect and apply flag with group on websql

micazoid 05-18-2015 08:33

Re: SourceMod 1.7.1 Released
 
Quote:

Originally Posted by parthi (Post 2292994)
Sourcemode 1.7.1 can't connect and apply flag with group on websql

I think I got the same Problem: I am using a MySQL Database and I am managing this with the Webinterface of HSFighter. I Got clients where one group is assigned to, to manage admins and vips.

On 1.6.4 everthing works fine. Admins got their privileges as intended.
If I install Sourcemod higher then 1.6.4 adminprivileges are gone. sm_admin throws "You are not an admin" error in console.

If I do sm_dump_admcache everything seems to be fine. Groups are correct and Admins are correct assigned to the groups. Only thing that seems weird:
Instead of STEAM_0:0:123 the admin is considered as 0:123

I do not know if that might be a Problem.

Games I am having this issues:
DODS, Fistful of Frags, CSS, TF2


All times are GMT -4. The time now is 13:00.

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