Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,601
Reaction score
3,830
First Language
Java's Crypt
Primarily Uses
RMMZ
I've fixed the image link.
 

MeinQueerbo

Warper
Member
Joined
May 23, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
That will help hopefully.

Edit: It didn't.
 
Last edited:

jkweath

Goes Fast
Veteran
Joined
Sep 21, 2016
Messages
397
Reaction score
594
First Language
English
Primarily Uses
RMMV
@Hudell Wanted to pop in again and ask a question.

When playtesting through the RPGMaker software, if I use the code to activate an achievement, nothing happens (which is normal). However, when the game is deployed and the script to activate an achievement runs, the game instantly closes itself without leaving an opportunity to check the console.

Is this intended behavior? I haven't had the chance to check if it works after the game is properly uploaded and connected to Steam.

@Hudell I wanted to bring up the "game crashing when attempting to activate an achievement" issue again if you don't mind.

When I released Celestial Hearts on Aldorlea awhile back, I had to update it to remove your achievements plugin because anyone who wasn't logged onto Steam would have their game crash every time an achievement tried to activate.

That's understandable considering the plugin shouldn't have been there to begin with. However, I did get a report from a Steam user today who is experiencing the same issue. My assumption is that either the user pirated the game or, they ran the game without Steam running (or weren't connected to the internet maybe?)

Right now I'm trying out a fix where I have the game check to see if Steam is running first (via CycloneSteam.running) before activating an achievement. That said, I still wanted to bring up the problem with you again in case you had time to look into it.

Also a bug that should be easier to fix:

Code:
static getAchivement(achievementId) {
    if (!achievementId) {
      console.error('Achievement name not provided.');
      return false;
    }

    if (!this.greenworks) {
      return false;
    }

    if (!this.running) {
      return;
    }

    return this.greenworks.getAchivement(achievementId, () => {
      // #ToDo
    }, () => {
      console.log(`Failed to check achievement: ${ achievementId }`);
    });
}

The script "CycloneSteam.getAchievement('ACHIEVEMENT_NAME')" won't work because you've spelled it "getAchivement" in the plugin.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,601
Reaction score
3,830
First Language
Java's Crypt
Primarily Uses
RMMZ
@Hudell I wanted to bring up the "game crashing when attempting to activate an achievement" issue again if you don't mind.

When I released Celestial Hearts on Aldorlea awhile back, I had to update it to remove your achievements plugin because anyone who wasn't logged onto Steam would have their game crash every time an achievement tried to activate.

That's understandable considering the plugin shouldn't have been there to begin with. However, I did get a report from a Steam user today who is experiencing the same issue. My assumption is that either the user pirated the game or, they ran the game without Steam running (or weren't connected to the internet maybe?)

Right now I'm trying out a fix where I have the game check to see if Steam is running first (via CycloneSteam.running) before activating an achievement. That said, I still wanted to bring up the problem with you again in case you had time to look into it.

Also a bug that should be easier to fix:

Code:
static getAchivement(achievementId) {
    if (!achievementId) {
      console.error('Achievement name not provided.');
      return false;
    }

    if (!this.greenworks) {
      return false;
    }

    if (!this.running) {
      return;
    }

    return this.greenworks.getAchivement(achievementId, () => {
      // #ToDo
    }, () => {
      console.log(`Failed to check achievement: ${ achievementId }`);
    });
}

The script "CycloneSteam.getAchievement('ACHIEVEMENT_NAME')" won't work because you've spelled it "getAchivement" in the plugin.

Do you know what is the error that happens when the game crash with the achievement?
The plugin already checks CycloneSteam.running before trying to do anything, so checking it again won't make any difference.
 

jkweath

Goes Fast
Veteran
Joined
Sep 21, 2016
Messages
397
Reaction score
594
First Language
English
Primarily Uses
RMMV
Do you know what is the error that happens when the game crash with the achievement?
The plugin already checks CycloneSteam.running before trying to do anything, so checking it again won't make any difference.
No, because the game crashes instantaneously alongside the console log.

If you ever have a couple minutes, this problem is super easy to replicate. All you have to do is set up an event that activates an achievement, deploy the project (this is the important part, it wont crash if you run in RPG Maker) and run the project. When the achievement attempts to activate, the game will crash.

If you or nobody else can replicate the problem by following those steps, then the problem is on my end. I assume I have the correct files since everything works normally otherwise.
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,413
Reaction score
1,323
First Language
Finnish
Primarily Uses
RMMV
@jkweath
If you use Visustella Core, you could make a common event that always starts at the new game checks

Code:
CycloneSteam.isSteamRunning()

and if true do script command

Code:
CycloneSteam.restartAppIfNecessary(appId)

replace the appid with your appid.

and if false, go to title screen.

What it would make is cause the player to not be able to start the game without Steam running and has the app, thus eliminating crash issue as well as acting as a rudementary protection.
 

jkweath

Goes Fast
Veteran
Joined
Sep 21, 2016
Messages
397
Reaction score
594
First Language
English
Primarily Uses
RMMV
Thanks for the suggestion Tuomo. I'll definitely consider it, though I hope it doesn't have to come to that. I'd rather avoid any solution that involves potentially locking out an innocent player, or someone who just doesn't want to have Steam loaded for whatever reason.

The problem seems pretty rare so far, so for now I posted instructions on my game's discussion board for how to manually disable Hudell's plugin. That way I won't have to disable achievements for everyone or program an in-game toggle, which is beyond my abilities ATM unfortunately.
 

RongRong

Warper
Member
Joined
Mar 14, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
@Hudell
Hello there, I am kinda new here,
I have downloaded Cyclonesteam and I have put it in the plugin folder and I have turned it on in the plugin manager but when I want to use the plugin command it just doesn't show in the list, Am I using it wrong? or is there something else that I need to do?
I am sorry but I am really a newbie at this.

I have screenshots for references :

1.jpg3.png2.jpg
 

erikmidnatt

Mercenary Wizard possessed by an Evil Spirit
Veteran
Joined
Oct 8, 2015
Messages
367
Reaction score
95
First Language
English
Primarily Uses
RMMV
@Hudell
Hello there, I am kinda new here,
I have downloaded Cyclonesteam and I have put it in the plugin folder and I have turned it on in the plugin manager but when I want to use the plugin command it just doesn't show in the list, Am I using it wrong? or is there something else that I need to do?
In case you haven't figured it out, or someone else is looking, I am pretty sure these are all scripts, so you have to use the script function and not the plugin command feature.

Third tab, advanced "Script..."

That said @Hudell thanks for the plugin and write up.
 
Last edited:

RongRong

Warper
Member
Joined
Mar 14, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
In case you haven't figured it out, or someone else is looking, I am pretty sure these are all scripts, so you have to use the script function and not the plugin command feature.

Third tab, advanced "Script..."

That said @Hudell thanks for the plugin and write up.

Thank you for the answer! That cleared up lots of things.
 

Latest Threads

Latest Posts

Latest Profile Posts

Progress on one of my projects has been slow, but I'm at a spot now where I feel like sharing the four main characters.

From left to right we have: Amabel, Tibby, Dusty, and Wren.

tibbyrpgcast.jpg
I'm in a much better mood about my game than I was 2-3 days ago. I keep switching between sideview and front because of the amount of assets needed for side (I'm drawing it all myself)... but I've decided to stick with front, for my own sanity. sidenote... people, planning is important. I've spent so long on just getting my game's ideas off the ground because I didn't plan ahead.
unknown.png

"Fight me."
I'll finally wash my clothes today!
SA46ATTACK.gif :kaojoy:New Arab character in action.

Forum statistics

Threads
110,609
Messages
1,054,687
Members
143,736
Latest member
wildsky
Top