Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-21-2010 , 16:35   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #41

Sorry, it's in the second post

http://forums.alliedmods.net/showthr...25#post1179225

I should probably make it more visible
__________________
Mecha the Slag is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-21-2010 , 16:57   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #42

Updated web interface. It now better handles errors (tells you whats wrong) and has extended support. There is also a 'player' section now which allows you to modify the achievements of any player.

It also features &game and &skin parameters to the index.php files. &game filters the achievements to a specific game (ie &game=2 for only Left 4 Dead 2 achievements) and &skin allows you to load a certain skin template (ie &skin=left4dead2).
__________________

Last edited by Mecha the Slag; 05-21-2010 at 17:13.
Mecha the Slag is offline
ScubaSteve3465
Senior Member
Join Date: Dec 2004
Old 05-21-2010 , 17:37   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #43

ok nvm again im still getting server errors.... see link below...


---------------------------------------------below is the main web interface... which is working
http://www.pkugaming.net/games/

----------------------------------------------------below is the admin cpanel link... which is giving me an error
http://www.pkugaming.net/games/admin/index.php
__________________

Last edited by ScubaSteve3465; 05-21-2010 at 17:40.
ScubaSteve3465 is offline
rogueosb
New Member
Join Date: Mar 2010
Old 05-21-2010 , 17:57   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #44

Quote:
Originally Posted by ScubaSteve3465 View Post
ok nvm again im still getting server errors.... see link below...


---------------------------------------------below is the main web interface... which is working
http://www.pkugaming.net/games/

----------------------------------------------------below is the admin cpanel link... which is giving me an error
http://www.pkugaming.net/games/admin/index.php
You have to edit the .htaccess file to suit your server ;)
rogueosb is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 05-21-2010 , 18:08   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #45

I've successfully gotten the plugin installed and configured. I've also gotten the website up and working (admin section too, sorry Scuba Steve).

I figured it would be easy to start by duplicating some of your example achievements, but I'm stuck is here:


I just don't know what to put into the boxes to configure the achievements. Specifically Triggers (on both sides), Add in the block, and Requirements.

I realize this is a work in progress (and a much better start then the last version) but your descriptions in the forums don't match the labels in the interface. You've also edited out a lot of the descriptive text that was in the original first post.

I've also found that if I try to run this in IE8 (the browser I must use 80% of the time) I get the following javascript error loading the admin page. It works fine in Firefox.
Code:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; Tablet PC 2.0; Creative AutoUpdate v1.40.01)
Timestamp: Fri, 21 May 2010 21:56:14 UTC
 
Message: Object required
Line: 7
Char: 1
Code: 0
URI: http://myjyd.com/achieve/admin/index.php
SuperShadow is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-21-2010 , 19:15   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #46

Yeah I edited it out to try and keep it simple and as such more attractive. It's rather simple once you get a hang of the different meanings, but I should add some kind of hover feature that then explains everything

triggers is the number of triggers required to activate the block/achievement. All blocks in an achievement needs to be activated for the achievement to activate (aka go +1). 3 triggers means it has a total value of 3
A requirement is, as the name implies, a requirement that needs to be fulfilled before the block is triggered. Say in a block with the event "kill", you want it to not be a suicide, you simply add a "not self-inflicted" requirement and that's it.

Here are the ones I made. Run it as an sql query in your database and they should be there!
Code:
INSERT INTO `mw_achievements_get_blocks` (`id`, `event`, `target`, `triggers`, `add`, `requirement`, `expire`) VALUES
(2, 'kill', 0, 30, 1, '5,,', '0'),
(3, 'hurt', 0, 2000, 1, '5', '1'),
(4, 'chat', 0, 1, 0, '7,bloody', ''),
(5, 'kill', 1, 1, 0, '13,0,STEAM_0:0:17402999|5', ''),
(6, 'capture', 0, 1, 0, '101,1', ''),
(7, 'pills_used', 0, 2, 0, '', '1'),
(8, 'on_heal', 0, 1, 0, '17,0,1|14,1,spy', ''),
(10, 'enter_saferoom', 0, 1, 0, '21,0,1|15,0,survivor', ''),
(11, 'medic_uber', 0, 1, 0, '14,1,engineer', ''),
(17, 'kill', 1, 1, 1, '6', ''),
(20, 'mvp', 0, 1, 1, '', ''),
(23, 'kill', 1, 1, 1, '22,0,22', '0'),
(22, 'kill', 0, 3, 1, '14,1,spy|14,0,engineer', ''),
(24, 'kill', 0, 1, 1, '24,1,|15,0,survivor|16,0,1', '0'),
(25, 'kill', 0, 3, 1, '14,1,smoker', '1'),
(26, 'buffbanner', 0, 2, 1, '', '1'),
(27, 'tank_frustrated', 0, 1, 1, '', '0'),

INSERT INTO `mw_achievements_get_ach` (`id`, `name`, `desc`, `triggers`, `blocks`, `game`) VALUES
(2, '30 Mile Man', 'Get 30 Kills in one map!', 1, '2', 0),
(3, 'Hurtmania', 'Do a total of 2000 damage in a single life!', 1, '3', 0),
(4, 'OI MATE', 'Bring out your inner Brit!', 1, '4', 0),
(5, 'The Proest', 'Get killed by Mecha the Slag!', 1, '5', 0),
(6, 'Came, Saw, Conquered', 'Capture a point all by yourself!', 1, '6', 1),
(7, 'Fat Bald Bastard', 'Eat 2 bottles of pills in one life!', 1, '7', 2),
(8, 'Misfortunate Medic', 'Heal en enemy spy!', 1, '8', 1),
(10, 'Sole Survivor', 'Reach the safehouse as the only survivor!', 1, '10', 2),
(11, 'Workplace Insurance', 'Ubercharge an engineer!', 1, '11', 1),
(12, 'Successful Suicide', 'Perform 10 suicides!', 10, '17', 0),
(22, 'Outbreak', 'Catch a rare strain of infection!', 1, '23', 0),
(18, 'MVP Master', 'Become MVP!', 1, '20', 1),
(21, 'I Spy', 'Kill 3 spies in one life as engineer!', 1, '22', 1),
(23, 'No Bots Allowed', 'Strategically kill a bot!', 1, '24', 2),
(24, 'No Smoking', 'Kill 3 smokers in one life!', 1, '25', 2),
(25, 'Two Buffs Two Banners', 'Use the Buffbanner twice in one life!', 1, '26', 1),
(26, 'Fail Tank', 'Lose the tank to frustration!', 1, '27', 2),
You can use it as a reference or to get the idea of it until I add the descriptions tomorrow
__________________

Last edited by Mecha the Slag; 05-21-2010 at 19:23.
Mecha the Slag is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 05-21-2010 , 21:12   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #47

Thanks for that Mecha, I will work on them tomorrow.

Hope you didn't miss the last part of my post about the javascript error in IE8.
SuperShadow is offline
ScubaSteve3465
Senior Member
Join Date: Dec 2004
Old 05-21-2010 , 21:17   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #48

I fixed the admin panel i can now log in fine. Now i have 2 more issues.... Here are the errors

Warning: opendir(../images/) [function.opendir]: failed to open dir: No such file or directory in /home/scuba34/public_html/games/admin/index.php on line 195

Warning: closedir(): supplied argument is not a valid Directory resource in /home/scuba34/public_html/games/admin/index.php on line 201
__________________
ScubaSteve3465 is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 05-21-2010 , 21:33   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #49

I created an images folder under admin and those errors got quiet. I suspect future suprises from Mecha
SuperShadow is offline
ScubaSteve3465
Senior Member
Join Date: Dec 2004
Old 05-21-2010 , 22:17   Re: [ANY] MechaWare: Custom Achievements 2.0! (0.22)
Reply With Quote #50

ah thank u my good man
__________________
ScubaSteve3465 is offline
Reply


Thread Tools
Display Modes

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 13:39.


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