AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   SourceBans 2.0 Alpha (2013/09/04) (https://forums.alliedmods.net/showthread.php?t=219657)

lyric 07-05-2013 12:35

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I figured it out. just remvoed the anchoring $ from \.php$ regex expression and its working :)

FlyingMongoose 07-05-2013 14:45

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Appreciate all the people loving SB2, and Tsunami thanks for all the hard work!

Quote:

Originally Posted by cssBOT (Post 1983434)
I agree with this 100%. Otherwise v2 breaks Sourcecomms, then it requires a rewrite anways, then a whole bunch of patching in things. Please just do it now.

On this note, a final license for the WEB panel of SB2 has not been decided yet, in its current state and the fact that it uses the yii framwork it is quite easily to develop plugins for. Not only this, branching the project is not only possible, but encouraged as are, of course, pull requests! Perhaps a SourceComms compatible branch or plugin could be packaged in the future.

The SourceMod plugin itself is still required to be compliant to the SourceMod license though.

If you want an example of a web panel plugin (in progress) you can look at my "Feed" branch (it's just a plugin that outputs bans to an RSS feed (incomplete) but you can see some basic examples of plugin code in there). I have unfortunately been VERY busy at work and unable to complete work on the feed, so anyone wishing to contribute there is welcome to do so.

https://github.com/GameConnect/SourceBans/tree/Feed

Differing files are here:
https://github.com/GameConnect/Sourc...cation/plugins
I have made no edits to main files, at all.

SmackDaddy 07-05-2013 18:46

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
When this goes out of alpha/beta, will there be an upgrade/conversion to 2.x from 1.5?

Rytis 07-05-2013 18:57

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
It would be really cool, if I could use multiply MySQL servers (master and slave(s)) :D

Rytis 07-05-2013 18:58

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by SmackDaddy (Post 1984169)
will there be an upgrade/conversion to 2.x from 1.5?

https://github.com/GameConnect/SourceBans/wiki/Roadmap

OnkelBazi 07-05-2013 19:16

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
when u need someone t translate in german call me ^^

i make the translation for the actually SB

Rytis 07-05-2013 19:21

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by OnkelBazi (Post 1984194)
when u need someone t translate in german call me ^^

i make the translation for the actually SB

There is already an translation :D

EDIT: Aaah, it's not complete, but almost everything is done :)

DJ Tsunami 07-05-2013 20:00

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Peace-Maker did a lot a long time ago, but since then there have been new strings added. You can download the German file and send it when you're done, or fork on GitHub and create a pull request. Use the English file as reference for some original strings.

SmackDaddy 07-05-2013 20:38

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Rytis (Post 1984177)

Ok, thanks. Just didn't want to have to recreate my servers, admins and ban list.....

lyric 07-06-2013 12:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
is it normal for the "View steam profile" link when you right-click on a person to not do anything at all?

Rytis 07-06-2013 14:07

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1984707)
is it normal for the "View steam profile" link when you right-click on a person to not do anything at all?

Yes, https://github.com/GameConnect/Sourc...rk-in-progress

DJ Tsunami 07-07-2013 10:00

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1984707)
is it normal for the "View steam profile" link when you right-click on a person to not do anything at all?

I don't have a public test server, so I can't test if it works.

The Night Fury 07-07-2013 13:44

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Yep, confirming: "view profile" does not work.

ppalex 07-09-2013 01:20

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
guys, can you explain to me why you are using sql query REGEXP for steam-id in the plugin? This is very slow on the large databases.

Peace-Maker 07-10-2013 12:20

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by ppalex (Post 1986772)
guys, can you explain to me why you are using sql query REGEXP for steam-id in the plugin? This is very slow on the large databases.

That's been introduced when proper steam universes were used in the rendered steamid. STEAM_0: vs. STEAM_1:
To be future proof, we just did STEAM_[0-9]:

In SourceBans 1 we couldn't just leave out the STEAM_X: part completely in the database due to legacy reasons, but here we should reconsider that.

ppalex 07-10-2013 15:14

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Peace-Maker (Post 1987751)
That's been introduced when proper steam universes were used in the rendered steamid. STEAM_0: vs. STEAM_1:
To be future proof, we just did STEAM_[0-9]:

In SourceBans 1 we couldn't just leave out the STEAM_X: part completely in the database due to legacy reasons, but here we should reconsider that.

why not get on the use of steamid64? it is independent from the steam universe, in addition, this approach greatly speeds up the database and provides another benefits

FlyingMongoose 07-10-2013 15:29

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by ppalex (Post 1987890)
why not get on the use of steamid64? it is independent from the steam universe, in addition, this approach greatly speeds up the database and provides another benefits


SteamID64 didn't exist when SourceBans 1 was first released. It does seem a more viable option now. The conversions can be handled in plugin code or in PHP code when entering bans. Allowing the user to still place STEAM_X:X:XXX but storing the STEAMID64 instead.

ppalex 07-10-2013 16:26

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Yes. I doesn't talked about "let's change steamid to steamid64 in sourcebans v.1".

Let sourcebans version 1 will remain in history, and 'db scheme' will be done in the best way in second version.

niar82k 07-14-2013 07:52

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Can it be that will not take over the sourceban v1 database? I have specified the database from the v1 but it is not included in the v2.

Peace-Maker 07-14-2013 16:28

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by niar82k (Post 1990602)
Can it be that will not take over the sourceban v1 database? I have specified the database from the v1 but it is not included in the v2.

Quote:

Originally Posted by DJ Tsunami (Post 1981256)
As this is an early preview, there is no upgrade path for SourceBans 1 yet.

If you want to test this now, you have to apply all your settings again manually. If you don't want to do that, wait for the release.

11530 07-14-2013 16:56

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Just throwing this out there, but have you considered renaming this project to something more accurate? This has developed into something much more than just bans so it might do well to have a more appropriate name.

DJ Tsunami 07-14-2013 18:10

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I have, but I'm not that good at coming up with catchy names. Suggestions are welcome. Also, SourceBans is an established name, so to throw that away and start over would need to be a well-considered decision.

Evil_Joker 07-15-2013 14:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I have this problem

/usr/www/users/Evil/framework/YiiBase.php(193)
{
182 if(is_string($config))
183 {
184 $type=$config;
185 $config=array();
186 }
187 elseif(isset($config['class']))
188 {
189 $type=$config['class'];
190 unset($config['class']);
191 }
192 else
193 throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.'));
194
195 if(!class_exists($type,false))
196 $type=Yii::import($type,true);
197
198 if(($n=func_num_args())>1)
199 {
200 $args=func_get_args();
201 if($n===2)
202 $object=new $type($args[1]);
203 elseif($n===3)
204 $object=new $type($args[1],$args[2]);
205 elseif($n===4)

/usr/www/users/Evil/index.php(16): YiiBase::createWebApplication("/usr/www/users/kd11856/application/config/web.php")
11 defined('YII_DEBUG') or define('YII_DEBUG',true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14
15 require_once($yii);
16 Yii::createWebApplication($config)->run();


Can not install

Rytis 07-15-2013 16:55

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Please use the power of the code tags:

PHP Code:

[code


braak0327 07-16-2013 06:41

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
PHP warning

include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

D:\Web\htdocs\sourcebans\framework\YiiBase.ph p(421)

409 {
410 include($classFile);
411 if(YII_DEBUG && basename(realpath($classFile))!==$className.' .php')
412 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413 '{class}'=>$className,
414 '{file}'=>$classFile,
415 )));
416 break;
417 }
418 }
419 }
420 else
+++this line have a red color+++ 421 include($className.'.php');
422 }
423 else // class name with namespace in PHP 5.3
424 {
425 $namespace=str_replace('\\','.',ltrim($classN ame,'\\'));
426 if(($path=self::getPathOfAlias($namespace))!= =false)
427 include($path.'.php');
428 else
429 return false;
430 }
431 return class_exists($className,false) || interface_exists($className,false);
432 }
433 return true;
Stack Trace
#0
+ D:\Web\htdocs\sourcebans\framework\YiiBase.ph p(421): YiiBase::autoload()
#1
unknown(0): YiiBase::autoload("PDO")
#2
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(422): spl_autoload_call("PDO")
#3
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(373): CDbConnection->createPdoInstance()
#4
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(330): CDbConnection->open()
#5
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(469): CDbConnection->setActive(true)
#6
+ D:\Web\htdocs\sourcebans\framework\db\schema\ mysql\CMysqlSchema.php(159): CDbConnection->createCommand("SHOW FULL COLUMNS FROM `sb_settings`")
#7
+ D:\Web\htdocs\sourcebans\framework\db\schema\ mysql\CMysqlSchema.php(119): CMysqlSchema->findColumns(CMysqlTableSchema)
#8
+ D:\Web\htdocs\sourcebans\framework\db\schema\ CDbSchema.php(96): CMysqlSchema->loadTable("sb_settings")
#9
+ D:\Web\htdocs\sourcebans\framework\db\ar\CAct iveRecord.php(2309): CDbSchema->getTable("{{settings}}")
#10
+ D:\Web\htdocs\sourcebans\framework\db\ar\CAct iveRecord.php(387): CActiveRecordMetaData->__construct(SBSetting)
#11
– D:\Web\htdocs\sourcebans\application\models\S BSetting.php(32): CActiveRecord::model("SBSetting")
27 * @param string $className active record class name.
28 * @return SBSetting the static model class
29 */
30 public static function model($className=__CLASS__)
31 {
32 return parent::model($className);
33 }
34
35 /**
36 * @return string the associated database table name
37 */
#12
– D:\Web\htdocs\sourcebans\application\componen ts\SourceBans.php(159): SBSetting::model()
154 public function getSettings()
155 {
156 static $_data;
157 if(!isset($_data))
158 {
159 $_data = (object)CHtml::listData(SBSetting::model()->findAll(), 'name', 'value');
160 }
161
162 return $_data;
163 }
164
#13
+ D:\Web\htdocs\sourcebans\framework\base\CComp onent.php(111): SourceBans->getSettings()
#14
– D:\Web\htdocs\sourcebans\application\componen ts\SourceBans.php(257): CComponent->__get("settings")
252 throw new CHttpException(403, 'Please delete the /install folder.');
253
254 // Set timezone
255 if(!Yii::app()->user->isGuest && !empty(Yii::app()->user->data->timezone))
256 date_default_timezone_set(Yii::app()->user->data->timezone);
257 else if(!empty(SourceBans::app()->settings->timezone))
258 date_default_timezone_set(SourceBans::app()->settings->timezone);
259 else
260 date_default_timezone_set('Europe/London');
261
262 // Set date/time format
#15
unknown(0): SourceBans::onBeginRequest(CEvent)
#16
– D:\Web\htdocs\sourcebans\framework\base\CComp onent.php(556): call_user_func(array("SourceBans", "onBeginRequest"), CEvent)
551 if(is_array($handler))
552 {
553 // an array: 0 - object, 1 - method name
554 list($object,$method)=$handler;
555 if(is_string($object)) // static method call
556 call_user_func($handler,$event);
557 elseif(method_exists($object,$method))
558 $object->$method($event);
559 else
560 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".',
561 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1])));
#17
+ D:\Web\htdocs\sourcebans\framework\base\CAppl ication.php(196): CComponent->raiseEvent("onBeginRequest", CEvent)
#18
+ D:\Web\htdocs\sourcebans\framework\base\CAppl ication.php(167): CApplication->onBeginRequest(CEvent)
#19
+ D:\Web\htdocs\sourcebans\index.php(16): CApplication->run()
2013-07-16 19:28:37 Apache Yii Framework/1.1.13

Fatal error: Class 'PDO' not found in D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php on line 422

why...why!

DJ Tsunami 07-16-2013 06:49

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP.
If you are running a newer version of PHP, ask your webhost why there's no PDO.

Evil_Joker 07-19-2013 19:52

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
This is not running

Yii::createWebApplication($config)->run();

Mata Patos 07-24-2013 15:01

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
1 Attachment(s)
Hello,

I tried to install this version but without success.
In the install page filled all the fields and the end said full installation complete please delete the install folder.
Sending the file logs attached.

Dazzuh 07-24-2013 15:40

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Okay, having a weird problem with installed on nginx. (Recently changed from apache which it worked fine on)
Basically the index loads fine; http://i.imgur.com/8AAQnUh.png
Though if I click any other button on the page, I'm taken to this.

http://i.imgur.com/ghsFA9Y.png

Which is just a messed up version of my /index.php

DJ Tsunami 07-24-2013 15:56

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
There was some discussion on how to get it to work with Nginx on page 8 and 9. There's also a sample host configuration on the Yii framework website.

MrYellow 07-24-2013 17:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I'm guessing this also means that SourceBans 2.0 is actively developed again? As I have heard something about Sourcebans 2.0 not being actively developed.

FlyingMongoose 07-26-2013 01:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by MrYellow (Post 1998013)
I'm guessing this also means that SourceBans 2.0 is actively developed again? As I have heard something about Sourcebans 2.0 not being actively developed.

This is the third complete rewrite of sourcebans 2 since it was started. This is by far the closest to an actual release (no date yet) that SB2 has come, and it also delivers on numerous promises from previous task lists (like web panel plugin support).

It was, for a long time, not being worked on, there were server crashes, loss of task lists, and all kinds of fun little issues that kept popping up. But SB2 is definitely alive and well and actively developed.

We'd love to see more contributors though. Thanks to Yii framework it's easy to learn and add new functionality to SB. Almost all pull requests will be accepted, we want to see it grow!

Warnink 07-27-2013 07:51

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Glad to see this is still being worked on.

I know its not on the roadmap but are there any plans for a amxx plugin so we could have global bans for hlds server's also, or is that just not possible?

DJ Tsunami 07-27-2013 08:06

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Sure it's possible, but you're right that it's not a priority for me to learn amxx scripting to create a SourceBans plugin. Anyone is welcome to write a plugin for it, and if it's well written I would be more than happy to include it in the SourceBans package and give them credit.

Warnink 07-27-2013 09:22

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Fair enough, I can understand that.

FlyingMongoose 07-29-2013 21:51

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1999788)
Sure it's possible, but you're right that it's not a priority for me to learn amxx scripting to create a SourceBans plugin. Anyone is welcome to write a plugin for it, and if it's well written I would be more than happy to include it in the SourceBans package and give them credit.

I will point out though, AMXX has different administrator tables and access permission items. It might take a bit of table redesigning... unless tsunami implemented an engine based access system.

Jstn7477 07-30-2013 03:06

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Are the game plugins included in this release still compatible with SB 1.4.10? Reason I ask is because I have had problems with admins randomly losing authorization ever since that huge TF2 update, e.g. random players lose their chat tags or immunity or the community owner loses their admin even though they are a root admin and that hasn't changed in years. No idea if it's SB's fault, but I'm running the latest SM 1.5.0 build and beta 1.5.0 SB plugins and there are zero error logs or anything for SB. Haven't really gotten anyone to test other servers either as we're lucky to get one filled, but this has been a rather annoying issue.

DJ Tsunami 07-30-2013 10:31

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
The 1.5.0 plugins are the 2.0 plugins for 1.4.10. The only difference is a redesigned database and some additional features. SourceMod 1.5 may authenticate Steam IDs a while later than 1.4 though, maybe something's going wrong there.

Jstn7477 07-30-2013 20:50

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I just recompiled the SB 1.5.0 dev plugins against SM 1.5.0-hg3862 and uploaded them to my server, although I am unsure if it will have any effect on my problem. I'll try to see if I can get more information, as the reports themselves are vague, e.g. "my stuff isn't working." It's definitely a weird problem though with some random admins not having rights while others on the server simultaneously are fine.

braak0327 08-08-2013 01:24

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
[IMG]http://img822.**************/img822/6606/081j.png[/IMG]
Have a problem with "File System Requirements"

why icon and map imange folder have problems?
even /application/config/sourcebans.php this sourcebans.php does not exist in confing folder:cry:


All times are GMT -4. The time now is 11:27.

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