Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Angel Seraph

34
Posts
1
Topics
38
Followers
7
Following
A member registered Jun 11, 2019 · View creator page →

Creator of

Recent community posts

Thank you. I'll have a play around with those.

Hello,

I really like this tool you've created. I have 2 questions:

  1. I was just wondering if there is a way to add custom arguments. For example, if I want to display the genre of a song in the track listing, how would I do that?
  2. If I want to access a song to be used elsewhere besides in the music_room screen how would I be able to retrieve it? I've noticed that when declaring a track it uses the `.add()` method. However, I don't really know how I would get that song outside of the music_room screen. For instance, if I want to get the song details, example: `mysong.artwork` or `mysong.name` (or something like that).

Thank you in advance.

Do you mean the `message` argument? That should work as a description for the achievement.

    "welcome": Achievement(name=_("Welcome to My Game"), message=_("Start the game."), ... )

Under "screen achievement_menu():" try one of these:

  1. text "[t.name!tq]" ... (same for the rest)
  2. text t.name ... (same for the rest)

May I see a screenshot of the code (the screen code under "achievement_menu()" and "achievement_notification()"). I just did some testing on my end and the translations seem to be working fine.

Hm... I'll take a look and see what I've missed.

hello. So after downloading the file there's a folder called 'acheivements'. Copy that folder to your game's game folder.

Also, be sure to add this line somewhere 

init python:
    config.top_layers.append('achievement_notify')

Once you've done those, there is an example in the script file for how the achievements will be triggered/granted.

I hope this helps.

Hello.

So in your project open the 'options.rpy' file and add this line somewhere:

define config.top_layers = [ 'achievement_notify' ]

Or even better, do this:

init python:
    config.top_layers.append('achievement_notify')

I hope this works.

Hm. I haven't delved into that aspect, and it's not something I want to spend much time trying to figure out any time soon.

(1 edit)

Hm. Interesting. I'll take a look into that. Thanks for bringing it up.

Okay, I fixed it. Forgot to configure the layers.

I'll upload the fixed version soon.

Ah, so you want to use the screen equivalent to add achievements from a screen action?

If that's the case and to answer simply, yes. Here's the screen equivalent :

Function( Achievement.add, <achievement class instance here> )

You just need to add it using the "Function()" action.

Further example:

textbutton "Load Game" action [ShowMenu("load"), Function(Achievement.add, my_custom_achievement)]

I hope that answers your question.

Hello, I'm trying to fully understand your issue. Are you referring to:

    1. The achievement button on the menu screen?
    2. The achievement notification that appears when getting an achievement?

    Hello

    Is it possible to send me the zip file of the project so I can take a look? I might have to do some research on this so I can properly troubleshoot this problem in the future.  Add me on discord and we can chat further - Angel Seraph#9599

    Hello.

    You can simply copy the files over to the game folder. Then you'll need to make sure you create a button (like this)...

    textbutton _('Achievements') action ShowMenu("achievement_menu")

    ... in the menu navigation in 'screens.rpy' that will show the achievement screen.

    You can also take a look at the example in that file to get an idea of how to set it up.

    Let me know if this worked for you. Thanks.

    (1 edit)

    Hello.

    There should be an example (or comment) showing how to add the image for the achievement. It should be in the file 'achievement.rpy' file. Let me know if you've found it.

    (1 edit)

    1) Okay. So I've noticed a typo for the achievement file --> "acheivements.rpy" is misspelled. (Whoops, my bad.) Maybe try to correct the filename and see if that solves the issue.

    2) Yes, it works without Steam. I haven't dabbled much into getting it to work with Steam at the moment. I am considering uploading the source code to GitHub so others can contribute to help out as I'm busy with other projects and IRL.

    Hm... I think I may know what the problem could possibly be. But just to be sure how exactly are you importing it or could you show the line/code you're using for the import?

    Ah, glad you worked it out.
    Was just typing out a long response providing some solutions.

    (6 edits)

    Hm. Interesting how that line isn't translatable. I'll see what I can come up with and get back to you.

    EDIT: Okay, so it seems that Renpy will detect if there are multiple 'translatables' that contain the same characters and will only just use one of them to translate the rest. In other words, the first instance of "Achievements" will be in screens.rpy (line ~314), and that will show up in the translation file, and any other instance of the same will be translated.

    As for that line with the ".format(...)" you may have to use the alternative. See example.

    I will update the DL file.

    Hey, sorry this response is late.

    That's great the hear. And, yes, please do feel free to send a screenshot as well as the solution so I can add it to the code.

    Thank you!

    Hello, apologies for the late response. I've had a little dabble around and... found a potential solution, though I'm not able to fully test it on my end.

    Hello.

    Thank you for letting me know. In that regard, I'll spend some time working on the "responsive" mobile version in the next few days or so. Will update the file when completed.

    (2 edits)

    Hello, thank you for bringing this to my attention. I found the solution to the problem, which I'll update in the download file.

    Add this line somewhere (preferably in options.rpy)
    define config.allow_underfull_grids = True

    That should solve the problem.

    Also, remove  ysize 1080  as that's not needed. Will upload the updated code.

    Thanks. No problem. It'd be good for me to know what caused or how that problem even occurred. I look forward to hearing your results.

    (1 edit)

    Could you DM me on discord so we can go through it thoroughly - Angel Seraph#9599

    EDIT: Not sure why that part has been affected. It really shouldn't have. Hm...

    (1 edit)

    Hello,
    What part are you misunderstanding or having trouble with?

    Thank you! Much appreciated.

    Hello there. Any updates on the issue? Or did you managed to resolve it?

    (2 edits)

    Hello! Could you share what you've modified?

    A quick solution:

    Try 'Delete persistent' then ''Force recompile' from the RenPy launcher.

    If the problem still persist, could you contact me directly on DIscord. My Discord name is Just A Concept#9599

    No problem. Glad you got it working.

    Hello. While I did say to update to the latest version of RenPy (version 7.4.0 or higher) that was mainly to be able to use the "fit" property. But I still recommend updating to the latest to keep up to date with the latest (bug) changes.

    I have some solutions that may solve your issue:

    1. Within the RenPy Launcher; DELETE PERSISTENT;
    2. Within the RenPy Launcher; FORCE RECOMPILE;
    3. Try/Test the game again.

    I recommend updating to the latest version of RenPy. You can do this by;

    1. Within the RenPy Launcher; click UPDATE (should be below "launch project")
    2. Select the install underneath "release". That should update you to the latest version.
    3. Try/Test the game again.

    If none of those still doesn't work try deleting and re-downloading the "Achievements" files again - ONCE you've updated RenPy to the latest.

    Also, I'm not sure why you're getting this "Exception: store.achievements is being given a default a second time." since that variable IS defaulted once.

    Okay. So it seems to work perfectly on my end. Not sure what could be going wrong on your end. But to be on the safe side, could you go into the code (file "achievements.rpy") and remove the part "fit='contain'" on both lines 9 and 11.

    Hm. Okay, I'll take a quick look and do some tests and get back to you later today.

    Hello, thank you for reaching out. I believe the problem may have to do with the version of Ren'Py you're using. Try updating to version 7.4.0 (or higher). That should solve the issue.