Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO/TF2] shavit's bhoptimer (v2.5.5a 08/August/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 09-26-2015 , 12:48   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #221

Regarding the crashes with the bot:
For me, SetClientName (as found here https://github.com/shavitush/bhoptim...replay.sp#L226) was the problem, as the crash dump suggests:

Code:
Program terminated with signal 11, Segmentation fault.
#0  0xf60b0bcf in CBaseServer::GetClient(int) () from /gameserver/csgo/setup_surf/bin/engine.so
#0  0xf60b0bcf in CBaseServer::GetClient(int) () from /gameserver/csgo/setup_surf/bin/engine.so
#1  0xeca6c64a in SetClientName(SourcePawn::IPluginContext*, int const*) () from ..
Changing that code so it writes to gS_BotName (instead of changing the name directly) and waiting for the timer to update the bot's name worked for me.
__________________
Stopped hosting servers as of November 2018, no longer active around here.

Last edited by pcmaster; 09-26-2015 at 12:49.
pcmaster is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-26-2015 , 15:36   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #222

Quote:
Originally Posted by pcmaster View Post
Regarding the crashes with the bot:
For me, SetClientName (as found here https://github.com/shavitush/bhoptim...replay.sp#L226) was the problem, as the crash dump suggests:

Code:
Program terminated with signal 11, Segmentation fault.
#0  0xf60b0bcf in CBaseServer::GetClient(int) () from /gameserver/csgo/setup_surf/bin/engine.so
#0  0xf60b0bcf in CBaseServer::GetClient(int) () from /gameserver/csgo/setup_surf/bin/engine.so
#1  0xeca6c64a in SetClientName(SourcePawn::IPluginContext*, int const*) () from ..
Changing that code so it writes to gS_BotName (instead of changing the name directly) and waiting for the timer to update the bot's name worked for me.
Thanks for the information!
I updated the repository: https://github.com/shavitush/bhoptim...9bd50c01828ec7

Some information:
This crash does not happen on Windows, only on Linux.
__________________
retired
shavit is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 09-27-2015 , 07:58   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #223

How to block respawn terrorists in this zone?
Qes is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 09-27-2015 , 12:11   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #224

Np, now the only problem is that the bot is quite laggy (due to fully teleporting it).
This isn't really a problem on BHOP I presume, but on Surf, it's quite annoying.

Nothing for you to fix here (unless you want to), just wanted to point it out.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-27-2015 , 20:55   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #225

Quote:
Originally Posted by Qes View Post
How to block respawn terrorists in this zone?
I have no idea what you're trying to do

Quote:
Originally Posted by pcmaster View Post
Np, now the only problem is that the bot is quite laggy (due to fully teleporting it).
This isn't really a problem on BHOP I presume, but on Surf, it's quite annoying.

Nothing for you to fix here (unless you want to), just wanted to point it out.
I also noticed it but I can't find a fix sadly
__________________
retired
shavit is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 09-29-2015 , 09:55   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #226

If you want to block respawn for the TT, you have to change these functions in shavit-zones.sp

Quote:
public void Shavit_OnRestart(int client)
{
if(!IsFakeClient(client) && !EmptyZone(gV_MapZones[0][0]) && !EmptyZone(gV_MapZones[0][1]) && GetClientTeam(client) == 3)
{
float vCenter[3];
MakeVectorFromPoints(gV_MapZones[0][0], gV_MapZones[0][1], vCenter);

vCenter[0] /= 2;
vCenter[1] /= 2;
vCenter[2] /= 2;

vCenter[2] -= 20;

AddVectors(gV_MapZones[0][0], vCenter, vCenter);

TeleportEntity(client, vCenter, NULL_VECTOR, view_as<float>({0.0, 0.0, 0.0}));
}
}


Anyone know how to remove the bot from the game, or simply move it to the team instead of CT or TT preferably spect?

Last edited by Qes; 09-29-2015 at 09:55.
Qes is offline
schwarz
Senior Member
Join Date: Nov 2011
Location: under your bed
Old 09-29-2015 , 14:10   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #227

well at first you do good job for this plugin ,

I tired transfer sql programm from ofir753 , but this don t work , i think .

At first i click it and new file sql wrote only :

CREATE DATABASE IF NOT EXISTS shavit;

USE shavit;

CREATE TABLE IF NOT EXISTS `users` (`auth` VARCHAR(32) NOT NULL, `name` VARCHAR(32), `country` VARCHAR(45), `ip` VARCHAR(32), PRIMARY KEY (`auth`));

CREATE TABLE IF NOT EXISTS `mapzones` (`id` INT AUTO_INCREMENT, `map` VARCHAR(12, `type` INT, `corner1_x` FLOAT, `corner1_y` FLOAT, `corner1_z` FLOAT, `corner2_x` FLOAT, `corner2_y` FLOAT, `corner2_z` FLOAT, PRIMARY KEY (`id`));

CREATE TABLE IF NOT EXISTS `playertimes` (`id` INT NOT NULL AUTO_INCREMENT, `auth` VARCHAR(32), `map` VARCHAR(12, `time` FLOAT, `jumps` VARCHAR(32), `style` VARCHAR(32), `date` DATE, PRIMARY KEY (`id`));


INSERT INTO `users` (`auth`,`name`,`country`,`ip`) VALUES;

that is all . where are maps , zone etc? thanks !
__________________
schwarz is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-30-2015 , 16:13   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #228

Quote:
Originally Posted by Qes View Post
If you want to block respawn for the TT, you have to change these functions in shavit-zones.sp





Anyone know how to remove the bot from the game, or simply move it to the team instead of CT or TT preferably spect?
unload shavit-replay
__________________
retired
shavit is offline
ybgr111
Junior Member
Join Date: Mar 2015
Old 10-01-2015 , 09:44   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #229

Help pls
L 10/01/2015 - 16:05:04: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:05:13: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'r.map' in 'where clause'
L 10/01/2015 - 16:06:13: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:06:14: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR forwards cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR sideways cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR OnFinish) SQL query failed. Reason: Unknown column 'auth' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR forwards cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR sideways cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR OnFinish) SQL query failed. Reason: Unknown column 'auth' in 'field list'
ybgr111 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 10-01-2015 , 13:20   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #230

Quote:
Originally Posted by ybgr111 View Post
Help pls
L 10/01/2015 - 16:05:04: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:05:13: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'r.map' in 'where clause'
L 10/01/2015 - 16:06:13: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:06:14: [shavit-stats.smx] Timer (ShowMaps SELECT) SQL query failed. Reason: Unknown column 'map' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR forwards cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR sideways cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:07:48: [shavit-wr.smx] Timer (WR OnFinish) SQL query failed. Reason: Unknown column 'auth' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR forwards cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR sideways cache update) SQL query failed. Reason: Unknown column 'p.time' in 'field list'
L 10/01/2015 - 16:08:14: [shavit-wr.smx] Timer (WR OnFinish) SQL query failed. Reason: Unknown column 'auth' in 'field list'
Execute this query on your MySQL server

Code:
CREATE TABLE IF NOT EXISTS `playertimes` (`id` INT NOT NULL AUTO_INCREMENT, `auth` VARCHAR(32), `map` VARCHAR(128), `time` FLOAT, `jumps` VARCHAR(32), `style` VARCHAR(32), `date` DATE, PRIMARY KEY (`id`));
__________________
retired
shavit is offline
Reply



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


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