Raised This Month: $ Target: $400
 0% 

[cP mod]


Post New Thread Reply   
 
Thread Tools Display Modes
DieterM75
Senior Member
Join Date: Aug 2009
Old 10-09-2012 , 02:23   Re: [cP mod]
Reply With Quote #251

Quote:
Originally Posted by PsyGaming View Post
There's no error message like you posted above.

I looked at the database and the plugin created 4 tables:

map
player
sm_cookies
sm_cookie_cache

I saved my CPs at the server, disconnected and looked again at the database. No records were saved.

I restarted the server completely, connected, saved CPs, disconnected and reconnected. Finally it works. He restores only the last saved CP, but that is okay. Wonderful.
This does not make sense to me. First of all if the tables were created the plugin was able to access the database and created 'map' and 'player'. If you say it also saves the last CP, the connection is working and you should see data in the 'player' table. There should not be any Invalid database Handle entries in the logs either. If there are, let me know.

Greets
DieterM75 is offline
PsyGaming
SourceMod Donor
Join Date: Sep 2012
Location: Germany
Old 10-09-2012 , 06:53   Re: [cP mod]
Reply With Quote #252

Quote:
Originally Posted by DieterM75 View Post
This does not make sense to me. First of all if the tables were created the plugin was able to access the database and created 'map' and 'player'. If you say it also saves the last CP, the connection is working and you should see data in the 'player' table. There should not be any Invalid database Handle entries in the logs either. If there are, let me know.

Greets
The tables are created, all is working fine now. I restarted the server again completely, no error messages now.

Watch my table "player" here:

http://s14.directupload.net/images/121009/ajfc7vpz.jpg
__________________
http://www.psy-gaming.de

Psy-Gaming.de - CS:GO Server Community
We have more than +30 Publicserver running!



Last edited by PsyGaming; 10-09-2012 at 06:53.
PsyGaming is offline
DieterM75
Senior Member
Join Date: Aug 2009
Old 10-12-2012 , 13:35   Re: [cP mod]
Reply With Quote #253

Seems ok. Jumps and runtime is just used for the timer part and all players that have '0:0:0' cords have not saved any checkpoints at all. Simple as that.
DieterM75 is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 10-27-2012 , 20:49   Re: [cP mod]
Reply With Quote #254

how do I get the time, jump, and speedometer to display on csgo?
__________________
PresidentEvil is offline
abckrieger
Senior Member
Join Date: Oct 2012
Location: Germany
Old 11-02-2012 , 17:48   Re: [cP mod]
Reply With Quote #255

Hello,

i modified the version of byaaaaah a little bit and uploaded it for you. enjoy!
https://forums.alliedmods.net/showthread.php?p=1832443

Last edited by abckrieger; 03-03-2013 at 14:04.
abckrieger is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 11-16-2012 , 08:01   Re: [cP mod]
Reply With Quote #256

There's a player in my server called PissFo'Brainzz and because of his name I get this error:
PHP Code:
L 11/16/2012 15:00:00SourceMod error session started
L 11
/16/2012 15:00:00Info (map "bhop_eazy") (file "errors_20121116.log")
L 11/16/2012 15:00:00: [cPMod.smx] [cP ModError inserting into database (near "Brainzz"syntax error
__________________
retired
shavit is offline
DieterM75
Senior Member
Join Date: Aug 2009
Old 11-16-2012 , 12:45   Re: [cP mod]
Reply With Quote #257

Quote:
Originally Posted by abckrieger View Post
Hello,

i modified the version of byaaaaah a little bit and uploaded it for you. enjoy!

2.0.8_modified_v1.1 by abckrieger
- tested in csgo with metamod 1.10.0-hg811, sourcemod 1.5.0-hg3680
- requires also latest sdkhooks version (http://users.alliedmods.net/~psychon.../sdkhooks/2.2/)

// howto

copy the folder into your csgo folder and add the following into your addons/sourcemod/configs/database.cfg:

"cpmod"
{
"driver" "sqlite"
"host" "localhost"
"database" "clientprefs-sqlite"
"user" "root"
"pass" ""
}

2.0.8_modified_v1.0 by abckrieger
- Teleports are now possible while the timer is activated
- HUD shows the count of teleports since the timer is started instead of jumps
- Added teleports to the record entrys
- +2 Seconds for a Checkpoint while the timer is activated (higher advantage if u use less savepoints)
- Savepoints& Teleports counter will be reseted if a player types "!restart" into chat or re-enter the starting zone
- removed the gravity options from the cp menu (dont make sense if u are able to use savepoints)

2.0.8_modified_v1.1 by abckrieger
- fixed an internal sql bug
- checkpoints & telepoints of a run will be saved in the database and displayed via !wr & !record
- sm_cp_extra_seconds 1/0 implemented (if set to 1, +2 seconds on time for a checkpoint)
- Fixed finishing sound

listed maps with start/end zones (csgo, database included):

"mg_toxic_course_go"
"mg_kirbys_course_go"
"mg_galaxy_course_csgo"
"mg_dust_course_2_csgo_beta"
"kz_quadrablock"
"kz_iluvprok_beta"
"kz_haki_v2"
"kz_cellblock_go2"
"kz_xtremeblock_v2"
"kz_spiritblockv2"
"kz_galaxy_go2"
"kz_caulis_v2"
"kz_toonadventure_go"
"kz_sukblock_v2"
"kz_7in1_go"
"kz_peak"
"kz_natureblock_go"
"kz_beginnerblock_go"
"xc_karo4"
"xc_minecraft3_csgo"

http://www37.zippyshare.com/v/78708678/file.html

recommend kreedz settings:

// movement
sv_staminalandcost 0 //csgo
sv_staminajumpcost 0 //csgo
sm_cvar sv_airaccelerate 80
sm_cvar sv_accelerate 5.6
sm_cvar sv_enablebunnyhopping 1
sm_cvar sv_gravity 800
sm_cvar sv_maxspeed 400

//
// Plugins
//

// Longjump Simple Plugin (http://www.sourcemod.net/vbcompiler.php?file_id=110818)
sm_longjump_boost 0.038 // pretty similiar to 1.6

// AutoRespawn Plugin (https://forums.alliedmods.net/showthread.php?t=193554)
sm_autorespawn_enabled 1 //must be disabled for mg_ course maps because of auto. spawn kill after xx seconds

//CPMod
sm_cp_gravity 0
sm_cp_noblock 1
sm_cp_timer 1
sm_cp_cleanupguns 1
sm_cp_healclient 1
sm_cp_gravity 0
sm_cp_enabled 1
sm_cp_chatvisible 1
sm_cp_hintsound 1
sm_cp_extra_seconds 1
sm_cp_recordsound "music\quake\holyshit.mp3"

thx4feedback
p.s. i hope someone hosts a "good" kreedz server in europe ;)
Thanks for the contribution!
I would appreciate it if you could merge your changes to the current bleeding_edge branch on https://github.com/dieterm57/cPMod/.
DieterM75 is offline
DieterM75
Senior Member
Join Date: Aug 2009
Old 11-16-2012 , 12:45   Re: [cP mod]
Reply With Quote #258

Quote:
Originally Posted by shavit View Post
There's a player in my server called PissFo'Brainzz and because of his name I get this error:
PHP Code:
L 11/16/2012 15:00:00SourceMod error session started
L 11
/16/2012 15:00:00Info (map "bhop_eazy") (file "errors_20121116.log")
L 11/16/2012 15:00:00: [cPMod.smx] [cP ModError inserting into database (near "Brainzz"syntax error
Hmm, didn't know these characters are allowed for player names by the source engine...
DieterM75 is offline
Nairdaa
Member
Join Date: Nov 2012
Old 11-23-2012 , 21:16   Re: [cP mod]
Reply With Quote #259

So, here's the thing.

I'd like to edit the display menu for !cp command
I thought it would be the

//-------------------//
// help panel method //
//-------------------//

in commands.sp placed in addons\sourcemod\scripting\cpMod but it seems like even thou I edited the file it didn't make any change.

So. Where do I edit this stuff? -.- I'm starting to believe I'm bloody blind, as I can't find this anywhere else.

Thank you for your patience and understanding, regarding this silly question.
Nairdaa is offline
DieterM75
Senior Member
Join Date: Aug 2009
Old 11-24-2012 , 04:09   Re: [cP mod]
Reply With Quote #260

Quote:
Originally Posted by Nairdaa View Post
So, here's the thing.

I'd like to edit the display menu for !cp command
I thought it would be the

//-------------------//
// help panel method //
//-------------------//

in commands.sp placed in addons\sourcemod\scripting\cpMod but it seems like even thou I edited the file it didn't make any change.

So. Where do I edit this stuff? -.- I'm starting to believe I'm bloody blind, as I can't find this anywhere else.

Thank you for your patience and understanding, regarding this silly question.
Compile the source (.sp) files as documented in the wiki:
http://wiki.alliedmods.net/Compiling_SourceMod_Plugins
,upload the binary (.smx) file and reload the plugin / restart the server.
DieterM75 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 18:07.


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