+ Reply to Thread
Results 1 to 12 of 12

  Click here to go to the first staff post in this thread.   Thread: Unlocking all achievements

  1. #1
    Join Date
    Jul 2005
    Posts
    430
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    79

    Unlocking all achievements

    I'm sure several of you already have done something like this..

    This works for Team Fortress 2, I've tested.
    Should work for other games with achievements too (DoDS/L4D right?).. Don't own any account with them on atm.
    Code:
    IAchievementMgr* pAchievementMgr = pEngine->GetAchievementMgr();
    for( int i = 0; i < pAchievementMgr->GetAchievementCount(); i++ )
    {
    	IAchievement* pAchievement = pAchievementMgr->GetAchievementByIndex( i );
    	pAchievementMgr->AwardAchievement( pAchievement->GetAchievementID() );
    }
    Put in your leeb TF2 hookens and just include iachievementmgr.h from the SDK.
    Quote Originally Posted by Str8Soilder View Post
    Sorry for my english Im Black

  2. #2
    Join Date
    Dec 2008
    Posts
    188
    Thanks
    2
    Thanked 10 Times in 4 Posts
    Rep Power
    30
    heh ive found that a few days ago too after someone told me the header

    i havent tested this on a real server yet, does it work?

  3. #3
    Join Date
    Jun 2004
    Location
    The Moon
    Posts
    2,977
    Thanks
    0
    Thanked 63 Times in 40 Posts
    Rep Power
    192
    I'll relock your achievements.

    ([oC]Streetmedic): wav hate my guts
    ([oC]Streetmedic): i swear he shadowz me
    (Absolution): its true
    (Absolution): actually
    P47R!CK says:
    you are no good for me
    [gØt]wäv? says:
    wrong
    i am good for you
    [gØt]wäv? says:
    and you know it

  4. #4
    Join Date
    Jul 2006
    Location
    warehouse
    Posts
    377
    Thanks
    7
    Thanked 15 Times in 5 Posts
    Rep Power
    59
    nice work and thanks for sharing

    i just tried it for dods and works like charm...tho u also need to include public\iachievementmgr.h from the sdk ^^
    blnk - ? says:
    'BEATED'?
    you americans
    always raping our language
    Dan_K says:
    and ur women

  5. #5
    Join Date
    Jan 2005
    Posts
    1,044
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    112
    PHP Code:
    #ifndef STEAM_ACH_H
    #define STEAM_ACH_H

    #include "sdk_includes.h"

    class cAchievements
    {
    public:

        
    bool IsReady()
        {
            
            if( !
    g_pEngine )
                return 
    false;

            if( !
    g_pEngine->GetAchievementMgr() )
                return 
    false;

            if( !
    g_pSteamUserStats )
                return 
    false;

            return 
    true;
        }

        
    void UnlockAll()
        {
            if( !
    IsReady() )
                return;

            
    CGameID gameidg_pEngine->GetAppID() );

            
    CAchievementMgrpAchieve dynamic_cast<CAchievementMgr*>( g_pEngine->GetAchievementMgr() );

            if( !
    pAchieve )
                return;

            for( 
    int i 0g_pSteamUserStats->GetNumAchievementsgameid ); i++ )
            {
                
    IAchievementpAchievement pAchieve->GetAchievementByIndex);

                if( !
    pAchievement )
                    continue;

                
    CBaseAchievement *pBaseAchievement dynamic_cast<CBaseAchievement *>( pAchievement );

                if( !
    pBaseAchievement )
                    continue;

                
    int id pAchievement->GetAchievementID();

                
    pBaseAchievement->SetAchievedtrue );

                
    pAchieve->AwardAchievementid );

                
    g_pSteamUserStats->SetAchievementgameidg_pSteamUserStats->GetAchievementNamegameid) );
                
    g_pSteamUserStats->StoreStatsgameid );
            }
        }

        
    void RelockAll()
        {
            if( !
    IsReady() )
                return;

            
    CGameID gameidg_pEngine->GetAppID() );

            for( 
    size_t i 0g_pSteamUserStats->GetNumAchievementsgameid ); i++ )
            {
                
    g_pSteamUserStats->ClearAchievementgameidg_pSteamUserStats->GetAchievementNamegameid) );
            }

            
    g_pSteamUserStats->StoreStatsgameid );
        }
    };

    extern cAchievements g_Achieve;

    #endif 
    Source SDK/Steam API, i mixed and matched
    < this person is absent at the moment, please direct your call elsewhere >

  6. #6
    Join Date
    Jul 2005
    Posts
    430
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    79
    Quote Originally Posted by j1gs4w View Post
    nice work and thanks for sharing

    i just tried it for dods and works like charm...tho u also need to include public\iachievementmgr.h from the sdk ^^
    Yeah, I meant iachievementmgr not icvar ofc.. I blame the internet.
    Quote Originally Posted by Str8Soilder View Post
    Sorry for my english Im Black

  7. #7
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Unlocking all achievements

    just call me noob or flame me but this code is supposed to be transformed into a hack or is it used on server?
    plz read my name & signature before judging me
    Pardon Me if I screw up i'm noob

  8. #8
    Join Date
    Oct 2008
    Posts
    45
    Thanks
    3
    Thanked 6 Times in 5 Posts
    Rep Power
    23

    Re: Unlocking all achievements

    Quote Originally Posted by royrms View Post
    just call me noob or flame me but this code is supposed to be transformed into a hack or is it used on server?
    plz read my name & signature before judging me
    last sentence of first post
    you have to put it in your hook (if you have one)
    Wer immer mit beiden Beinen fest am Boden steht, bekommt nie eine frische Unterhose

    http://www.youtube.com/user/copymark77

  9. #9
    Join Date
    Nov 2009
    Posts
    104
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Re: Unlocking all achievements

    Quote Originally Posted by royrms View Post
    just call me noob or flame me but this code is supposed to be transformed into a hack or is it used on server?
    plz read my name & signature before judging me
    If you're a "Noob" you should first read what this board is about. Did you ever see such codes were executed by the console of the game?
    Quote Originally Posted by DontBitch
    I Like To Quote Myself.

  10. #10
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Unlocking all achievements

    "A Development Site for Reverse Engineering"
    just trying to find out stuff as i'm a begginer in programming & stuff
    & want to understand what i'm reading & not just read & pass
    Pardon Me if I screw up i'm noob

  11. #11
    Join Date
    Oct 2008
    Posts
    45
    Thanks
    3
    Thanked 6 Times in 5 Posts
    Rep Power
    23

    Re: Unlocking all achievements

    even if this is good normally
    you are still wrong here

    you have to learn c++ first

    learn the basics, mybe you are able to copy and paste it then
    Wer immer mit beiden Beinen fest am Boden steht, bekommt nie eine frische Unterhose

    http://www.youtube.com/user/copymark77

  12. #12
    Join Date
    Sep 2008
    Location
    USA
    Posts
    570
    Thanks
    61
    Thanked 22 Times in 18 Posts
    Blog Entries
    1
    Rep Power
    45

    Re: Unlocking all achievements

    http://osw.limetech.org/
    Doh - check out, open project, build, unlock all achievements (multiunlocker)
    how can i use this code? Will I must compiling it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. cvars and unlocking
    By [KiLLzAr] in forum Beginner
    Replies: 6
    Last Post: 04-01-2007, 07:36 AM
  2. Unlocking *EVERY* cvar in Quake4
    By !k-0t1c! in forum idTech 4
    Replies: 7
    Last Post: 12-10-2005, 02:06 PM
  3. Unlocking Game Cvars
    By Otacon in forum idTech 3
    Replies: 17
    Last Post: 03-10-2005, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts