Raised This Month: $ Target: $400
 0% 

[ANY] MechaWare: Custom Achievements 2.0! (0.6)


Post New Thread Reply   
 
Thread Tools Display Modes
mats
Senior Member
Join Date: Jan 2005
Old 07-15-2010 , 18:11   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #101

When someone does not have an achievement the image shows broken. and if you view the image it gives this error:

Fatal error: Call to undefined function imagefilter() in /.../achievements/achimg.php on line 163


Is it possible to just show the image with a grey colour over it or something, and if it applies other pictures show the process cause then players know what achievements there are.
__________________

Last edited by mats; 07-15-2010 at 18:18.
mats is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-15-2010 , 18:26   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #102

When I was writing L4D stats, I just disabled linking to someone's Community page if bcmath isn't installed.
__________________
msleeper is offline
NovaDenizen
Junior Member
Join Date: Jan 2010
Old 07-18-2010 , 21:52   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #103

Code:
Format(strQuery, sizeof(strQuery), "SELECT * FROM `mw_achievements_post_ach` WHERE steamid = '%s'", strSteamId);
This query is in GetClientDBInfo, and runs every time a client connects. The mw_achievements_post_ach table doesn't have an index on steamid. However, the id field is a concatenation of steamid and achid, so this query can be easily modified to take advantage of the existing index.

Code:
Format(strQuery, sizeof(strQuery), "SELECT * FROM `mw_achievements_post_ach` WHERE id LIKE = '%s_%%'", strSteamId);
caveat: I haven't actually tried this, but I think it will work.
NovaDenizen is offline
NovaDenizen
Junior Member
Join Date: Jan 2010
Old 07-18-2010 , 22:00   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #104

Lots of places you have string split arrays declared like this:
Code:
new String:split[50][128];
This allocates the stack space for the string array, then initializes all of the string buffers to zero bytes. This initialization is unnecessary for most of your string declarations, so you should be using the decl form as much as possible.

I think sometimes you depend on strings being initialized to empty, but in these cases it is much faster to do something like this:

Code:
decl String:buf[128];
buf[0] = '\0'
NovaDenizen is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 07-26-2010 , 18:47   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #105

Thanks, I'll look into all the suggestions
__________________
Mecha the Slag is offline
Viper Snake
Junior Member
Join Date: Jun 2010
Old 08-02-2010 , 18:08   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.4)
Reply With Quote #106

[ Buglist/Issues ]
This is with the beta you sent me of course.

- No way of detecting headshots. Using tf_weapon_sniperrifle only counts bodyshots.
- No way of detecting targe kills because the targe is a passive weapon and can not actually be "held".
- No way to detect if a player is taunting.
- "X is holding weapon" and "X is not holding weapon" do not become selectable until you have submit the achievement.
- You have to submit a weapon's name twice for it to save.
- When editing an achievement, if the name or description had a ' in it, all text after the ' will be missing.
- Making an achievement that triggers through chat triggers only if you do the OI MATE achievement and not the one you made.
- You can earn all the achievements again when the map changes (except for Outbreak for some reason...)
- People were getting the "30 mile man" with only a few kills after the map had changed.
Viper Snake is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 08-05-2010 , 07:58   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.6)
Reply With Quote #107

0.6
  • Fixed a bug where the database would not be updated on map change.
  • Made client achievement progress only be submitted on disconnect or map change.
  • Fixed a bug where some achievements wouldn't trigger / be triggered by other achievements
__________________
Mecha the Slag is offline
Xsinthis
Senior Member
Join Date: Oct 2008
Location: Canadia, eh?
Old 08-30-2010 , 17:43   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.6)
Reply With Quote #108

I can't find the connect.php file O.o

I edited the config.php file so i'm just wondering if it's still needed, as i'm getting a 500 internal server error navigating to the admin page

Also:

Quote:
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
__________________

Last edited by Xsinthis; 08-30-2010 at 19:21.
Xsinthis is offline
prom3th3an
SourceMod Donor
Join Date: Jun 2010
Old 09-01-2010 , 04:05   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.6)
Reply With Quote #109

Is there a requirement that the kill is a domination?
prom3th3an is offline
Xsinthis
Senior Member
Join Date: Oct 2008
Location: Canadia, eh?
Old 09-10-2010 , 00:10   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.6)
Reply With Quote #110

Ummm bump?

Still can't figure out this 500 error and 404 error when logging into the admin portion

EDIT: found the problem

Quote:
Originally Posted by rogueosb View Post
You have to edit the .htaccess file to suit your server ;)
that might be good to add in the instructions for us idiots
__________________

Last edited by Xsinthis; 09-10-2010 at 00:21.
Xsinthis 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 09:53.


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