elfwy's Recent Forum Activity

  • rexrainbow

    Result:

    1. (Wi-fi on) It prints "Online" 2 times

    • Online
    • Online

    2. (Wi-fi off) It prints "Online"

    • Online

    3,4,5 etc.. (Wi-fi ON) It prints "Online"

    -Online

    After: clean cache and wi-fi on:

    • Online
    • Online

    Seems like after offline it writes something in cache and blocks connection (i don't even have an idea what really happens)

  • rexrainbow

    Still can observe this bug. By the way, it affects not only in returning value (connected/not), also on saving. It won't save any data if it's not connected before you clean cache or reinstall app.

  • rexrainbow

    Yes, it works on PC, but not on mobile (cocoon io). I know that you can't test it, but i can. Is it possible to fix?

  • rexrainbow

    Hello. Sorry that i haven't sent you an axample about firebase bug for 3 month's. Although only i have this problem <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> I made example and i'll tell you how to reproduce the bug

    So, to reproduce this bug (firebase plugin returns "offline" even if i online) i used this way:

    1. Enter in game using wi-fi (Online mode). Firebase returns ONLINE https://pp.vk.me/c637825/v637825234/261 ... gUT4jI.jpg

    2. Off wi-fi and enter in game (Offline mode). And saving doesn't work. Firebase returns OFFLINE (Everything as it should to be)

    https://pp.vk.me/c637825/v637825234/261 ... VhveGY.jpg

    3. But... Now enter in game using wi-fi (Online mode). And it returns OFFLINE again. Why?

    https://pp.vk.me/c637825/v637825234/261 ... ZCPWSQ.jpg

    Btw to return (firebase online) back you should reinstall app or clear cache.

    Here is capx (r239): https://www.dropbox.com/s/tcl5z2nmiq9vv ... .capx?dl=0

    And APK (If you need): https://www.dropbox.com/s/oogacmad90a2i ... g.apk?dl=0

    Sorry for a lot of mistakes. And thanks. I very very hope you'll fix it

  • No, they work on it. Just read their forum

  • blackhornet

    Hello, how to save low-scaled pixel fonts without aliasing? For example, i want to save pixel font with scale 8px and after saving it should looks like pixel font, not like soap.

  • rexrainbow

    Hmm, It's quite good decision, but if imagine this situation: we have 2 devices: "A" and "B". I use "A" and play in my game for one week in offline. There I reached, for example: 25 coins and 100 diamonds. In B a play a little bit more in online, but reached 10 coins and 15 diamonds. Then this data from device "B" (10 coins and 15 diamonds) will be the newest. And if i connect to cloud device "A" which were in offline, then it will take all data from cloud and he will lose a lot coins&diamonds.

    So, will it be reasonable in this case to use this system?

  • rexrainbow

    I'm not sure about that. This game is "clicker", so probably auto-save variant would be much better than semi-auto.

  • rexrainbow

    Yes, that people could use one account on different devices and also to restore data if user deleted all local data

  • rexrainbow

    I tried to use taffy, but i like nedb because it's easier

    How i understand:

    If on-line -> Load from firebase

    If offline -> Load from nedb

    right?

    So, will this work if my game even can be opened in offline mode?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In my mobile game i use local database (NeDB by rexrainbow) and on-line database (Firebase by rexrainbow). So I'm confused how to use them together. Earlier i used this logic: Saving data (while playing) in NeDB and Firebase, then after next enter in game take data from NeDB, but if NeDB is empty, then try to take data from Firebase. And if it is empty too, then player entered in this game the first time. I thought this logic is the best, but it wasn't. This logic is very unstable and unreliable. So could you give me any advice?

  • That's in all examples. + Even if i add q3d main plugin at a new project.

elfwy's avatar

elfwy

Member since 28 Nov, 2014

Twitter
elfwy has 4 followers

Connect with elfwy

Trophy Case

  • 10-Year Club
  • 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
  • Email Verified

Progress

14/44
How to earn trophies