Raised This Month: $ Target: $400
 0% 

Release Legacy SourceBans 1.4.11 (Updated 2014/02/17)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
urus
Senior Member
Join Date: Jan 2007
Old 01-10-2008 , 04:41   Re: SourceBans (1.0.0 RC1d)
#261

Quote:
Originally Posted by ShadoX View Post
Oh great, that'd be fantastic, imo atm that is really the only important bug to crunch, any of the others may be frustrating but this bug is the only one that i know that actually breaks the plugin/system

oh well i'm off to do the daily Sourcemod update rounds on my servers again ><
After several tests with changed query i casually found that after mapchange string ServerIp (and may be ServerPort) don`t properly transfer to query.

I moved this code from InsertServerInfo () to onMapstart () and now all works fine:

Code:
    decl pieces[4];
    new longip = GetConVarInt(CvarHostIp);
    pieces[0] = (longip >> 24) & 0x000000FF;
    pieces[1] = (longip >> 16) & 0x000000FF;
    pieces[2] = (longip >> 8) & 0x000000FF;
    pieces[3] = longip & 0x000000FF;
    FormatEx(ServerIp, sizeof(ServerIp), "%d.%d.%d.%d", pieces[0], pieces[1], pieces[2], pieces[3]);
    GetConVarString(CvarPort, ServerPort, sizeof(ServerPort));
urus is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 01-10-2008 , 05:41   Re: SourceBans (1.0.0 RC1d)
#262

cool i'll give that a try until its officially fixed, cheers
ShadoX is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-10-2008 , 13:00   Re: SourceBans (1.0.0 RC1d)
#263

Quote:
Originally Posted by lamdacore View Post
Olly, do you think there will be still sql database changes in your svn or will you release a stable RC2 some day?

We currently use the RC1 release with some bugfixed things. I know since then there was many sql database structure changes so I decided to update sourcebans not so frequently. Now the database is a little bit filled with data that we won't miss on an update.

I'm afraid of updating because of losing the current data in the database or of not be able of using the main functionallity without errors. So a stable RC2 release would be better for us I think. Or at least if there will not be any database structure changes anymore I can try to convert my database to the current and don't have to deal with that in the future.

What do you think?
The update scripts will not delete data, but it is always recommended to backup your data often, so that if something does go bad you always have a backup ;)

Quote:
Originally Posted by urus View Post
After several tests with changed query i casually found that after mapchange string ServerIp (and may be ServerPort) don`t properly transfer to query.

I moved this code from InsertServerInfo () to onMapstart () and now all works fine:

Code:
    decl pieces[4];
    new longip = GetConVarInt(CvarHostIp);
    pieces[0] = (longip >> 24) & 0x000000FF;
    pieces[1] = (longip >> 16) & 0x000000FF;
    pieces[2] = (longip >> 8) & 0x000000FF;
    pieces[3] = longip & 0x000000FF;
    FormatEx(ServerIp, sizeof(ServerIp), "%d.%d.%d.%d", pieces[0], pieces[1], pieces[2], pieces[3]);
    GetConVarString(CvarPort, ServerPort, sizeof(ServerPort));
Thanks, ill take a look at this tonight
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-10-2008 , 17:10   Re: SourceBans (1.0.0 RC1d)
#264

Some more small bug-fixes and some minor features

This has only been updated in the 1.0.0 RC2 Development release (From http://sourcebans.net/snaps.php)


Changes: - Rev46 -> Rev50
  • Fixed LOOOTS of problems with the installer
  • Removed the ADODB library folder from install dir, now uses the one in the root folder.
  • Removed TinyMCE folder in install dir (no idea why this was there)
  • Added installer check for /themes_c to be writable
  • Added check for missing information on page 5 (setup main admin)
  • Fixed players not showing up in IE (pages load slower, so IE has ruined it for all of us >:/) - http://www.getfirefox.com ;)
  • Fixed small problem when getting info from the PROXY server
  • The Proxy server is now back online, Users who have shit hosts can now query our server to retrieve server, and player data.
  • Added new native (SBBanPlayer) for external plugins to ban through SourceBans
sourcebans.inc
Code:
#if defined _sourcebans_included
  #endinput
#endif
#define _sourcebans_included

public SharedPlugin:__pl_sourcebans = 
{
    name = "SourceBans",
    file = "sourcebans.smx",
    required = 0
};


public __pl_sourcebans_SetNTVOptional()
{
    MarkNativeAsOptional("SBBanPlayer");
}


/*********************************************************
 * Ban Player from server
 *
 * @param client    The client index of the admin who is banning the client
 * @param target    The client index of the player to ban
 * @param time        The time to ban the player for (in minutes, 0 = permanent)
 * @param reason    The reason to ban the player from the server
 * @noreturn        
 *********************************************************/
native SBBanPlayer(client, target, time, String:reason[]);

//Yarr!
sourcebans_sample.sp
Code:
/**
* sourcebans.sp
*
* This file contains all Source Server Plugin Functions
* @author SteamFriends Development Team
* @version 0.0.0.$Rev: 108 $
* @copyright SteamFriends (www.steamfriends.com)
* @package SourceBans
* @link http://www.sourcebans.net
*/

#pragma semicolon 1
#include <sourcemod>
#include <sourcebans>

#undef REQUIRE_PLUGIN
#include <adminmenu>
#include "dbi.inc"

public Plugin:myinfo =
{
    name = "SourceBans Sample Plugin",
    author = "SteamFriends Development Team",
    description = "Sample plugin to show SourceBans functionality",
    version = "1.0.0 RC2",
    url = "http://www.sourcebans.net"
};


public banSample()
{
    new client = 1;
    
    SBBanPlayer(client, client, 5, "Ohnoes i banned myself");
}



Downloads:

The snapshots have been updated, and the links for the updated version are here:

sourcebans_RC2_50-2008-01-10.zip - (6.92 MB)
sourcebans_RC2_50-2008-01-10.tar.gz - (6.30 MB)


Changed files:
M /trunk/changelog.txt
M /trunk/game_upload/addons/sourcemod/plugins/sourcebans.smx
A /trunk/game_upload/addons/sourcemod/plugins/sourcebans_sample.smx
A /trunk/game_upload/addons/sourcemod/scripting/include
A /trunk/game_upload/addons/sourcemod/scripting/include/sourcebans.inc
M /trunk/game_upload/addons/sourcemod/scripting/sourcebans.sp
A /trunk/game_upload/addons/sourcemod/scripting/sourcebans_sample.sp
M /trunk/web_upload/includes/CServerInfo.php
M /trunk/web_upload/pages/page.servers.php
M /trunk/web_upload/themes/default/page_servers.tpl
D /trunk/web_upload/install/includes/adodb
M /trunk/web_upload/install/includes/css.php
D /trunk/web_upload/install/includes/tinymce
M /trunk/web_upload/install/init.php
M /trunk/web_upload/install/scripts/sourcebans.js
M /trunk/web_upload/install/template/content.header.php
M /trunk/web_upload/install/template/footer.php
M /trunk/web_upload/install/template/header.php
M /trunk/web_upload/install/template/page.2.php
M /trunk/web_upload/install/template/page.3.php
M /trunk/web_upload/install/template/page.4.php
M /trunk/web_upload/install/template/page.5.php

[ m = Modified - D = Deleted - A = Added ]


Once again (just to bump the link) could you please post bugs, and requests here (http://sourcebans.net/bugs/index.php?project=2)

Keep Bannin`

Olly
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!

Last edited by Olly; 01-10-2008 at 17:14.
Olly is offline
Send a message via MSN to Olly
ShadoX
Junior Member
Join Date: Jul 2006
Old 01-11-2008 , 03:58   Re: SourceBans (1.0.0 RC1d)
#265

nice one

Though does any of this fix the sid problem? Do you want me to open a bug report
ShadoX is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-11-2008 , 07:55   Re: SourceBans (1.0.0 RC1d)
#266

Quote:
Originally Posted by ShadoX View Post
nice one

Though does any of this fix the sid problem? Do you want me to open a bug report
No this still doesnt fix the SID problem, i need to think about how the best way of fixing it will be
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
ShadoX
Junior Member
Join Date: Jul 2006
Old 01-11-2008 , 08:05   Re: SourceBans (1.0.0 RC1d)
#267

Ah...right, well i've found a very temp fix that doesn't need any coding changes

Just go into your database, go to sb_bans, edit the sid field and allow it to be null, easy fix

Only thing is every ban will come up as a web ban, but personally i'd rather it say web ban on all new bans then not have then actually ban at all
ShadoX is offline
W][LDF][RE
Member
Join Date: Nov 2007
Location: Virginia,USA
Old 01-11-2008 , 10:44   Re: SourceBans (1.0.0 RC1d)
#268

Just wanted to say thanks Olly for your continued efforts. You could have walked away from this project and been like ohh well. You are da man!!
W][LDF][RE is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-11-2008 , 14:15   Re: SourceBans (1.0.0 RC1d)
#269

Quote:
Originally Posted by ShadoX View Post
Ah...right, well i've found a very temp fix that doesn't need any coding changes

Just go into your database, go to sb_bans, edit the sid field and allow it to be null, easy fix

Only thing is every ban will come up as a web ban, but personally i'd rather it say web ban on all new bans then not have then actually ban at all
Yea that would work, but that wasnt the fix I had in-mind

Quote:
Originally Posted by W][LDF][RE View Post
Just wanted to say thanks Olly for your continued efforts. You could have walked away from this project and been like ohh well. You are da man!!
Thanks
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 01-11-2008 , 17:03   Re: SourceBans (1.0.0 RC1d)
#270

BIG THANK YOU FOR YOUR LATEST UPDATE(S)

Manni is offline
Send a message via ICQ to Manni
Closed Thread



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 13:01.


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