Results 1 to 3 of 3
  1. #1
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky

    FTL - Faster Than Light ship & achievement unlocker

    Cba to rename the functions and arguments. This is for the latest steam version (21-12-2012 according to "recent news")

    P.S. Ship specific achievements only unlock if you're using that specific ship.
    Code:
    #include <windows.h>
    
    /* 0 - show achievement boxes **
    ** 1 - hide achievement boxes */
    #define HIDE_ACHIEVEMENTS 0
    
    //ship unlock
    int (__cdecl *sub_42CC5E)(int a1, int a2, unsigned int a3, char a4, char a5) = (int (__cdecl *)(int,int,unsigned int,char,char))0x0042CC5E;
    
    //achievement functions
    void *(__cdecl *sub_668058)(int *a1, const char *a2) = (void *(__cdecl *)(int *,const char *))0x668058;
    int (__cdecl *sub_4151D2)(int a1, int *a2, char a3) = (int (__cdecl *)(int,int*,char))0x4151D2;
    
    // achievement list
    char *achievementList[] = { 
    	"ACH_WIN_EASY",
    	"ACH_WIN_NORMAL",
    	"ACH_SCRAP",
    	"ACH_SHIPS",
    	"ACH_SECTOR_5",
    	"ACH_SECTOR_8",
    	"ACH_UNLOCK_ALL",
    	"ACH_PACIFIST",
    	"ACH_NO_UPGRADES",
    	"ACH_NO_REPAIR",
    	"ACH_NO_MISSILES",
    	"ACH_NO_DRONES",
    	"ACH_NO_BUYING",
    	"ACH_NO_DEATH",
    	"ACH_BURNING",
    	"ACH_BAD_DODGING",
    	"ACH_BOARDING_DRONE",
    	"ACH_ONE_VOLLEY",
    	"ACH_INVADE_SHIP",
    	"ACH_SLICE_DICE",
    	"ACH_SUFFOCATE",
    	"ACH_ROCK_CRYSTAL",
    	"ACH_NO_UPGRADES",
    	"ACH_PACIFIST",
    	"ACH_ENERGY_MANPOWER",
    	"ACH_FED_UPGRADE",
    	"ACH_SECTOR_8",
    	"ACH_STEALTH_TACTICAL",
    	"ACH_SLUG_NEBULA",
    	"ACH_MANTIS_SURVIVOR",
    	"ACH_MANTIS_CREW_DEAD",
    	"ACH_FED_PATIENCE",
    	"ACH_ONLY_DRONES",
    	"ACH_STEALTH_DESTROY",
    	"ACH_ENERGY_SHIELDS",
    	"ACH_ROCK_MISSILES",
    	"ACH_CRYSTAL_CLASH",
    	"ACH_MANTIS_SLAUGHTER",
    	"ACH_FED_DIPLOMACY",
    	"ACH_ROCK_FIRE",
    	"ACH_UNITED_FEDERATION",
    	"ACH_CRYSTAL_LOCKDOWN",
    	"ACH_SLUG_VISION",
    	"ACH_TOUGH_SHIP",
    	"ACH_STEALTH_AVOID",
    	"ACH_FULL_ARSENAL",
    	"ACH_IONED",
    	"ACH_ENERGY_POWER",
    	"ACH_SLUG_BIO",
    	"ACH_CRYSTAL_SHARD",
    	"ACH_ROBOTIC" 
    };
    
    void UnlockAll(void)
    {
    	for(int i = 0; i < 9; i++)
    	{
    		sub_42CC5E(0x007033E0, i, 0, 1, HIDE_ACHIEVEMENTS);
    		//sub_42CC5E(0x007033E0, i, 1, 1, 0); // unlocks Type B of the ship, pointless as they'll also unlock with the achievements below.
    	}
    	for(int i = 0; achievementList[i] != NULL; i++)
    	{
    		int result;
    		sub_668058(&result, achievementList[i]);
    		sub_4151D2(0x7029C0, &result, HIDE_ACHIEVEMENTS);
    	}
    }
    
    BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    	switch(dwReason)
    	{
    	case DLL_PROCESS_ATTACH:
    		UnlockAll();
    		break;
    	}
    	return TRUE;
    }
    Last edited by Hell_Demon; 12-30-2012 at 04:29 PM.
    Ah we-a blaze the fyah, make it bun dem!

  2. #2
    Drakis50's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Post

    Quote Originally Posted by Hell_Demon View Post
    Cba to rename the functions and arguments. This is for the latest steam version (21-12-2012 according to "recent news")

    P.S. Ship specific achievements only unlock if you're using that specific ship.
    Code:
    #include <windows.h>
    
    /* 0 - show achievement boxes **
    ** 1 - hide achievement boxes */
    #define HIDE_ACHIEVEMENTS 0
    
    //ship unlock
    int (__cdecl *sub_42CC5E)(int a1, int a2, unsigned int a3, char a4, char a5) = (int (__cdecl *)(int,int,unsigned int,char,char))0x0042CC5E;
    
    //achievement functions
    void *(__cdecl *sub_668058)(int *a1, const char *a2) = (void *(__cdecl *)(int *,const char *))0x668058;
    int (__cdecl *sub_4151D2)(int a1, int *a2, char a3) = (int (__cdecl *)(int,int*,char))0x4151D2;
    
    // achievement list
    char *achievementList[] = { 
    	"ACH_WIN_EASY",
    	"ACH_WIN_NORMAL",
    	"ACH_SCRAP",
    	"ACH_SHIPS",
    	"ACH_SECTOR_5",
    	"ACH_SECTOR_8",
    	"ACH_UNLOCK_ALL",
    	"ACH_PACIFIST",
    	"ACH_NO_UPGRADES",
    	"ACH_NO_REPAIR",
    	"ACH_NO_MISSILES",
    	"ACH_NO_DRONES",
    	"ACH_NO_BUYING",
    	"ACH_NO_DEATH",
    	"ACH_BURNING",
    	"ACH_BAD_DODGING",
    	"ACH_BOARDING_DRONE",
    	"ACH_ONE_VOLLEY",
    	"ACH_INVADE_SHIP",
    	"ACH_SLICE_DICE",
    	"ACH_SUFFOCATE",
    	"ACH_ROCK_CRYSTAL",
    	"ACH_NO_UPGRADES",
    	"ACH_PACIFIST",
    	"ACH_ENERGY_MANPOWER",
    	"ACH_FED_UPGRADE",
    	"ACH_SECTOR_8",
    	"ACH_STEALTH_TACTICAL",
    	"ACH_SLUG_NEBULA",
    	"ACH_MANTIS_SURVIVOR",
    	"ACH_MANTIS_CREW_DEAD",
    	"ACH_FED_PATIENCE",
    	"ACH_ONLY_DRONES",
    	"ACH_STEALTH_DESTROY",
    	"ACH_ENERGY_SHIELDS",
    	"ACH_ROCK_MISSILES",
    	"ACH_CRYSTAL_CLASH",
    	"ACH_MANTIS_SLAUGHTER",
    	"ACH_FED_DIPLOMACY",
    	"ACH_ROCK_FIRE",
    	"ACH_UNITED_FEDERATION",
    	"ACH_CRYSTAL_LOCKDOWN",
    	"ACH_SLUG_VISION",
    	"ACH_TOUGH_SHIP",
    	"ACH_STEALTH_AVOID",
    	"ACH_FULL_ARSENAL",
    	"ACH_IONED",
    	"ACH_ENERGY_POWER",
    	"ACH_SLUG_BIO",
    	"ACH_CRYSTAL_SHARD",
    	"ACH_ROBOTIC" 
    };
    
    void UnlockAll(void)
    {
    	for(int i = 0; i < 9; i++)
    	{
    		sub_42CC5E(0x007033E0, i, 0, 1, HIDE_ACHIEVEMENTS);
    		//sub_42CC5E(0x007033E0, i, 1, 1, 0); // unlocks Type B of the ship, pointless as they'll also unlock with the achievements below.
    	}
    	for(int i = 0; achievementList[i] != NULL; i++)
    	{
    		int result;
    		sub_668058(&result, achievementList[i]);
    		sub_4151D2(0x7029C0, &result, HIDE_ACHIEVEMENTS);
    	}
    }
    
    BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    	switch(dwReason)
    	{
    	case DLL_PROCESS_ATTACH:
    		UnlockAll();
    		break;
    	}
    	return TRUE;
    }


    Hey there, could you help me?

    Could you reply, of how should I put here to unlock only the crystal ship? Only the normal one. Thanks

    Code:
             ACH_SECTOR_5      ACH_SECTOR_8      ACH_WIN_EASY      ACH_WIN_NORMAL   	   ACH_SCRAP       ACH_NO_MISSILES    
       ACH_NO_DRONES       ACH_NO_DEATH       ACH_BAD_DODGING       ACH_SLICE_DICE    
       ACH_SUFFOCATE       ACH_FULL_ARSENAL      ACH_ROBOTIC       ACH_ONLY_DRONES       ACH_FED_PATIENCE       ACH_FED_UPGRADE                                                     Valhalla III   PLAYER_SHIP_HARDc            
       Valhalla XIII   PLAYER_SHIP_FEDí	               Valhalla XI   PLAYER_SHIP_HARD“	            
       The Osprey   PLAYER_SHIP_FEDŠ	              The Kestrel   PLAYER_SHIP_HARDQ	                  Valhalla III   PLAYER_SHIP_HARDc               Valhalla XI   PLAYER_SHIP_HARD“	               The Kestrel   PLAYER_SHIP_HARDQ	               Valhalla IV   PLAYER_SHIP_HARD^               The Nesasio   PLAYER_SHIP_STEALTH)                Valhalla VII   PLAYER_SHIP_CIRCLE               Valhalla VII   PLAYER_SHIP_CIRCLE            	   The Torus   PLAYER_SHIP_CIRCLEj            	   The Torus   PLAYER_SHIP_CIRCLE¹            
       The Vortex   PLAYER_SHIP_CIRCLE_2m            
       Valhalla XIII   PLAYER_SHIP_FEDí	            
       The Osprey   PLAYER_SHIP_FEDŠ	              Valhalla XII   PLAYER_SHIP_FED·               Valhalla XIV   PLAYER_SHIP_FED²               Hyperion Fighter   PLAYER_SHIP_FED_2Í             
       Man of War   PLAYER_SHIP_JELLY            
       Man of War   PLAYER_SHIP_JELLYt               Valhalla VI   PLAYER_SHIP_JELLY?            
       Man of War   PLAYER_SHIP_JELLY
                     €  U   ê  ‘  ¯T  
       Ý   ,      (      Butters   engi      
       Henrik Aasted   mantis   š      Justin   human   T      Josh Cubbin   human         Stephen Eckman   engi

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    The part that unlocks the ships is this:
    for(int i = 0; i < 9; i++)
    {
    sub_42CC5E(0x007033E0, i, 0, 1, HIDE_ACHIEVEMENTS);
    //sub_42CC5E(0x007033E0, i, 1, 1, 0); // unlocks Type B of the ship, pointless as they'll also unlock with the achievements below.
    }

    There are 9 ships(or were, havent played since the post was made) in the game, so if the ship you want to unlock is the 4th one(example) then you call the function with 3 as value: sub_42CC5E(0x007033E0, 3, 0, 1, 0);
    Ah we-a blaze the fyah, make it bun dem!

Similar Threads

  1. Neutrinos faster than speed of light?
    By crappy74 in forum General
    Replies: 14
    Last Post: 09-24-2011, 04:28 AM
  2. Xbox 360 all achievements unlock all cheap
    By amshnock in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 08-10-2009, 10:38 AM
  3. Opera is faster than firefox?
    By Hyperion in forum General
    Replies: 6
    Last Post: 06-16-2009, 09:59 AM
  4. Replies: 5
    Last Post: 03-24-2009, 03:35 PM
  5. Combat Arms hack got patched faster than Warrock?
    By ximsonoobx in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 08-30-2008, 05:35 PM