Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer (zone refresh) SQL query failed. #23

Closed
ghost opened this issue Apr 20, 2016 · 21 comments
Closed

Timer (zone refresh) SQL query failed. #23

ghost opened this issue Apr 20, 2016 · 21 comments
Assignees

Comments

@ghost
Copy link

ghost commented Apr 20, 2016

[shavit-zones.smx] Timer (zone refresh) SQL query failed. Reason: Table 'bhop.mapzones' doesn't exist.

need help

@ghost
Copy link
Author

ghost commented Apr 20, 2016

L 04/20/2016 - 18:02:13: [shavit-zones.smx] Timer (zones module) error! Map zones' table creation failed. Reason: 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

@shavitush
Copy link
Owner

Did you locally compile the .sp files from this repository?

@ghost
Copy link
Author

ghost commented Apr 21, 2016

yes

@shavitush
Copy link
Owner

Could you change the value of shavit_core_sqlprefix in cfg/sourcemod/plugin.shavit-core.cfg to something else and try again?

@ghost
Copy link
Author

ghost commented Apr 22, 2016

the same

@shavitush
Copy link
Owner

shavitush commented Apr 22, 2016

Alright, set shavit_core_sqlprefix to the default value and for now run this query on your database.

CREATE TABLE IF NOT EXISTS `mapzones` (`id` INT AUTO_INCREMENT, `map` VARCHAR(128), `type` INT, `corner1_x` FLOAT, `corner1_y` FLOAT, `corner1_z` FLOAT, `corner2_x` FLOAT, `corner2_y` FLOAT, `corner2_z` FLOAT, `rot_ang` FLOAT NOT NULL default 0, `fix1_x` FLOAT NOT NULL default 0, `fix1_y` FLOAT NOT NULL default 0, `fix2_x` FLOAT NOT NULL default 0, `fix2_y` FLOAT NOT NULL default 0, PRIMARY KEY (`id`));

As I'm not sure what is the cause of it for now.

@ghost
Copy link
Author

ghost commented Apr 23, 2016

still have the error.but i dont mind it, thank you for your help.

@ghost ghost closed this as completed Apr 23, 2016
@shavitush shavitush reopened this Apr 23, 2016
@shavitush
Copy link
Owner

Just wanted to tell you that I attempted to fix this issue because I found the cause.

Could you try to recompile the whole timer and try again?

@ghost
Copy link
Author

ghost commented Apr 24, 2016

Ha,no more error.

@ghost
Copy link
Author

ghost commented Apr 24, 2016

[shavit-replay] Line 147 CS_SetClientContributionScore(gI_ReplayBotClient[i], 2000)
it doesn't work in cs:s.

@shavitush
Copy link
Owner

Pushed an update to shavit-replay.sp

@ghost
Copy link
Author

ghost commented Apr 24, 2016

Could you make a wait time before start replaying?

sorry for troubling you so much ;)

@shavitush
Copy link
Owner

Will be added on next update I guess :)

On Sun, Apr 24, 2016 at 7:54 AM, Skyline23 notifications@github.com wrote:

Could you make a wait time before start replaying?

sorry for troubling you so much ;)


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#23 (comment)

@shavitush
Copy link
Owner

Done! Need anything else?

@ghost
Copy link
Author

ghost commented Apr 25, 2016

No more,Thank you so much!


ehh.i found when no mapzones in map type "!r" will start timer.

can you fix it?

@ghost ghost closed this as completed Apr 25, 2016
@ghost ghost reopened this Apr 25, 2016
@shavitush
Copy link
Owner

Delete cfg/sourcemod/plugin.shavit-misc.cfg
Delete cfg/sourcemod/plugin.shavit-zones.cfg

Reconfigure them, there are new cvars

@ghost
Copy link
Author

ghost commented Apr 25, 2016

@shavitush
Copy link
Owner

I have actually had a similar issue with zones not loading, give it another try after recompiling everything.

Do you have any error logs?

@ghost
Copy link
Author

ghost commented Apr 26, 2016

No....

@shavitush
Copy link
Owner

Alright I'll take a look when I get home (2 days)
On Apr 26, 2016 06:46, "Skyline23" notifications@github.com wrote:

No....


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#23 (comment)

@shavitush shavitush self-assigned this Apr 27, 2016
@shavitush
Copy link
Owner

So I didn't understand exactly what your issue was, I tested it in-game and now I see!

I fixed it. I even added a new cvar, but the default setting will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant