locohost's Recent Forum Activity

  • Since I can't return an array of values from a function, I believe my only choice is to set values and in various global arrays. This produces "code" that's insanely hard to read. I like self-documenting, readable "code" in my projects. I use lots of vars with meaningful names in place of magic-numbers/strings to help achieve this.

    So when using "global" arrays, is there only ever a single instance when I add it to the project? I don't have to explicitly create an instance in code? In my functions, and their calling code, do I have keep using "global array pick-by-uid" events to get a reference to the single global array? Or preferably, can I just reference the single global array (no pick-by-uid needed) in expressions and I will always be referencing that one single/same "global instance"?

    When you have couple minutes free, please help me understand above correctly.

    Also...

    When you're building functions that need to return complex(ish) sets of data, how do you do it?

    Thank you for sharing your Construct 3 expertise!

    Mark :-)

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes Google Drive has file versioning too. Thanks! :-)

  • Ok thank you. I'll look into it. Hopefully Google Drive does this. This is the one I pay for.

  • The current C3 "auto-backup" feature is not useful. It auto-saves over the same file at an interval over and over. So you would only have the ability to recover as long as your crash or code issue occurs before the next auto-save. Didn't (doesn't) C2 save multiple timed versions? Or am I think of another game dev tool?

    Why can't C3 existing auto-backup just add a timestamp to the filename so we can have lots of versions immediately available in the event of what just happened to me? This is a trivial code change.

  • I feel like C2 used to allow me to keep several (configurable number in settings) auto-backups of my project. Didn't it? How do I do this in C3? I was working on my game yesterday, I closed my laptop which makes it sleep, I opened it this morning and my layout is completely gone! I can open the file, but it's completely empty now. Why?!?! So I opened the single auto-backup project and the layout is completely blank there too. So where are my other several timed backups? One of them must surely have my layout intact so I can recover right?

    If this is not a feature and will never be a feature, how do I maintain my source so I can recover from random crashes and vanishing code like above?

    Thank you for helping :-)

  • That selfsignedcert link is good! That's waaaay easier that what I did. Thanks for sharing

  • Thanks locohost and ASHLEY. I'll wait for r70.

    Sorry I wasn't more helpful

  • Any hints?

    Mikal

    No not really. It's a bug in your plugin (or the actual SDK code maybe?) code in main.js on line 73. Some const var is getting (attempting to be) set to a new value.

    I'd recommend using the sample addon provided in C3 docs and get that fully working locally. Then you know you're setup 100% and ready to work

  • Glad to help.

    Don't forget that you will need to add another URL when you publish your app. Or you could also use the "*" value to allow any origin.

    You're right, I will do that. Thanks again

    Related note: Scirra needs to plugin some kind of tip/payment system on this forum so we can send "tips" to super helpful people like you. I wish I could send a buck or three every time some one takes time to help me here. It should be integrated into the forum (not forced out in an external app) so it's super quick and easy to do

    Perhaps we could use Square Cash https://cash.me or something. It's really easy to setup and use.

  • Magistross You are a gentleman and a scholar my friend. It works now. I owe you a beer <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile">

    For next person searching on Firebase Storage issues: You have to install the Google Cloud SDK...

    https://cloud.google.com/sdk/docs/

    Then create a .json file like (I put mine in C:\Temp\ folder so it would be easy to access in cmd windows)...

    [
        {
          "origin": ["https://preview.construct.net", "https://editor.construct.net"],
          "responseHeader": ["Content-Type"],
          "method": ["GET", "HEAD"],
          "maxAgeSeconds": 3600
        }
    ]
    [/code:1j8a7kiu]
    
    Then run [u]gsutil cors set[/u] like...
    
    [u][b]gsutil cors set C:\Temp\cors-json-file.json [url=gs://my-storage-bucket/]gs://my-storage-bucket/[/url][/b][/u]
  • Here are the headers and response I see in Firefox console. Can anyone see an issue in either of below?

    SIDE NOTE: The Scirra forum app seems to have no trouble loading images from Firebase Storage. Can we get C3 to do this too please?

  • Wow. Thanks for posting Magistross

    Ok so we have some missing, or at the very least, high variance of visible console errors based on the browser you're using. I can't use Chrome because various C3 UI elements do not render correctly (not even usable render) in latest Chrome. Not sure why that is for me. Hopefully Scirra will figure this out.

    But anyway, using Firefox, it appears I'm missing console error info.

    Considering the error you see, is this something Scirra can fix maybe?

locohost's avatar

locohost

Member since 19 Sep, 2014

None one is following locohost yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

14/44
How to earn trophies