Vallhalen's Recent Forum Activity

  • Every time I sit to my project after night construct asks to install custom add-ons I use in project? Why? How can I check if everything is ok with for ex. chrome settings and so on?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • As I do projects for facebook platform mainly , we are using instant games and fb leaderboard. But out of curiosity. Are there any updated, SAFE methods to make LB which will be hard to "cheat"?

    Examples would be great also :)

    What are Your best practisies in this case?

  • Hello guys- maybe someone could help with this:

    while this code works normally on desktops in instant games, it wont work on mobile. It looks like ajax request url isnt triggering on mobile- but why ?

    and this is the content of ajax: request url block

    "http://someurl/add_user_points/?points="&score&"&uid="&InstantGames.PlayerID&"&pic="&InstantGames.PlayerPhotoURL&"&name="&InstantGames.PlayerName&"&level="&LevelNumber&""

    EDIT: status of game is "live" on instant games- with all verifications done and so on ;)

    I know it may be too much but You helped me a lot last time so maybe this time fredriksthlm ?:)

    EDIT2: "https://someurl/check/" without parameters works normally on mobile phone.(200)

    EDIT3: hahaha stupid me, always remember to use httpSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS ;)

  • While my games acts perfect in areas of leaderboard and share on fb, I don't get what is the best way to implement (configure), and collect data to see them in facebook analytics. Is it possible? Do I miss something? Under "View Analytics" I can see some basic stats like retention or activity. But when I need stats like:

    player with ID x started level 1

    player with ID x started level 2

    player with ID x started level 1 (again- I assume after he failed before)

    What is the purpose? I need to prove if player with only 1 life/chance to die will retur to game after lose and play it again or leave it forever and I should implement for example 2 lives in game

    After several hours I'm finally stumped! The full game is private, but I have attached a .capx that has the same issue for me.

    In my game, clicking on an object causes a sound to play. Works on Computer Browsers but Mobile browsers don't play any sound no matter how much I tap the screen, or tinker with the settings.

    h*t*t*p*s*://1drv.ms/u/s!AqQz4jQiBdANhfZWBxSI_eFNGB1eLA

    I downloaded an example .capx from somewhere to see if the sound for it would play on my mobile browser, and it does. But no matter how I try, I can't reproduce the same results in my game.

    I even tried downloading the sound file from that .capx and uploading it to my test file (in case my sounds are bad?) and I also tried uploading my sound files into the working example .capx. Doesnt work.

    What am I missing?

    • My sounds are in the sound folder
    • I have .ogg and .m4a formats
    • Sound initiates on tap (or click)

    As long As I used other formats than .webmI had exactly same issue.

  • so, I made a account, and spent 99 dollars on construct 3, but I forgot my password yesterday around 5,since then, I have sent 4 password reset request, and have receive nothing, I have had other emails from construct but have not got the password emails. I have also continued to log in as I only use a handful of passwords, but none are working. I fear the worst, that its saying wrong password even if I use correct one. can someone please help. this is 99 dollars I have spent. does it just take a long time to receive the email? I don't know what to do and honestly I feel helpless.

    Have no fear! Had same problem few weeks ago. I was able to login to scirra.com with my old construct 2 details but it was impossible to login to construct.net with my old details. Just contact support- They will help You in few hours ;)

  • The shareAsync is already in the plugin.

    The thing you see from space invader is not a shareAsync. It is a chooseAsync (to choose messenger context) followed with an updateAsync (to post the picture/text in the messenger thread). These both functions are also in the plugin.

    I think you need to read and understand the Instant Games SDK, they are well explained in there.

    Thank You for Your help. After alot of clicks, alot of "fu**s" and many hours managed to do as follows:

    And after I click green button it shows friends list to send message on messanger! But when I click it, message never lands in friends messanger- I feel like I am really close and problem is template ID- what is it and how to define it? (What exactly should I do with it? ) Am I right and after this one thing it will work as expected?

    Additional:

    I have second button to share just on wall with predefined graphics:

    but "Text" never adds to post- why? Is it fixable?

    Once again thank You for Your help whithout it I would be still in deep forest ;)

  • I cant find edit option so need to add another instance to our discussion and maybe someone elese could join:

    1. Documentation of fb ig:

    #1 I found -> developers.facebook.com/docs/games/instant-games/sdk/fbinstant6.3

    #2 I found -> developers.facebook.com/docs/games/instant-games/guides/sharing

    In both of them we can find section about sharing SharePlayload() or FBInstant.shareAsync() Should do the trick right?

    Why I think it works normally? (evidence)

    Game on fb Space Invaders (https://www.facebook.com/spaceInvadersInstantGame/) allows me to share via messanger.

    https://i.imgur.com/aq8FdQD.png[/img]

    So I think it is something wrong with implementation in construct, not in api. Am I still wrong?

    Ashley maybe You could help?

  • this is controlled by the ig sdk. it is basically the Invite thing that should be used. Currently facebook want to move Instant Games out from messenger, so maybe it is not possible to post to messenger any longer.. it works differently for the different platforms, and it changes quite often. maybe it starts to work again soon.

    this has nothing to do with construct.

    Ok understand, so when I use construct there is no way to send message via messenger even with Java or something? Just no no ? Impossible and I hope you can show me direction ;)

    And how about text in share function ? It never showed to me via testing. Theere is correct image but text is not added to post. Thank you for your time and help!

  • no bug

    there are no difference between the intents atm. they were implemented for future possible new functionalities.

    So could You please tell me if it is possible (and how) to send info about game (and maybe best score) to messenger user?

  • As I maganged how to do basics like saving score to leaderboard and reading it as separated "players best" and "full leaderboard" I can show it below maybe it will help someone :

    -> System: Set cur_score to score

    -> InstantGames: Set score to cur_score on leaderboard "leaderboard" (contextual: No)

    To be able to save score you need to configure (add leaderboard) first in fb instant games interface in "my apps" tab".

    Then I have Personal best in separated elegant view with sheel like this:

    + System: On start of layout

    -> InstantGames: Load player score from leaderboard "leaderboard" (contextual: No)

    + InstantGames: On player score loaded

    -> PersonalBesttx: Set text to InstantGames.PlayerName

    -> PersonalBesttx_score: Set text to InstantGames.PlayerScore

    And it works.

    When it comes to full leaderboard (also another view, with some additional functions):

    + InstantGames: On leaderboard loaded

    ----+ System: For "" from 1 to 10

    -----> txt_scores: Append "# "&LoopIndex&". "&InstantGames.LeaderboardPlayerNameAt(LoopIndex) &"---"&InstantGames.LeaderboardScoreAt(LoopIndex)&" "&newline

    ----+ (no conditions)

    -----> System: Set wantToAddPersonalBest to True

    -----> InstantGames: Load player score from leaderboard "leaderboard" (contextual: No)

    + InstantGames: On player score loaded

    + System: Is wantToAddPersonalBest

    + System: InstantGames.PlayerRank > 10

    -> System: Set wantToAddPersonalBest to False

    -> txt_scores: Append InstantGames.PlayerRank&" "&InstantGames.PlayerName&" "&InstantGames.LeaderboardScoreAt(InstantGames.PlayerRank)

    And it works great aso.

    BUT I have a question (maybe bug in instant games?)

    If I have something like this:

    + Touch: On touched ButtonImage_Share_FB

    ----+ InstantGames: Is available

    -----> InstantGames: Invite with image ImageFB, text ""&(score+20), data InstantGames.PlayerID

    ----+ (no conditions)

    -----> Function: Call "PrepareToRestart" ()

    + Touch: On touched ButtonImage_Share_Messanger

    ----+ InstantGames: Is available

    -----> InstantGames: Request with image ImageFB, text "", data InstantGames.PlayerID

    ----+ (no conditions)

    -----> Function: Call "PrepareToRestart" ()

    It doeasnt matter which intent I use it always make "share on FB WALL" (no matter if I have button with : Request, Invite, Share or Chellenge)

    additionally if I use Additionally if I use "share" it never shares specified text from "text" field.

    It would be great if someone could clarify what every intent should do in documentation and check if it is really a bug :)

  • Hello, still learning construct and was looking for some reference to FB instant games leaderboard- found this topic: construct.net/en/forum/construct-3/general-discussion-7/fb-instant-games-leaderboard-133334 but as it is old, I decided to try and make a new one.

    There was a package in this old topic but it isnt available anymore from user jagoman

    For those that wanted a pre-made leaderboard, here is one I made:

    http://s000.tinyupload.com/index.php?file_id=72443483567597873242

    The leaderboard shows 10 players at a time. You can go to next / prev 10 players. There's also a button to view the top 10 players, and button to view your position in the leaderboard.

    It shows Player rank, score, name, and image.

    I can't give much support, but feel free to use it.

    To test it, just change the name of the leaderboard (mine is non-contextual), and upload the export to facebook, all submitted scores will show up. (note: I've only tested with a few players in the leaderboard)

    Can someone reshare this package or suggest something new? Thank You for help!

Vallhalen's avatar

Vallhalen

Member since 3 Sep, 2012

None one is following Vallhalen yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies