AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Climb (https://forums.alliedmods.net/showthread.php?t=56826)

ian.cammarata 06-21-2007 20:23

Climb
 
2 Attachment(s)
Climb v2.0a3
6/21/2007

You can get nightly builds, change logs, cvars and requirement list as well as a donation link to support this project on my site at:
http://ian.cammarata.us/projects/climb

Description:
This plugin is designed for use in kz / climbing maps like those available from www.kreedz.com. Maps also available at http://xtreme-jumps.eu and http://1337bunnies.com.


See it in Action:
Use the following link to find a server that's running this plugin:
http://www.game-monitor.com/search.p...ll&country=all


Features:
Checkpoints
Individual Timers - Displayed using HUD round timer
Semi-clip
Boosts - 3 types
High scores ( SQLite / MySQL 4.1 or higher)
Bot - Prevents round from ending.
Spectator mode - See timer and messages of client you're spectating
Rewards System - Customizable with an ini file.
Flashlight - Replaces normal flashlight and NVG.
Auto Heal - Adapts to each map to make the experience as close to normal as possible.
Tons of other little odds and ends.


Commands:
A full set of help pages can be found at:
http://ian.cammarata.us/projects/cli...a3/en/commands
These pages are also available in game by using the chat command /climbhelp.


Notes:
I highly recommend using All Chat along with this plugin:
http://forums.alliedmods.net/showthread.php?t=56825

DF Hook Frontend plugin is included with this plugin, but still requires the Hookmod from AdminOP:
http://www.adminop.net/modules.php?n...ok_Mod_Windows

WebMod has a critical security flaw, and I can no longer recommend that anyone use it. The nightly build 2.0a3.4.20 has optimized html for the scoreboard and no longer needs WebMod to get a full listing. I recommend that everyone uninstall WebMod as soon as possible, this security flaw allows people to very easily crash your server, and with sufficient knowledge, they can even take control of the system on which your game server is running.

Credits:
Borrowed some code from Space Headed's bot_api.sma

flyeni6 06-21-2007 20:24

Re: Climb
 
nice work :)

vittu 06-21-2007 20:38

Re: Climb
 
Quote:

c: Players don't spawn with scout or c4 anymore.
Why would you not spawn players with a scout? It is the fastest weapon to run with no other weapon allows a max speed of 260 as the scout does.


players aren't smart enough to /scout

ian.cammarata 06-21-2007 20:44

Re: Climb
 
Quote:

Originally Posted by vittu (Post 493071)
Why would you not spawn players with a scout? It is the fastest weapon to run with no other weapon allows a max speed of 260 as the scout does.


players aren't smart enough to /scout

In the last month since I made this change on the two servers where I run nightly builds, people didn't have any trouble picking up the change. It significantly reduces the amount of lag when a player respawns, which is important on maps where people can repeatedly kill themselves easily. Also it is going to make my life easier when I rewrite the high scores system.

If a server admin wants the scout given automatically, they can still implement it easily through the climb.ini and a plugin that can give weapons.

Lola 06-22-2007 15:35

Re: Climb
 
Great plugin. I love it!!!

lassiter 06-25-2007 20:51

Re: Climb
 
awsome plugin the only thing I am having a problem with is when I type register in console nothing happens. I am not sure how to get the stats to save to the server. I am still working on it but if you or anyone could help me it would make it go faster I am sure. Thanks and again awsome plugin.

ian.cammarata 06-25-2007 21:21

Re: Climb
 
Quote:

Originally Posted by lassiter (Post 494685)
awsome plugin the only thing I am having a problem with is when I type register in console nothing happens. I am not sure how to get the stats to save to the server. I am still working on it but if you or anyone could help me it would make it go faster I am sure. Thanks and again awsome plugin.

Make sure you enable a database module. If you are using sqlite then you shouldn't need to change any cvars, if you're using mysql, you'll have to change most of the db related cvars. There are some bugs with the stats system, mainly one where random people can't register and account. I am going to rewrite the high scores system in the next release of the plugin, and fix all the problems.

lassiter 07-06-2007 15:12

Re: Climb
 
I know you are working on the scoring system but I thought I should point out that when I type scores it only shows 6 of the 11 players in the server. Plugin is running great still waiting on scoring system and registering system.

ian.cammarata 07-06-2007 20:12

Re: Climb
 
Quote:

Originally Posted by lassiter (Post 499657)
I know you are working on the scoring system but I thought I should point out that when I type scores it only shows 6 of the 11 players in the server. Plugin is running great still waiting on scoring system and registering system.

Only showing some of the players is intentional. The HL engine has a limit of 1530 bytes for a single message. In previous versions, I got around the limit by displayed scores in the console if the server didn't have WebMod installed. A few versions ago I updated it to how it is now, but also had to link to a css file on my web server to manage to fit enough to make it usable. If you want to always get a full listing, install WebMod. I'll add a note about it on the main post.

http://djeyl.net/w.php

lassiter 07-08-2007 19:44

Re: Climb
 
I had to comment out the stop command in the plugin cause players would press the start button then type stop and it would give them most of the prizes when they did it.
of course it was admin testing it. I will put it back the way it was and try again to see if it works for normal players.

Update: Never mind it is only admins who can do this.

ian.cammarata 07-08-2007 20:41

Re: Climb
 
Quote:

Originally Posted by lassiter (Post 500805)
I had to comment out the stop command in the plugin cause players would press the start button then type stop and it would give them most of the prizes when they did it.
of course it was admin testing it. I will put it back the way it was and try again to see if it works for normal players.


Admins get prizes by default, as soon as they connect. Non-admins should have to actually press the finish button to get them. If a player has earned the prizes, and they start their timer again, the stop command will give the prizes back again. If it's not working like it's supposed to please let me know.

GalN 07-11-2007 20:48

Re: Climb
 
Great Plugin!!
Good Job!!!!!

But...
There is a way to use this plugin for AMXX 1.75a?

Thanks alot!

lassiter 07-11-2007 22:51

Re: Climb
 
No problems at all. Plugin is running smooth.
http://www.game-monitor.com/search.p...ll&country=all
look for XXL. It is real easy to configure and setup other plugins to run with it. I am still working on the score thing.

ian.cammarata 07-12-2007 01:26

Re: Climb
 
Quote:

Originally Posted by GalN (Post 502254)
There is a way to use this plugin for AMXX 1.75a?

No, the code relies on a few functions that weren't added until AMXX 1.76, so it can't run on lower version without replicating those functions.

lassiter 07-22-2007 21:46

Re: Climb
 
is it possible to set the top 15 like this
http://forums.alliedmods.net/showthread.php?p=64594

but without saving checkpoint where the start and stop buttons are located? The top 15 on this seems easier to use. It also saves the top 15 the only bug I could find on it is if a player is faceing away from the start button they can cheat the top 15. if it did not save locations of the start button then cheating it would be impossible.

ian.cammarata 07-22-2007 23:17

Re: Climb
 
Quote:

Originally Posted by lassiter (Post 506774)
is it possible to set the top 15 like this
http://forums.alliedmods.net/showthread.php?p=64594

but without saving checkpoint where the start and stop buttons are located? The top 15 on this seems easier to use. It also saves the top 15 the only bug I could find on it is if a player is faceing away from the start button they can cheat the top 15. if it did not save locations of the start button then cheating it would be impossible.

My plugin also saves scores and there is a separate scoreboard for them. I am currently in the process of rewriting most of the scoreboard and it will be a lot simpler. Other than that, I'm not familiar with any other timer plugins, so if you want a feature from that, you'll have to be more specific.

Guenhwyvar 07-23-2007 06:50

Re: Climb
 
Looks awesome, great job!

IMHO, to make it more "pure kreedz", the hp boosters/buttons should be usable (if existant).

Unfortunately I'm running some kreedz servers on old amd64 machines with AMXX 1.75 (and I can't upgrade, but that's another story..) :(.

ian.cammarata 07-23-2007 13:49

Re: Climb
 
Quote:

Originally Posted by Guenhwyvar (Post 506920)
Unfortunately I'm running some kreedz servers on old amd64 machines with AMXX 1.75 (and I can't upgrade, but that's another story..) :(.


Actually, I told the other guy it wouldn't work on 1.75. I know it won't compile with the 1.75 release files, but there's a slim chance that you might be able to load the already compiled amx file. Might work as long as the one function I know that is missing (sort) from 1.75 is implemented completely in the includes, and not part of the dlls.

drunkenbusdriver 07-29-2007 11:58

Re: Climb
 
Could you be a little more specific on how I would get the scores to save? Would it be possible to save them on the server vault style, or would I have to install WebMod? Thanks!

BTW great plugin! Best KZ plugin out there by far.

ian.cammarata 07-29-2007 20:00

Re: Climb
 
Quote:

Originally Posted by drunkenbusdriver (Post 509765)
Could you be a little more specific on how I would get the scores to save? Would it be possible to save them on the server vault style, or would I have to install WebMod? Thanks!

BTW great plugin! Best KZ plugin out there by far.


WebMod only allows you to display a full scoreboard, without getting limited by the message limit of half-life.

I am not going support saving with vault, because using SQLite provides dozens of advantages over vault, and no disadvantages. SQLite creates a database file in the 'amxmodx/data/sqlite3/' folder, and doesn't require a remote database server like MySQL, which is also an option.

To enable saving change the cvar 'climb_save' to 1, and enable the module 'sqlite' in your modules.ini. Thats all it should take to get it to save. If you're gonna use MySQL however, you'll need to modify the climb_db_... cvars.

buzzumfrog 08-02-2007 18:28

Re: Climb
 
Oh I'm sorry. I thought this was Allied Toddlers. I was looking for a famous Cammarata toddler rub down.

masa 08-08-2007 17:30

Re: Climb
 
Hello Climbers ^^

I have a lil problem. with this plugin!
The sql connection doesnt work!

The seetings on the server ar correct! ( can connect whit the same settings from console to the db)
There still the same lines in the console
Code:

L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.

I get no output if the plugin is running in degugMode???
/cstrike/addons/amxmodx/logs is empty
Code:

Currently loaded plugins:
      name                    version  author            file            status
 [  1] AmxBans Admin Base      1.76d    AMXX Dev Team    admin_amxbans.a  running
 [  2] AMXBans                5.0      YoMama/Lux & lan  amxbans.amxx    running
 [  3] Admin Commands          1.76d    AMXX Dev Team    admincmd.amxx    running
 [  4] Slots Reservation      1.76d    AMXX Dev Team    adminslots.amxx  running
 [  5] Multi-Lingual System    1.76d    AMXX Dev Team    multilingual.am  running
 [  6] Menus Front-End        1.76d    AMXX Dev Team    menufront.amxx  running
 [  7] Players Menu            1.76d    AMXX Dev Team    plmenu.amxx      running
 [  8] Maps Menu              1.76d    AMXX Dev Team    mapsmenu.amxx    running
 [  9] Admin Chat              1.76d    AMXX Dev Team    adminchat.amxx  running
 [ 10] Anti Flood              1.76d    AMXX Dev Team    antiflood.amxx  running
 [ 11] Scrolling Message      1.76d    AMXX Dev Team    scrollmsg.amxx  running
 [ 12] Admin Votes            1.76d    AMXX Dev Team    adminvote.amxx  running
 [ 13] NextMap                1.76d    AMXX Dev Team    nextmap.amxx    running
 [ 14] Nextmap Chooser        1.76d    AMXX Dev Team    mapchooser.amxx  running
 [ 15] TimeLeft                1.76d    AMXX Dev Team    timeleft.amxx    running
 [ 16] Climb                  a3.4.16  Ian Cammarata    climb.amxx      debug

The last version 2.0a3.4.16 didnt solved the problem. ( version 2_0_a3 is the same)

the CS-Server has a connection to the DB (sql.cfg, amxbans it works!)
this c-vars are in the server.cfg
Code:


climb 1
climb_save 1
climb_boost 1
climb_start_respawn 1
climb_db_host localhost # climb_db_host 127.0.0.1 # the same!
climb_db_type mysql
climb_db_user USER
climb_db_pass userPW
climb_db_name dbName
climb_webmod 0
climb_stats_path "addons/amxmodx/configs/commands/html"
climb_stats_url "http://xxxxxx"

more info
Code:

meta list
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX Mod X        RUN  -    amxmodx_mm_i386.  v1.76d    ini  ANY  ANY
 [ 2] MySQL            RUN  -    mysql_amxx_i386.  v1.76b    pl1  ANY  ANY
 [ 3] CStrike          RUN  -    cstrike_amxx_i38  v1.76    pl1  ANY  ANY
 [ 4] Fun              RUN  -    fun_amxx_i386.so  v1.76    pl1  ANY  ANY
 [ 5] Engine          RUN  -    engine_amxx_i386  v1.76    pl1  ANY  ANY
 [ 6] FakeMeta        RUN  -    fakemeta_amxx_i3  v1.76d    pl1  ANY  ANY
6 plugins, 6 running

I dont understand it, if i change the logindata to the same like the amxbans it doesnt work to, but amxbans get the connection why ???

pls help

masa 08-08-2007 17:37

Re: Climb
 
maybe the mysql.sock problem ???

But the plugin is using mysql_amx, and it works for other plugins!

Im confused :-(

ian.cammarata 08-08-2007 20:06

Re: Climb
 
Quote:

Originally Posted by masa (Post 514713)
I have a lil problem. with this plugin!
The sql connection doesnt work!

The seetings on the server ar correct! ( can connect whit the same settings from console to the db)
There still the same lines in the console
Code:

L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.
L 08/08/2007 - 23:05:12: [climb.amxx] Climb: Couldn't connect to database.

I get no output if the plugin is running in degugMode???
/cstrike/addons/amxmodx/logs is empty

The only thing I can think of off the top of my head is to check and see if the the Schema (Database / table container) with the name dbName has been created, because the plugin doesn't actually do that itself.

lassiter 08-08-2007 23:13

Re: Climb
 
I get this when I finish the map.
[Climb] DB Registration Error: Please notify a server admin.

when I type register it says unknown command.
I am still working on the db.

also what does sct in the scoreboard stand for?

ian.cammarata 08-09-2007 01:44

Re: Climb
 
Quote:

Originally Posted by lassiter (Post 514990)
I get this when I finish the map.
[Climb] DB Registration Error: Please notify a server admin.

when I type register it says unknown command.
I am still working on the db.

also what does sct in the scoreboard stand for?

sct is scout, means they used it while their timer was running.

If you're using the nightly build on my site, the registration commands are disabled. Also if you are using a database from the 2.0a3 release, the registration bug in that version can screw up the database and keep registration from working with the nightly build. Try clearing all the records in the users table that have a password value of 'shared', and if that doesn't work, you might need to truncate the whole database for it to function correctly again.

If you're using SQLite you can modify your database with this utility:
http://sourceforge.net/projects/sqlitebrowser/

masa 08-09-2007 10:31

Re: Climb
 
Quote:

Originally Posted by ian.cammarata (Post 514851)
The only thing I can think of off the top of my head is to check and see if the the Schema (Database / table container) with the name dbName has been created, because the plugin doesn't actually do that itself.

Its real mystical, yesterday the db was empty no tables inside!
But today i checked the db and the db-tables are there, and it seems to work.
The plugin created them!

I finished a map the stats were stored!

After server restart no connection to the db?

any idea?

masa 08-09-2007 10:53

Re: Climb
 
the plugin itself created this tables in the db:

Code:

CREATE TABLE `climb_players` (
  `user_id` int(11) NOT NULL auto_increment,
  `steam_id` char(25) default NULL,
  `password` char(6) default NULL,
  `user_name` varchar(20) default NULL,
  `alias` varchar(32) default NULL,
  `email` varchar(50) default NULL,
  `cflags` int(11) default NULL,
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `steam_id` (`steam_id`),
  UNIQUE KEY `user_name` (`user_name`),
  UNIQUE KEY `alias` (`alias`),
  UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Tabellenstruktur für Tabelle `climb_scores`
--

CREATE TABLE `climb_scores` (
  `score_id` int(11) NOT NULL auto_increment,
  `score` int(11) default NULL,
  `server_ip` char(15) default NULL,
  `user_id` int(11) default NULL,
  `map_name` varchar(32) default NULL,
  `fin_time` int(11) default NULL,
  `cps` int(11) default NULL,
  `gcs` int(11) default NULL,
  `fin_cnt` int(11) default NULL,
  `boosts` int(11) default NULL,
  `wpns` int(11) default NULL,
  `server_time_stamp` int(11) default NULL,
  PRIMARY KEY  (`score_id`),
  UNIQUE KEY `scores_usermap_idx` (`user_id`,`map_name`),
  KEY `scores_score` (`score`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Tabellenstruktur für Tabelle `climb_sessions`
--

CREATE TABLE `climb_sessions` (
  `steam_id` char(25) NOT NULL,
  `user_id` int(11) default NULL,
  PRIMARY KEY  (`steam_id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


ColdBlood 08-09-2007 13:21

Re: Climb
 
hey idk what the problem is but. when more then one person joins the server it says
"too many cts"
and only allows 1 person to join the game and play

masa 08-09-2007 13:41

Re: Climb
 
Quote:

Originally Posted by ColdBlood (Post 515329)
hey idk what the problem is but. when more then one person joins the server it says
"too many cts"
and only allows 1 person to join the game and play

try disable "mp_autoteambalance"
put this in your server.cfg At the end
Code:

mp_autoteambalance 0

ColdBlood 08-09-2007 13:45

Re: Climb
 
the thing is... its already off.... and it wont let any1 else join.


the team chooser just keeps flashing and it says theirs too many cts! and wont let u join the game.

X-Script 08-09-2007 14:04

Re: Climb
 
What other plugins are you running? Paste your plugins.ini file.

FLiP 08-09-2007 15:00

Re: Climb
 
like masa said put ( mp_autoteambalance "0" ) but also include ( mp_limitteams "0" ) you should put these lines in either server.cfg or it would be better if you put them in maps/ kz____ .cfg

masa 08-09-2007 15:42

Re: Climb
 
now i found the output from debug mode :
Quote:

L 08/09/2007 - 18:41:15: Start of error session.
L 08/09/2007 - 18:41:15: Info (map "kz_beginner") (logfile "error_080907.log")
L 08/09/2007 - 18:41:15: [MySQL] Invalid info tuple handle: 0
L 08/09/2007 - 18:41:15: [AMXX] Displaying debug trace (plugin "climb.amxx")
L 08/09/2007 - 18:41:15: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 08/09/2007 - 18:41:15: [AMXX] [0] climb.sma::highscores (line 2106)
L 08/09/2007 - 18:41:15: [AMXX] [1] climb.sma::client_command (line 1741)
what does it mean ???

ian.cammarata 08-09-2007 17:52

Re: Climb
 
Quote:

Originally Posted by masa (Post 515406)
now i found the output from debug mode :
what does it mean ???

That means that the handle for the database is non existant. The only thing I can think of that might cause this is if the database server closes the connection, and db module doesn't reopen it.

Does it happen all the time, or was it a one time thing?

My guess is it has something to do with the settings on your database server. If you can, enable persistent connections. All the other plugins you have that use the database don't use threaded queries (I don't think amx bans does), however this plugin does, and I think thats why the others are working fine. The only idea I have as of yet is persistent connections.

masa 08-09-2007 18:44

Re: Climb
 
Quote:

Originally Posted by ian.cammarata (Post 515512)
Does it happen all the time, or was it a one time thing?

it was one time thing.

I just played on the server, it didn't work at the begin.
some peoplez joined the server, and some times later it works again ...
cant finde some periode^^

my eglish is ugly i know it :grrr:

hmm persistent connections, i hear of it fist time ...

i take a look if i can finde somthing about it.

masa 08-09-2007 20:23

Re: Climb
 
I cant find how to enable the "persistent connection", i found it only for php scripts (php.ini), but not for the mysql server?

and i found nothin in the "/etc/mysql/my.cnf" like this ...

how to do it ?

my apache config is something like that

Quote:

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
MaxKeepAliveRequests 100
but apache is the webserver, and the db connection goes through a socket or not ?

otherwise i give it up with this climb plugin ....

ian.cammarata 08-09-2007 21:59

Re: Climb
 
What version of mysql are you running?

masa 08-09-2007 23:02

Re: Climb
 
Quote:

Originally Posted by ian.cammarata (Post 515638)
What version of mysql are you running?

mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2

Quote:

mysql> status;
--------------
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2

Connection id: 868
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.32-Debian_3-log Debian etch distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 3 hours 46 min 20 sec

Threads: 1 Questions: 125952 Slow queries: 0 Opens: 3250 Flush tables: 1 Op en tables: 64 Queries per second avg: 9.275
--------------


ian.cammarata 08-10-2007 00:07

Re: Climb
 
Well it appears that threaded queries couldn't be the problem.
Code:

* Prepares and executes a threaded query.
 * This will not interrupt gameplay in the event of a poor/lossed
 *  connection, however, the interface is more complicated and
 *  asynchronous.  Furthermore, a new connection/disconnection is
 *  made for each query to simplify driver support.

But you can check some of your mysql limit variables.
http://dev.mysql.com/doc/refman/5.0/...variables.html
Code:

open_files_limit
The number of files that the operating system allows mysqld to
open. This is the real value allowed by the system and might be
different from the value you gave using the --open-files-limit
option to mysqld or mysqld_safe. The value is 0 on systems
where MySQL can't change the number of open files.

Code:

max_connections           
The number of simultaneous client connections allowed. By default,
this is 100. See Section B.1.2.6, “Too many connections”, for more
information. Increasing this value increases the number of file
descriptors that mysqld requires. See
Section 6.4.8, “How MySQL Opens and Closes Tables”, for comments
on file descriptor limits.

If neither of those are the culprit you could try updating MySQL, there have been tons of bug fixes since 5.0.32. The latest 5.0.x release is 5.0.45.
http://dev.mysql.com/doc/refman/5.0/...es-cs-5-0.html


All times are GMT -4. The time now is 09:37.

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