It is currently Sun Aug 01, 2010 6:54 am

All times are UTC + 1 hour [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next
  Print view Previous topic | Next topic 
Author Message
 Post subject: Beta Release: 1.40beta
PostPosted: Wed Oct 08, 2008 10:33 am 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
As of today there is a beta release of the uppcomming new version 1.40.

Please be so kind and download it from here and test it.
http://www.hlstats-community.org/index.php?p=files&m=show&id=40

Any bugs, feedback is welcome and can be posted here.

Help to make things better.

thx
Banana

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Wed Oct 08, 2008 6:20 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
the ingame messages looks good only you have like:
Code:
<[NL] NiceMaps - 24/7 Dust2 only www.nice-maps.nl> abtast is on rank 80 of 80 with 965 points

would be better if the <[NL] NiceMaps - 24/7 Dust2 only http://www.nice-maps.nl> is removed and it have some colour (you probably cant use amx_psay for that) maybe use the hlstatsx ingame plugin that one support the colours

also where to find the sigs on the profile page (or where are they?)
http://site/sig.php?playerId=34 that is not working getting error:
Code:
Error Diagnostic:
Bad query.

Server Error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Last SQL Query:

SELECT address,port,name FROM hlstats2_Servers WHERE `serverId` =


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Wed Oct 08, 2008 8:28 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
First I thank you for download and testing ;-)

what did you set for "RconSay" in hlstats.conf ?

you are sight with the sig, and the idea to display it in the profile would be also good.

well the error is strange, since the serverid is missing.
It gets the serverid from the connect table via the given playerId.
Did this player has an entry in the prefix_Events_Connects ?

hmm it could be not.... the date could have been deleted by the deleteDays limit...

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Wed Oct 08, 2008 9:34 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
Banana wrote:
First I thank you for download and testing ;-)

what did you set for "RconSay" in hlstats.conf ?

you are sight with the sig, and the idea to display it in the profile would be also good.

well the error is strange, since the serverid is missing.
It gets the serverid from the connect table via the given playerId.
Did this player has an entry in the prefix_Events_Connects ?

hmm it could be not.... the date could have been deleted by the deleteDays limit...

RconSay "amx_psay"

sig is working now;) When I tested I was still on the server so there was no entry in the events_connects

http://hlstats.nice-maps.nl/sig.php?playerId=34
it works but the servername is to long so the servername and ip overlap the other text

I think the best for the sig is put the server name and ip on the bottom like the hlstats url on the top, and then add some more player stats on the right of the sig, like headshots, Kills per Death, Weapon Accuracy


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 09, 2008 4:55 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
Quote:
sig is working now;) When I tested I was still on the server so there was no entry in the events_connects

http://hlstats.nice-maps.nl/sig.php?playerId=34
it works but the servername is to long so the servername and ip overlap the other text

I think the best for the sig is put the server name and ip on the bottom like the hlstats url on the top, and then add some more player stats on the right of the sig, like headshots, Kills per Death, Weapon Accuracy

nice.

well this is why it is still beta ;-)
I wil take this in my todo list, thx !

the rcon for the RconSay setting would be:
Code:
&rcon("amx_psay $playerName You are on rank $ranknumber of $totalplayers with $skill points!");

The <[NL etc. is the servername and I don't now how to remove this....
it is added by the server and not by HLStats

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 09, 2008 6:58 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
Banana wrote:
Quote:
sig is working now;) When I tested I was still on the server so there was no entry in the events_connects

http://hlstats.nice-maps.nl/sig.php?playerId=34
it works but the servername is to long so the servername and ip overlap the other text

I think the best for the sig is put the server name and ip on the bottom like the hlstats url on the top, and then add some more player stats on the right of the sig, like headshots, Kills per Death, Weapon Accuracy

nice.

well this is why it is still beta ;-)
I wil take this in my todo list, thx !

the rcon for the RconSay setting would be:
Code:
&rcon("amx_psay $playerName You are on rank $ranknumber of $totalplayers with $skill points!");

The <[NL etc. is the servername and I don't now how to remove this....
it is added by the server and not by HLStats

ye thats why you(or someone else) should make a amxx plugin, or make your script compatible with the hlstatsx amxx plugin, all amxx plugins are open source licence so you can use it http://www.hlstatsx.com/downloads/amxmo ... n_V1.7.zip or change it a little bit.


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 09, 2008 8:58 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
yep this is what we are planing to do.
but until then we have to use existing plugins.

if you know how to improve the existing rcon commands, fell free to contribute.

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Fri Oct 10, 2008 12:17 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
the perl script crashed yesterday night:
error:
Can't call method "get" on an undefined value at ./HLstats_EventHandlers.plib line 316.


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Fri Oct 10, 2008 1:00 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
thx will look at this....

ok try this:
Code:
sub doEvent_Frag
{
        my ($killerId, $victimId, $weapon) = @_;

        my $desc;
        my $killer = $g_players{"$s_addr/$killerId"};
        my $victim = $g_players{"$s_addr/$victimId"};
        my $killerstr = &getPlayerInfoString($killer, $killerId);
        my $victimstr = &getPlayerInfoString($victim, $victimId);

        my $killerdiff;
        my $victimdiff;
        my $kskill;
        my $vskill;

        if ($g_servers{$s_addr}->{numplayers} < $g_minplayers)
        {
                $desc = "(IGNORED) NOTMINPLAYERS: ";
        }
        elsif ($killer && $victim)
        {
                if (!&sameTeam($killer->{team}, $victim->{team}))
                {
                        # Frag

                        &recordEvent(
                                "Frags", 0,
                                $killer->get("playerid"),
                                $victim->get("playerid"),
                                $weapon
                        );

                        $kskill=$killer->get("skill");
                        $vskill=$victim->get("skill");

                        my ($killerskill, $victimskill) = &calcSkill(
                                $killer->get("skill"),
                                $victim->get("skill"),
                                $weapon
                        );


                        $killerdiff = $killerskill - $kskill;
                        $victimdiff = $victimskill - $vskill;

                        $killer->set("skill", $killerskill);
                        $victim->set("skill", $victimskill);

                        $killer->increment("kills");
                        $victim->increment("deaths");

                        $killer->updateDB();
                        $victim->updateDB();

                        if($g_rcon_say eq "admin_psay") {
                                &rcon("admin_command admin_psay $killerstr You got $killerskill\(+$killerdiff\) for killing $victimstr");
                                &rcon("admin_command admin_psay $victimstr You got $victimskill\($victimdiff\) for being killed by $killerstr");

                        }
elsif ($g_rcon_say eq "amx_psay") {
                                &rcon("amx_psay $playerName You are on rank $ranknumber of $totalplayers with $skill points!");

                                &rcon("amx_psay $killerstr You got $killerskill\(+$killerdiff\) for killing $victimstr");
                                &rcon("amx_psay $victimstr You got $victimskill\($victimdiff\) for being killed by $killerstr");
                        }
                }
                else
                {
                        # Teamkill

                        &recordEvent(
                                "Teamkills", 0,
                                $killer->get("playerid"),
                                $victim->get("playerid"),
                                $weapon
                        );

                        $killer->increment("skill", -60);

                        $killer->updateDB();

                        $desc = "TEAMKILL: ";
                }
        }
        else
        {
                $desc = "(IGNORED) NOPLAYERINFO: ";
        }

        return $desc . $killerstr . " killed " . $victimstr . " with \"$weapon\"";
}


replace this with your current "sub doEvent_Frag" function in HLtats_EventHandlers.plib

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Sat Oct 11, 2008 1:13 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
Banana wrote:
thx will look at this....

ok try this:
Code:
sub doEvent_Frag
{
        my ($killerId, $victimId, $weapon) = @_;

        my $desc;
        my $killer = $g_players{"$s_addr/$killerId"};
        my $victim = $g_players{"$s_addr/$victimId"};
        my $killerstr = &getPlayerInfoString($killer, $killerId);
        my $victimstr = &getPlayerInfoString($victim, $victimId);

        my $killerdiff;
        my $victimdiff;
        my $kskill;
        my $vskill;

        if ($g_servers{$s_addr}->{numplayers} < $g_minplayers)
        {
                $desc = "(IGNORED) NOTMINPLAYERS: ";
        }
        elsif ($killer && $victim)
        {
                if (!&sameTeam($killer->{team}, $victim->{team}))
                {
                        # Frag

                        &recordEvent(
                                "Frags", 0,
                                $killer->get("playerid"),
                                $victim->get("playerid"),
                                $weapon
                        );

                        $kskill=$killer->get("skill");
                        $vskill=$victim->get("skill");

                        my ($killerskill, $victimskill) = &calcSkill(
                                $killer->get("skill"),
                                $victim->get("skill"),
                                $weapon
                        );


                        $killerdiff = $killerskill - $kskill;
                        $victimdiff = $victimskill - $vskill;

                        $killer->set("skill", $killerskill);
                        $victim->set("skill", $victimskill);

                        $killer->increment("kills");
                        $victim->increment("deaths");

                        $killer->updateDB();
                        $victim->updateDB();

                        if($g_rcon_say eq "admin_psay") {
                                &rcon("admin_command admin_psay $killerstr You got $killerskill\(+$killerdiff\) for killing $victimstr");
                                &rcon("admin_command admin_psay $victimstr You got $victimskill\($victimdiff\) for being killed by $killerstr");

                        }
elsif ($g_rcon_say eq "amx_psay") {
                                &rcon("amx_psay $playerName You are on rank $ranknumber of $totalplayers with $skill points!");

                                &rcon("amx_psay $killerstr You got $killerskill\(+$killerdiff\) for killing $victimstr");
                                &rcon("amx_psay $victimstr You got $victimskill\($victimdiff\) for being killed by $killerstr");
                        }
                }
                else
                {
                        # Teamkill

                        &recordEvent(
                                "Teamkills", 0,
                                $killer->get("playerid"),
                                $victim->get("playerid"),
                                $weapon
                        );

                        $killer->increment("skill", -60);

                        $killer->updateDB();

                        $desc = "TEAMKILL: ";
                }
        }
        else
        {
                $desc = "(IGNORED) NOPLAYERINFO: ";
        }

        return $desc . $killerstr . " killed " . $victimstr . " with \"$weapon\"";
}


replace this with your current "sub doEvent_Frag" function in HLtats_EventHandlers.plib

no crashes yet ;)


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Sun Oct 12, 2008 8:47 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
fine ;-)

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 23, 2008 1:39 pm 
Newbie
Newbie

Joined: Fri Aug 29, 2008 12:39 pm
Posts: 8
Banana wrote:
fine ;-)

since the steam hl1 engine update the live stats is not working anymore: http://hlstats.nice-maps.nl/index.php?m ... s&server=2

Code:
Warning: fsockopen() [function.fsockopen]: unable to connect to 217.19.17.13:27015 (Connection refused) in /home/nicemaps/domains/nice-maps.nl/public_html/hlstats/hlstatsinc/hlquery_funcs.inc.php on line 506


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 23, 2008 1:44 pm 
Jr. Member
Jr. Member

Joined: Fri Aug 29, 2008 6:29 pm
Posts: 55
Location: U.S.
According to Alfred, one of the devs at VALVe, it appears that HL1-based games are now using the same rcon protocol as the HL2-based games.

This question appeared on the hlds mailing list.

Quote:
>Did you changed something related to the server query? I get no
> response
> from my webscripts

They have flipped to using the Source engine format (documented on the
Source developer wiki if you need details).

_________________
Image

HLstatsX Community Edition


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 23, 2008 4:18 pm 
Newbie
Newbie
User avatar

Joined: Sat Oct 18, 2008 10:46 pm
Posts: 23
Location: Norway
Does the change apply today? If I update my CS 1.6 server it will use HL2 rcon?


Top
 Profile  
 
 Post subject: Re: Beta Release: 1.40beta
PostPosted: Thu Oct 23, 2008 4:20 pm 
Jr. Member
Jr. Member

Joined: Fri Aug 29, 2008 6:29 pm
Posts: 55
Location: U.S.
mats wrote:
Banana wrote:
fine ;-)

since the steam hl1 engine update the live stats is not working anymore: http://hlstats.nice-maps.nl/index.php?m ... s&server=2


Try changing this line in KKrcon.pm
Code:
my %server_types = (new=>1, old=>2, source=>3);

to
Code:
my %server_types = (new=>3, old=>3, source=>3);

and in live_stats.inc.php
Code:
if ($server_details['gametype'] == 73)
{
   $server['source'] = 1;
   $server_details['address'] = $server_ip.':'.$server_port;
}
else {
   $server['source'] = 0;
}

to
Code:
$server['source'] = 1;
$server_details['address'] = $server_ip.':'.$server_port;


If I understood correctly about the protocol change, this should be a quick (albeit dirty) fix.

_________________
Image

HLstatsX Community Edition


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
skymiles v1.1 designed by CodeMiles Team -TemplatesDragon-.