AnD4D's Recent Forum Activity

  • Thanks, DrMeepso

    That's disappointing to hear. I've been trying to figure this out for a while. Maher to connect to Twitch API without too much issue, but Discord just looks complicated.

    Do you have any other tricks up your sleeves?

    I'd hate to get this close and walk away.

  • I think you can enable/disable the depth buffer per layer. So turn off 3D on the hud layer and it should work I think.

    Haven’t tried it but it was hashed out in the releases after they added it.

    You're right, R0J0hound

    Rendering mode > 2D or 3D :)

  • Am I right in thinking that 3D objects don't care about layers? I have a 3D object on layer 0, and a HUD on layer 5... but the 3D object appears above that because it's taller.

    The only way to fix it is to either move the 3D objects down below the lowest level, or move the hud up... both of which alter their visible X and Y positions.

    So yeah... am I right or wrong?

  • Eren Wow, that's very clever. Having Discord interact with Construct would certainly open up a few options.

    I've been working on a Twitch Bot with Construct for the past 2 years, and I'm hoping to add some Discord interactivity to it, too.

    What do you use these features for?

  • just activate the webhook from the server settings and send the data you want.

    https://discord.com/developers/docs/resources/webhook

    an example from my code

    https://oyunkulturu.com/temp/webhook.webm

    Thanks Eren but that doesn't look like it's being controlled through Construct. I'm not remotely great at coding.

    Looking at DrMeepso 's video, I see he has "Discord.js" as a separate file in his C3 project, and can post messages via a textbox. I want to be able to do the same, as well as allow my bot to change people's roles.

  • DrMeepso This is awesome. No idea why nobody else commented on this. Do you have time to share a little bit on how you did this? I'm currently researching the same thing.

  • The system unload action are for memory management and clearing textures that are not currently in use from vram. As started in the manual, this can only be done of there are no instances of the object remaining on the screen and on the tick after the last instance had been destroyed.

    If the object is recreated after being destroyed and unloaded, it will load up the whatever object textures it had before from memory (not vram), including animation frames that were loaded from url before.

    The way to clear the frames, as I mentioned before, is to use the load image from url again, loading an empty image, to overwrite and replace whatever you had previously loaded.

    What is a guess is what you have already set up, which is unclear to me, so sorry if I misunderstood your question, which I understood to be "How do I clear the frames loaded with a URL?"

    Here's an example dropbox.com/s/j2nm4ocxe0w1163/memorymanagementexample.c3p

    Thanks for that, but it doesn't help my situation. What you have there is it loading one image if you press one button, and it loading another image if you press another button. It doesn't matter that the button is labelled "clear", it's still loading another sprite.

    In my game, if someone called Bob plays, it will download bob.png from my server. If someone called Mary plays, it will try to download mary.png from the server. However, there is no mary.png, so I want it to instead load the default object sprite. For some reason, Construct doesn't allow this... So if bob.png has already been assigned to frame 0, anyone who plays afterwards on frame 0 will load up bob.png.

    When you said "a blank one" I thought you meant a blank URL, not a blank sprite image. However, if I load a blank sprite, it will be blank, and will not revert back to the animation already loaded to the sprite.

    For now, I can get around this by having the default sprite in my files list, and having construct load that BEFORE trying to download it from the server.

    This feels like an unnecessary step, and so I will put this forward as a feature request.

  • Overwrite it with another load sprite from url action. Can be an updated sprite, or a blank one.

    Sorry, but was that a guess? It didn't work at all...

    The way I have it already set up, it will reach to my server and try to download an image based on the player's name. There's no way to determine whether or not there's the correct image there.

    Once you've downloaded an image to a sprite, failing to load another image to it doesn't solve the problem. I can only imagine this is a bug with Construct, seeing as unload appears to overlook downloaded images via URL.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a game which downloads images from a URL. As multiple sprites appear on screen at once, they can each download their own personal image. However, it will not do this for all players.

    This was achieved by having the sprite have 100 empty frames. When there are no sprites on screen or the frame hits 100, the frame number is reset to 0. What I've noticed is that when a player without a personal URL plays the game, if the frame has already been used, it will display the previously downloaded image, and there is no way to remove it.

    I have tried using the unload images action, as well as reloading the layout.

    How do I clear the frames loaded with a URL?

  • Export a new version, delete everything in the old folder, then upload the new version to that old folder.

    Now if you empty your browser cache and go to play it, it should all be normal. Unfortunately everybody else who has visited the site recently may continue to experience the same issue until they delete their browser cache or until it just goes away on its own ( after a few days browser may stop showing cached images and show the updated version, this would depend on various settings I guess that you have no control over )

    Sadly, that's exactly what I've been doing, and what I always do when I upload a new version. I don't just overwrite in case there are images or sounds that are no longer used.

  • If it doesn't happen every time then its the server side.

    Does your site use some sort of cdn?

    My Webhosts tell me they do not use cdn... although I'm not entirely sure they know what I'm talking about :D

    Also, once it's happened, no matter how many times I refresh and clear the cache, it will always display the errors.

    They seem to think I made OBS Studio... no matter how many times I correct them.

    sigh...

  • Uploading it in a new folder seemed to have worked... but the original folder I have it in is pretty important.

    Does anyone know of a permanent way of fixing it and allowing me to use the old folders?

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies