ModdingRaft Unlock Achievements w/ Types
Posted:

ModdingRaft Unlock Achievements w/ TypesPosted:

module
  • Resident Elite
Status: Offline
Joined: Mar 13, 20168Year Member
Posts: 266
Reputation Power: 31
Status: Offline
Joined: Mar 13, 20168Year Member
Posts: 266
Reputation Power: 31
Game: Raft
Platform: Steam
Engine: UE4

Mono internal injection will work, simple C# should do the trick.

Achievement Types
// 0x02000211
public enum AchievementType
{
   // Token: 0x04000AA4 RID: 2724
   ach_playwithfriend,
   // Token: 0x04000AA5 RID: 2725
   ach_sailor,
   // Token: 0x04000AA6 RID: 2726
   ach_hoarder,
   // Token: 0x04000AA7 RID: 2727
   ach_farmer,
   // Token: 0x04000AA8 RID: 2728
   ach_researcher,
   // Token: 0x04000AA9 RID: 2729
   ach_cemetary,
   // Token: 0x04000AAA RID: 2730
   ach_radiotower,
   // Token: 0x04000AAB RID: 2731
   ach_build_reorganizer,
   // Token: 0x04000AAC RID: 2732
   ach_build_cookingstandOne,
   // Token: 0x04000AAD RID: 2733
   ach_build_purifierOne,
   // Token: 0x04000AAE RID: 2734
   ach_build_foundation_10,
   // Token: 0x04000AAF RID: 2735
   ach_build_foundation_100,
   // Token: 0x04000AB0 RID: 2736
   ach_build_foundation_1000,
   // Token: 0x04000AB1 RID: 2737
   ach_sharkKiller_1,
   // Token: 0x04000AB2 RID: 2738
   ach_sharkKiller_10,
   // Token: 0x04000AB3 RID: 2739
   ach_sharkKiller_50,
   // Token: 0x04000AB4 RID: 2740
   ach_gatherer_100,
   // Token: 0x04000AB5 RID: 2741
   ach_gatherer_500,
   // Token: 0x04000AB6 RID: 2742
   ach_gatherer_5000,
   // Token: 0x04000AB7 RID: 2743
   ach_birdKiller_1,
   // Token: 0x04000AB8 RID: 2744
   ach_birdKiller_10,
   // Token: 0x04000AB9 RID: 2745
   ach_birdKiller_50,
   // Token: 0x04000ABA RID: 2746
   ach_build_painter_50,
   // Token: 0x04000ABB RID: 2747
   ach_build_painter_200,
   // Token: 0x04000ABC RID: 2748
   ach_build_painter_1000,
   // Token: 0x04000ABD RID: 2749
   ach_survivor_day,
   // Token: 0x04000ABE RID: 2750
   ach_survivor_week,
   // Token: 0x04000ABF RID: 2751
   ach_survivor_month,
   // Token: 0x04000AC0 RID: 2752
   ach_survivor_year,
   // Token: 0x04000AC1 RID: 2753
   ach_diveDeep,
   // Token: 0x04000AC2 RID: 2754
   ach_pufferKiller_1,
   // Token: 0x04000AC3 RID: 2755
   ach_pufferKiller_10,
   // Token: 0x04000AC4 RID: 2756
   ach_pufferKiller_50,
   // Token: 0x04000AC5 RID: 2757
   ach_stoneBirdKiller_1,
   // Token: 0x04000AC6 RID: 2758
   ach_stoneBirdKiller_10,
   // Token: 0x04000AC7 RID: 2759
   ach_stoneBirdKiller_50,
   // Token: 0x04000AC8 RID: 2760
   ach_cookedRecipe,
   // Token: 0x04000AC9 RID: 2761
   ach_reach_pilotIsland,
   // Token: 0x04000ACA RID: 2762
   ach_reach_bigIsland,
   // Token: 0x04000ACB RID: 2763
   ach_boarKiller_1,
   // Token: 0x04000ACC RID: 2764
   ach_boarKiller_10,
   // Token: 0x04000ACD RID: 2765
   ach_boarKiller_50,
   // Token: 0x04000ACE RID: 2766
   ach_captureAnimal_1,
   // Token: 0x04000ACF RID: 2767
   ach_captureAnimal_10,
   // Token: 0x04000AD0 RID: 2768
   ach_captureAnimal_50,
   // Token: 0x04000AD1 RID: 2769
   ach_captureRareAnimal,
   // Token: 0x04000AD2 RID: 2770
   ach_reach_captainIsland,
   // Token: 0x04000AD3 RID: 2771
   ach_mamaBearKill,
   // Token: 0x04000AD4 RID: 2772
   ach_balboaBicycle,
   // Token: 0x04000AD5 RID: 2773
   ach_fixErrol,
   // Token: 0x04000AD6 RID: 2774
   ach_brunosToolboard,
   // Token: 0x04000AD7 RID: 2775
   ach_tinyLittleMurderer,
   // Token: 0x04000AD8 RID: 2776
   ach_balboaMadeYouLook,
   // Token: 0x04000AD9 RID: 2777
   ach_vasagatan_Bomb,
   // Token: 0x04000ADA RID: 2778
   ach_allNotes_RadioTower,
   // Token: 0x04000ADB RID: 2779
   ach_allNotes_Vasagatan,
   // Token: 0x04000ADC RID: 2780
   ach_allNotes_Balboa,
   // Token: 0x04000ADD RID: 2781
   ach_ratKiller_1,
   // Token: 0x04000ADE RID: 2782
   ach_ratKiller_10,
   // Token: 0x04000ADF RID: 2783
   ach_ratKiller_50,
   // Token: 0x04000AE0 RID: 2784
   ach_bearKiller_1,
   // Token: 0x04000AE1 RID: 2785
   ach_bearKiller_10,
   // Token: 0x04000AE2 RID: 2786
   ach_bearKiller_50,
   // Token: 0x04000AE3 RID: 2787
   ach_allRBPaintings,
   // Token: 0x04000AE4 RID: 2788
   ach_allNotes_Caravan,
   // Token: 0x04000AE5 RID: 2789
   ach_allNotes_Tangaroa,
   // Token: 0x04000AE6 RID: 2790
   ach_zip_OneGo,
   // Token: 0x04000AE7 RID: 2791
   ach_zip_100m,
   // Token: 0x04000AE8 RID: 2792
   ach_zip_500m,
   // Token: 0x04000AE9 RID: 2793
   ach_zip_1500m,
   // Token: 0x04000AEA RID: 2794
   ach_excevator_1,
   // Token: 0x04000AEB RID: 2795
   ach_excevator_20,
   // Token: 0x04000AEC RID: 2796
   ach_excevator_50,
   // Token: 0x04000AED RID: 2797
   ach_tiki_completed,
   // Token: 0x04000AEE RID: 2798
   ach_pipes_30,
   // Token: 0x04000AEF RID: 2799
   ach_beekeeper_10,
   // Token: 0x04000AF0 RID: 2800
   ach_beeCaptures_1,
   // Token: 0x04000AF1 RID: 2801
   ach_beeCaptures_10,
   // Token: 0x04000AF2 RID: 2802
   ach_beeCaptures_25,
   // Token: 0x04000AF3 RID: 2803
   ach_secret_tangaroa_claw,
   // Token: 0x04000AF4 RID: 2804
   ach_instrument_notes_1,
   // Token: 0x04000AF5 RID: 2805
   ach_token_tangaroa_10,
   // Token: 0x04000AF6 RID: 2806
   ach_token_tangaroa_20,
   // Token: 0x04000AF7 RID: 2807
   ach_token_tangaroa_30,
   // Token: 0x04000AF8 RID: 2808
   ach_botKiller_1,
   // Token: 0x04000AF9 RID: 2809
   ach_botKiller_10,
   // Token: 0x04000AFA RID: 2810
   ach_botKiller_20,
   // Token: 0x04000AFB RID: 2811
   ach_tangaroa_cockpitLaunch,
   // Token: 0x04000AFC RID: 2812
   ach_fireworks_50,
   // Token: 0x04000AFD RID: 2813
   ach_hidden_tangaroa_room,
   // Token: 0x04000AFE RID: 2814
   ach_allMysteryLootUnlocked,
   // Token: 0x04000AFF RID: 2815
   LAST
}


Unlock Achievement

public static bool UnlockAchievement(AchievementType type)
{
   if (!AchievementHandler.UserStatsRecieved)
   {
      return false;
   }
   if (!AchievementHandler.ShouldTrackAchievements)
   {
      return false;
   }
   if (AchievementHandler.Achievements.ContainsKey(type))
   {
      Achievement achievement = AchievementHandler.Achievements[type];
      if (!AchievementHandler.HasUnlocked(achievement.type))
      {
         AchievementHandler.UnlockAchievement(achievement);
      }
      return true;
   }
   return false;
}


Add Achievement

private static void AddAchievement(AchievementType type)
{
   AchievementHandler.Achievements.Add(type, new Achievement(type));
}


I hope you guys enjoy.
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS