locohost's Forum Posts

  • Can you please clarify "one cannot exist without the other"? I understand that a child does not exist without a parent. I understand that a "partnership" implies 2 or more individuals. That's not the Container issue I'm discussing :-)

    Perhaps I'm doing my "Monsters" wrong. Right now I have many uniquely named "Monster" sprites. They share properties (instance vars) on the Monster Family. Is this wrong? Should there be just one spr_Monster that has the shared properties of all Monsters, including a "Name" property. Then I should create many instances of this same spr_Monster and set the unique names and vars?

    EDIT...

    You know I can't do above. Each "Monster" has a unique image. I think I'm doing this correct by created each "Monster" sprite with unique names. Each is a "type" of "Monster". Each is different image with different values in the instance vars. I'm using a Family called "Monster" to store all their same/shared properties.

    Issue is I want to pick one Monster and at same time pick 3 other arrays that hold data specific to that picked Monster instance.

  • NOTE: "Container" is missing from Tags input at bottom.

    I have several different "Monster" sprites. I want to group together each Monster instance with 1 instance of a few other data arrays. I think Containers are the way to do this.

    I'm seeing what seems like a C3 bug to me, but perhaps I don't understand Containers correctly.

    Steps to recreate:

    1. Any C3 project when several instances of same ojbect "type" that then each need a few other objects grouped with them.

    2. Select one parent object "type", click Create Container

    3. Using Add Object button, add another 2 or 3 objects to group together with this parent object

    4. Now select another instance of this same object "type"

    5. Click Add Object button, to add these same child objects

    6. Notice that you can no longer select these child objects

    I appears that you are not allowed to make multiple Containers with same "type" of parent object with repeated sets of child objects.

    Does this make sense?

    Is this a bug or are Containers not what I should be using to solve my problem?

    Thank you for sharing your C3 expertise! :-)

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's exactly the info I needed. Thank you, thank you my friend!

  • 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:

  • 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?