Portal 2

Portal 2

Not enough ratings
Adding Achievements to your Portal 2 Mod !
By MrBlume
This guide will show you how to add achievements to your Portal 2 Mod without the Portal 2 source code.
   
Award
Favorite
Favorited
Unfavorite
Explanations
First, you should know that there are limitations, you are limited to 51 achievements, the 51 of Portal 2. Why? Because we are going to use the API name of the already existing Portal 2 achievements and simply change the title and description in your Steamworks to create your own Portal 2 mod achievements !
Setting up your achievements in Steamworks
In your achievements section in Steamworks, you need to add your custom achievements:
API Name
Name
Description
Determined by
Is Hiden ?
Unlocked Icon
Locked Icon
<An already existing API name from Portal 2 (listed here[steamdb.info])>
<Your own achievement name>
<Your own achievement description>
Client
<Your choice>
<Your icon>
<Your icon>
Here's an exemple :

Now publish your update and you will see your achievement in your game library.
Setting up your achievement in Hammer
Now, go to hammer and create a logic_achievement.
In the logic_achievement parameters, set a name for triggering the achievement, and an achievement name with the API name of your achievement :
Once it's done, create an output to an object to trigger the achievement (in my case I choose the logic_auto to trigger the achievement on the start of the map) :
Now, compile your map and update your game via Steampipe and Steamworks.
See if it works!
Now, open your game and see if the achievement is unlocked when triggering it !
Did I miss something ?
Did I miss something? Or did I make a mistake?
If so, let me know in the comments.
This guide is in English for the understanding of as many people as possible but my main language is not English, if I made a language error, sorry!

In any case, I hope this guide has helped you!
5 Comments
Frankó Gábor Jan 11 @ 11:54am 
Thanks, it helped me a lot, but stil not working for my portal 1 mod. Can you pls do a p1 tutorial too? Or can we talk? my enail: piggreen99@gmail.com
MrBlume  [author] Dec 7, 2023 @ 5:45am 
Yes, this is told in the second section and this guide IS for people who are working on Steamworks.
Sorry !
mv Dec 7, 2023 @ 5:29am 
This guide assumes the reader has a Steamworks game, this won't work for most people.
MrBlume  [author] Sep 7, 2023 @ 9:58am 
I'll see, but I can offer you this guide to help you: https://steamcommunity.com/sharedfiles/filedetails/?id=234558809
Djohnn Djinn Sep 6, 2023 @ 2:13pm 
make a guide on how to make a portal 2 mod... plz?