To clarify, in SourceMod, our plan for the stable branch is to make the
admin system and GetClientAuthString function behave as if the change
never took place.
The development branch will still as-is at the moment. Longer term, we
plan to rework things to not be able to be hampered by format changes
like this.
--
Nicholas Hastings
AlliedMods.net <http://www.alliedmods.net>
[email protected] <mailto:[email protected]>
Thursday, August 21, 2014 8:30 PM
Stop trying to convert everything, The sourcemod devs are currently
working on a hack to make it work again with old steam id formats.
https://github.com/alliedmodders/sourcemod/pull/136
Peter Jerde <mailto:[email protected]>
Thursday, August 21, 2014 8:29 PM
Many of us who use sourcebans can use this as a temporary fix:
1. disable your sourcebans plugin by renaming it to
"sourcebans.smx-disabled"
2. verify that tf/addons/sourcemod/configs/admins.cfg contains all
your current admins and reserved-slot holders etc.
3. place the script (below) into the /tf/addons/sourcemod/configs/
directory, name it "fix.php", change to that directory on your command
line, and execute the script with "php fix.php > admins-new.cfg"
4. check that it worked... look at the admins-new.cfg and compare it
to admins.cfg to see if the conversion worked.
5. delete your admins.cfg and rename admins-new.cfg to admins.cfg and
restart your server.
That will, at least, give your admins back their powers.
Here's the script:
--------------------------------------
<?
$f = file_get_contents("admins.cfg");
$f = explode('"',$f);
foreach($f as $line) {
if(substr($line,0,6)=="STEAM_") {
$a=explode(':',substr($line,8));
echo '[U:1:'.($a[1]*2+$a[0]).']"';
}
else echo $line.'"';
}
?>
--------------------------------------
Of course, this assumes you have php and can run it from the command
line. It's what I came up with, though, and I thought I'd share it
since it worked for us.
cheers,
- Peter
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds