Raised This Month: $ Target: $400
 0% 

[TF2] Custom Achievements Api


Post New Thread Reply   
 
Thread Tools Display Modes
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-28-2010 , 11:53   Re: [TF2] Custom Achievements Api
Reply With Quote #11

Code:
L 11/28/2010 - 19:29:57: [SM] Native "SQL_FetchString" reported: Current result set has no fetched rows
L 11/28/2010 - 19:29:57: [SM] Displaying call stack trace for plugin "achievements_api.smx":
L 11/28/2010 - 19:29:57: [SM]   [0]  Line 1079, E:\_DedicatedServers\TF2Trash\orangebox\tf\addons\sourcemod\scripting\achievements_api.sp::CA_TriggerAchievement()
maybe error in query in line 974 ? I dislike SELECT name... maybe it should be SELECT `name`? error triggered only once.
__________________
Leonardo is offline
Flyflo
Senior Member
Join Date: Jun 2008
Location: Grenoble, France
Old 11-28-2010 , 13:48   Re: [TF2] Custom Achievements Api
Reply With Quote #12

It's strange, if there was an error in the SQL structure of the achievement, the error should have been triggered before.
Did you try multiple times and/or with other achievements ?
__________________
Flyflo is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-28-2010 , 16:20   Re: [TF2] Custom Achievements Api
Reply With Quote #13

I tried to do some achievement whom checks in OnGameFrame() (so I've got ~100 invalid queries, lol). It work fine now, after reloading scripts ... but, what happened...
just tried to make achievement like "be burned after touching pyro while cloaked", huh.
I'll write, if I get more.
__________________
Leonardo is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-29-2010 , 07:20   Re: [TF2] Custom Achievements Api
Reply With Quote #14

I've been f**ked again.

Code:
CREATE TABLE IF NOT EXISTS `ca_achievements` (
  `id` int(10) NOT NULL auto_increment COMMENT 'Achievement''s id ',
  `unique_name` varchar(64) NOT NULL COMMENT 'Achievement''s unique name (optional)',
  `name` varchar(50) NOT NULL COMMENT 'Nom de l''achievement',
  `amount` int(5) NOT NULL COMMENT 'Triggering value',
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Holds the different types of achievements.';
1/ translate this in english.
2/ achievements_api.sp, line 1696
Code:
Format(strQuery, sizeof(strQuery), "SELECT `id`, `unique_name`, `name`, `description`, `amount` FROM `%sachievements`", g_strDatabasePrefix);
there no "description" field in db ...
__________________
Leonardo is offline
Flyflo
Senior Member
Join Date: Jun 2008
Location: Grenoble, France
Old 11-29-2010 , 08:17   Re: [TF2] Custom Achievements Api
Reply With Quote #15

I made a new dump of the db and it should be ok this time.
I have my head in the clouds
__________________
Flyflo is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-29-2010 , 08:42   Re: [TF2] Custom Achievements Api
Reply With Quote #16

somewhere `achievement_id` is an int(10), somewhere - int(11)
`%progress`.`progression` is an int(10), but `%achievements`.`amout` is an int(5)
huh ...
__________________

Last edited by Leonardo; 03-13-2011 at 17:50.
Leonardo is offline
Velture
Senior Member
Join Date: Jan 2011
Location: Poland, Warsaw
Old 03-25-2012 , 13:29   Re: [TF2] Custom Achievements Api
Reply With Quote #17

How do you add achivements?
__________________
Velture is offline
superchat
Junior Member
Join Date: Sep 2012
Old 09-13-2012 , 12:29   Re: [TF2] Custom Achievements Api
Reply With Quote #18

How i'm make achievements? HELP!
superchat is offline
El Diablo War3source
Junior Member
Join Date: Sep 2012
Old 12-07-2012 , 03:49   Re: [TF2] Custom Achievements Api
Reply With Quote #19

comment out line 1420, then comment out line 1423

add after line 1423:

Code:
if(!(TF2_IsPlayerInCondition(client,TFCond_Disguised)) && !(TF2_IsPlayerInCondition(client,TFCond_Cloaked)))
TF2_GetPlayerConditionFlags(client) is old code.. need to use TF2_IsPlayerInCondition(client, TFCond)
El Diablo War3source is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-21-2013 , 14:00   Re: [TF2] Custom Achievements Api
Reply With Quote #20

Does this work still by any chance?
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
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 09:08.


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