[plugin] firebase

From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • btw! rexrainbow, gr8 plugins man!

  • so does that mean that nobody has tried this with xdk?? I'm thinking of implementing a solution for my game (which is finally built on xdk) using rex rainbow's plugin for firebase but i'd like to know in advance if it will be a waste of time....

    Someone had exported Firebase on xdk already

  • that's great! i need to get practice in order to dominate firebase. i'm struggling trying to retrieve a single value using item book! i want to create a password so that my students can advance thru my game with it. i'd change it at the database for every class, so they don't pass the code to other fellas... still no luck!

  • xoros

    Here is a demo of lobby and rooms. And Capx file1. Capx file2 - chat room only.

    I had not finished these documents.

    Hey rexrainbow, is this something that you can address?

    https://www.dropbox.com/s/7ddbpsy9qkln8 ... e.png?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • remy-jay

    Oops, I had broken my old capx. Here is some new sample capxs of my room plugin. And I will try to fix my old capx if possible.

    Edit:

    I had rewrote most of code in rex_firebase_room plugin befrore, hope it could be more easy to use.

  • remy-jay

    Oops, I had broken my old capx. Here is some new sample capxs of my room plugin. And I will try to fix my old capx if possible.

    Edit:

    I had rewrote most of code in rex_firebase_room plugin befrore, hope it could be more easy to use.

    When I try the referenced CAPX I see the following <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://www.dropbox.com/s/irlcn7pkxmw2p ... 2.png?dl=0

  • remy-jay

    I see. You might update all firebase related plugins. I moved some subroutines into rex_firebase_apiv3 plugin, to remove repeated code.

  • rexrainbow, I"m pretty sure I jumped in with rex_firebase_apiv3 from the beginning... that's the only rex_firebase_api* behavior I have in the C2 folder anyways

  • remy-jay

    I had updated all firebase plugins again, to ensure that we will have the same version of plugin, please try updating them again.

  • rexrainbow

    Hi, I've just started using your plugins and I need help with some of the basic, of probably some suggestion of the best practice using firebase. Lets say I have firebase db like this:

    "queue":
    	- "queue_a":
    		- "1":
    			- "pax":2
    			- "status":"CALLED"
    		- "2":
    			- "pax":1
    			- "status":"WAITING"
    	- "queue_b":
    		- "1"
    			- "pax":4
    			- "status":"WAITING"
    		- "2"
    			- "pax":4,
    			- "status":"WAITING"
    "other_key":...
    [/code:3bzwuc16]
    
    How can I get the count of groups waiting in each queue_a and queue_b?
    
    So far, I've tried using your itemtable plugins: I load all items at the start of layout and display result with ItemTable.Count, but I only get the count result of the root domain. How can I get the count of subdomain? Do I need to set domain to each specific subdomain, get count, and set to another subdomain, get count again? Or in related with construct 2, is it probably better if I load all items then store it in local JSON plugin (I'm using Yann's JSON plugin) and count it from there?
    
    I hope my question is clear enough. Thank in advanced.
  • tmntppn

    Load the whole result into Yann's JSON plugin ( I had another JSON plugin, too ) to get items count at arbitrary node.

  • Hi rex, I've come across something that I'm not sure whether it's a bug or it's intended to be.

    • If I set a value (with send-set) into, lets say a tickcount, I received one callback as I think it should.
    • But if I set server timestamp, I received two callbacks, both with different Firebase.LastData value.

    Is this a bug?

  • tmntppn

    Do you receive data back by "Action:Add callback"? Yes, it will receive data when the watching value has changed.

    And server timestamp will receive twice, it is not a bug. First time it returns the hypothetical value from local, then it returns the real server timestamp.

    To get the server timestamp value directly, try calling "Action:Add once" after sets server timestamp COMPLETED.

    Edit

    Here is another application plugin to get server timestamp continuously.

  • rexrainbow Thx, I'll try your curtime plugin.

    One more thing is with the FirebaseAPIV3. Is there a way to set the database URL value from construct action (such as Firebase-set domain)? The reason is because I want to be able to set this URL dynamically (I use AJAX plugin to read external config file) so I can deploy my project in two places, both needs their own db, without needing to change the programming code.

  • tmntppn

    I could try to add this feature, it might take some days.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)