Torchlight II

Torchlight II

Not enough ratings
Achievements Modders
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
27.960 KB
1 Nov, 2013 @ 11:10am
1 Nov, 2013 @ 11:10am
3 Change Notes ( view )

Subscribe to download
Achievements Modders

Description
This is a framework for adding your own Achievements. First, and foremost, due to the limitations of Torchlight, we must collaborate to get our achievements to work properly. Thus, since two mods can't use the same menu name, I must give anyone who wants to use achievements their own number, and they must follow those guidelines, or added achievements won't work.

I will keep an updated list here:
1. Synergies
2. Petshop

Post a request below if you want to have your mod Achievements compliant. Before I give you a spot in line, you will need to build and test it so that I am not adding many extra pointers for no reason (it isn't easy to add in what is needed for full integration, so, only serious requests).
***********************
Whether you have replied or not, you can download the mod here to see if you are capable of adding your own achievements. It has the framework, and with proper planning, not too much has to be done. Due to limitations of Torchlight 2, only 5 mods with achievements will be able to be loaded at one time. Well, more can be, but only the top 5 will be shown. Not such a huge issue with the mod limit being 10.

How it works is that it looks for the first mod and puts it in location 1, if it isn't there, it looks for 2 and puts it in place and so on down the line. As of right now, I have mods 1-5 integrated. Once I have a request for #6, I will add 3-5 more and try to stay ahead of the pack. Maybe I won't get any requests and that will make it really easy for me.
***********************
If you have a number, or just want to fool around, download the mod, and unpack it. Then copy it's contents into your mod. Nothing should overwrite unless you HAPPEN to name your files the same as I did, which is extremely unlikely. Depending on your number, you can erase the other mods not associated with you. If you are 4, erase Mod1, Mod2, Mod3 and Mod5 folders. If you are just testing, then do as you like.

After you delete, empty the mod folder you are designated into the folder that contains it. If you are in stats/mod4, then copy the files into the stats folder. The game needs certain files to be the in proper location and they are in separate folders just for sorting purposes.

In the ingamemenus folder, you will see a file called YOURMOD_Achievements_Window. This is a good template for you to use to make it look like the rest of Achievements. This is just a guideline and I didn't make your mod, so I can't tell you what to do. When you open it up, I have a bunch of dummy stats to show you how things should be laid out. What you will need to do, assuming you are following my template is create the following stats:

Lets say you want to track how many Baby Hippos are killed and away achievements on them:
1. Baby_Hippos_Achievement
2. Baby_Hippos_Max
These 2 stats are displayed on your link on the Mods page. This will show how many achievements you have gotten under the heading Baby_Hippos. Each achievement that someone collects adds to Baby_Hippos_Achievement, which, when it reaches Baby_Hippos_Max, it is completely achieved.

3. Baby_Hippos_Total
This is your running total of Baby_Hippos killed. How you increment that stat is outside the scope of this mod. Let just assume you know how to do that.

4. Baby_Hippos_1_Achievement
5. Baby_Hippos_10_Achievement
6. Baby_Hippos_50_Achievement
7. Baby_Hippos_100_Achievement
8. Baby_Hippos_1000_Achievement

Those are your switches for when you reach each achievement. When you do, this gets flipped to 1 and your bar turns orange and its on to the next achievement.

9. Baby_Hippos_1_MAX
10. Baby_Hippos_10_MAX
11. Baby_Hippos_50_MAX
12. Baby_Hippos_100_MAX
13. Baby_Hippos_1000_MAX

This is the stat you are comparing Baby_Hippos_Total to. Thus, if you have killed 11 baby Hippos, Achievement #3 would look like this: 11/50

You can delete almost all the stats I put in there, as they are not useful to you. If you use them, then you could get conflicts with other mods who may use them too. However, please do not touch Mod_Points_Add as that is the stat that transfers your points added to the over all achievement points in my mod. Leave it as is.

The other UI menus are for the links on the Mods page. Depending on your number, you will have to fill out 1-5 of these. This is because you have no idea how many other mods with achievements are loaded and you have to account for all 5 spots. Well, #1 only has to worry about the top spot. My Pet Shop mod has #2 covered, so, #3 and up have to account for other spots. I suggest just updating them identically, or updating 1, and renaming the others using the same method I have. Do not change any Menu names. If you change the menu name, then your mod won't be loaded since my mod won't know where it is.

I can explain until I am blue in the fingers, but the easiest method is to download this and Achievements and mess around with them until it works. Look at how I did Achievements or Pet Shop, which I have working with it. I have no idea if this will take off, so, please, post here if you have any questions.



2 Comments
gabbyjumps 2 Feb, 2014 @ 4:56pm 
baby hippos?
jkaplow21  [author] 2 Nov, 2013 @ 10:07am 
Will be gone on vaca for a week. So, if you are confused and/or need help, I'll be back after that.