Sparsha's Recent Forum Activity

  • Hi Tom, I released a plugin that allows Chat using Firebase Realtime Database: construct.net/en/game-assets/addons/firebase-realtime-database-950

    And I wanted to include a Demo for that. But the Construct Arcade says:

    What's Never Allowed?

    ✗ Chat rooms

    Is there any chance you would want whitelist my Demo?

    I would like to hear about any conditions if I would have to follow like auto-resetting Database every 24 hours or every hour?

  • Firebase Realtime-Database PRO plugin Early Access available now!

    Includes Chat Template for C3.

    Website: constructfirebase.com

    1. Firebase Realtime-Database PRO

    • Assign mini User Keys that can be copied and used to Tag users, send friend requests, etc.
    • Write & Read Presence- Get Online/Offline Status and last online timestamp of any user.
    • Advanced List management- querying and sorting
    • Write Server Timestamp
    • Remove Sync Listeners to save data usage

    With this you can Build:

    • Chat Rooms
    • Post & Reply System
    • Friend Management & Tag users
    • Show User Online/Offline Status

    2. Template

    • Global Chat Template (v2-alpha).c3p

    Note: This is an early release and more templates will be included soon

    Subscribe to Construct videos now
  • Haha you got me. having to manage two stores sucks 😅, but I guess its more secure to use the Addon Store page only.

    Thanks

  • Hi, I was wondering if there was a way to know if the person contacting me has actually purchased my assets from the asset store?

  • Well, you can't hide that. What minify does is shortens the names of all variables and objects and removes unnecessary blank spaces and all, to shorten the size of the code. It does also obfuscates the code. But that doesn't affect Strings.

    If you use JavaScript, you can somehow make it difficult for the hacker/attacker to understand code by obfuscating it and by string manipulation (encoding/decoding) your strings and using fake codes. (That's what I do in my firebase plugins)

    But still that's not enough. That's where the Security Rules comes into play. And you can also restrict your Firebase project to allow Reads/Writes from a specific domain only domains from the Google Developers Console.

  • You have got some extra double-quotes " " which convert your integer to string.

    Make it like this: "{ ""score"": " & scoreVariable & "}"

    Have a look at your Database Console. This is what a Number VS String looks like. Notice the double-quotes " "

  • Make sure your score is an integer and not a string

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oops, forgot sorry, try this-

    {
    	".read":true,
    	"$username":{
    		".write": "!data.exists() || (newData.child('score').val() > data.child('score').val())"
    	}
    }
    

    Now this allows either if no data exists or if the new data > old data

  • Desktop app crashes (closes) when running a project with FileChooser object. Create an empty project, add FileChooser, run - instant crash..

    Anyone else have this problem?

    Nope, Working fine for me. Tried both Stable and Beta

  • Use the Security Rules to do that

    Something like this-

    {
    	".read":true,
    	"$username":{
    		".write": "newData.child('score').val() > data.child('score').val()"
    	}
    }
    
    

    Allow writes only when New Data Value is greater than Current Data Value.

    The dollar symbol "$" means a wildcard location.

    Read more about rules: firebase.google.com/docs/reference/security/database

  • Haha thought so. Thanks anyways.

  • Just wondering, if I want my assets to be paid optionally as a donation, do you think it is allowed to post the Redeem Code Keys in the Asset Description?

Sparsha's avatar

Sparsha

Member since 17 Jan, 2018

Twitter
Sparsha has 16 followers

Connect with Sparsha

Trophy Case

  • 6-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

16/44
How to earn trophies