cyanic's Steam Achievements Integration

Don't copy it, just download it.
Anyway, this line of code should actually look like this:
$imported['cyanic-SteamUserStatsLite'] = 7
Another question... how do I add one to a stat? I want to make an achievement to open every treasur chest in the game.

steam = SteamUserStatsLite.instance
steam.set_stat 'Treasure_Chests',+=1
steam.update

This causes a syntax error.
You don't use Steam's API for that. What you gotta do is activate the achievement as usual, and then go back to the typical RGSS3 API and turn a switch on. Don't forget to add that switch as a condition for any treasure chest event to open those chests for you.
You don't use Steam's API for that. What you gotta do is activate the achievement as usual, and then go back to the typical RGSS3 API and turn a switch on. Don't forget to add that switch as a condition for any treasure chest event to open those chests for you.
Will that be able to track the achievement stat for every chest opened?

Edit: I might have been unclear.

The stat tracks every chest that had been opened and rewards it when they all have been.
Is it some one time achievement? Then you'd have to reverse the order of the steps I mentioned above.

I don't recall any incremental type of achievement on Steam so I doubt this interface includes such a thing at all.
Is it some one time achievement? Then you'd have to reverse the order of the steps I mentioned above.

I don't recall any incremental type of achievement on Steam so I doubt this interface includes such a thing at all.

It's a one time achievement, but ideally it tracks the number as well as chests are opened, but only counting if they haven't been opened in any of the player's saves.
If I may say, why not just make a variable that goes up every time you open a chest, then have a common event running that checks to see if the variable is equal to the number of chests, and then when it does, trigger the achievement?
If I may say, why not just make a variable that goes up every time you open a chest, then have a common event running that checks to see if the variable is equal to the number of chests, and then when it does, trigger the achievement?
That would work well, but I'd prefer to have Steam track a stat so players know how many chests they are missing for the achievement.
Didn't @kyonides say steam didn't support that?
Yeah, I see that. I thought Steam had the ability to track a stat that way. I think what I'll do is have a common event that the player can call within the game that tells them how many chests they have out of the total number I counted over all my maps.
Hi im new here and i need to know this masterpiece still work?

Cheers,
I used it recently and it worked
Hello everyone!
I'm having trouble getting this script to work.
From what I understood, you have to place the steam_api.dll, steam_appid.txt , and UtilsSteam.dll in the main project folder... Insert the script in Scripts and Apply a script to call the achievement in the events using the Achievement name.
I compile everything and Upload it as a build and set it live but when I go to play it through steam I keep getting this error:

Script 'Steam' line 384: RuntimeError occurred.
GetProcAddres: SteamAPI_Init or SteamAPI_InitA

I'm pretty sure I have the correct script (r7) for the steamworks sdk I'm using (1.58a)

I'd really appreciate the help!!!
UtilsSteam.dll is not part of this script. Did you get my script and cyanic's script mixed up?

Version r7 was updated Steamworks SDK version 1.48 so try downloading version 1.48a and see if that helps.
UtilsSteam.dll is not part of this script. Did you get my script and cyanic's script mixed up?

Version r7 was updated Steamworks SDK version 1.48 so try downloading version 1.48a and see if that helps.
Thanks for the response! It worked!!!
Hello everyone, I have question or I'm blind:
Can you post the script here in reply or a link to it, I seem not to be able to find it. Thanks

EDIT:
I found some demo but I can't open it keep crashing
Application load error: P:0000065432
The game demo actually works but I can't open the files. I tried putting in new project but still same issue
EDIT 2: I got into the files, for some reason it worked when I went to Open With:... weird..

Game crashes upon running. Anyone can help me out what I did wrong? Also I want to note that I did not set any stats since I don't really like them (need them) only achivs I need. I want to note that the achiv did show in the steam library game.
Did I need to change steam = SteamUserStatsLite.instance to achievments or something or do I need to make stats to trigger it or what?

EDIT 2:

After I updated SDK to newest version I get new crash (4th picture to the right)
Hello everyone 🙂
First of all, thank you for the script to integrate steam achievements!
But unfortunately I can't get it to work right now.
I'm pretty sure I did everything like described. I used the r7 version of the script and inserted it somewhere in "Scripts", I used sdk 1.48, I put the steam_api.dll and steam_appid.txt in the folder aswell. And I put a script call to call the achievement right after you start a new game so I can test it. But when I upload the build on steam and start the game it instantly crashes.
I don't if I'm just dumb or if I'm overseeing some stupid little thing but I hope someone is able to help me 😀
Hello everyone 🙂
First of all, thank you for the script to integrate steam achievements!
But unfortunately I can't get it to work right now.
I'm pretty sure I did everything like described. I used the r7 version of the script and inserted it somewhere in "Scripts", I used sdk 1.48, I put the steam_api.dll and steam_appid.txt in the folder aswell. And I put a script call to call the achievement right after you start a new game so I can test it. But when I upload the build on steam and start the game it instantly crashes.
I don't if I'm just dumb or if I'm overseeing some stupid little thing but I hope someone is able to help me 😀
ye, i have same issue. hope someone with big brain will help us out.
I'm having the same issue (sorry if this is necro posting; im releasing a game on the 13th and I need a lot of help.)
I used this method Steamworks SDK v1.48 and above: r7

The game gives no error message, it just doesn't give any achievements

I compared my game to the demo to see if I made any mistakes, but didn't see any mistakes.

Original thread: https://forums.rpgmakerweb.com/threads/cyanics-steam-achievements-integration.50640/