#Suggestions for improvement

58 messages · Page 1 of 1 (latest)

stuck gale
merry osprey
#

will do.
another thing: this might be something to worry about when it happens and not now, but does KC have some contingency coded in for when maps are uploaded but discord is down? his system might need to repeat discord thread creations occasionally if they fail on certain maps

stuck gale
#

we have a manual script - should do the trick

#

Welcome to the new Discord forum for Creeper World 4 Custom maps. With Discord we have opportunities to make these forums more interactive. If you have any suggestions or ideas on capabilities that can be added to improve the usefulness of these threads, let us know below or in #general.

merry osprey
#

two things from me

  1. the map ID should probably be part of the thread title
  2. for some reason, Discord sees the image as a GIF and, if you have autoplay gifs disabled, will show the GIF icon on the thumbnail:
stuck gale
stuck gale
undone garden
#

The images for maps in the thread titles don't load on mobile, is that just me or Discord?

eager imp
stuck gale
stuck gale
undone garden
#

Few things, some of which might be Discord (android) related

#

Here the author of the thread is AutoPost, which seems correct

#

After opening a few threads, the author changes (randomly?) to By Speed in this case?

#

What's with the TrickyCorp (tag?) in the thread post?

#

Some maps seem to have an author in the post, others don't?

#

Threads always report 0 messages until you've opened them?

stuck gale
#

I addressed this in #general. We are aware of it, but can't do much about it. We believe it's a visual glitch from Discord.

We instituted a format change yesterday, so older posts will not look the same as newer posts.

The Tag is my experiment. Not sure how or whether we'll carry it forward.

stuck gale
stuck gale
#

I just converted a map to be on the Discord forums as a test. This is the string we send Discord for the thumbnail image:

#999588406596214914 message

And this is in the returned acknowledgement (best that I can tell, the JSON seems a bit muddled and it breaks a JSON validator online)

"image": {
            "url": "https://knucklecracker.com/creeperworld4/queryMaps.php?query=thumbnailid&id=3315", 
            "proxy_url": "https://images-ext-2.discordapp.net/external/HpD7N6qP4EqYOG6DoNbPclPCawLn9DW6cyGh-G8p16E/%3Fquery%3Dthumbnailid%26id%3D3315/https/knucklecracker.com/creeperworld4/queryMaps.php", 
            "width": 0, 
            "height": 0
            }
#

So if it's "wrong", blame Discord?

undone garden
#

Well, I wouldnt really blame Discord, but KC's love for php 🙂

stuck gale
#

why?, can you justify that? We looked at it in depth, Discord ingests the image, then creates a unique URL for it regardless of whether it's PHP or not.

undone garden
#

Note upfront, I'm making assumptions and am just logically thinking here:

So the url points to the php file, which happens to return an image in case it is provided with the right parameters. The discord proxy seems to copy the filename of the resource url, queryMaps.php, but not the parameters as those would be useless on the proxy.

When a client, eg browser, opens the discord proxy url, it needs to decide what to do with it. It is only aware of the url ending in .php, doesn't know what the contents are as it didn't download the file yet, thus,.., it assumes the user wants to download such a file and not display it based on the php extension. For other cases, such as the "old" forum, where the file is specified as an image source the browser just downloads the file and figures out the image format from the contents and displays the jpg.

The issue wouldn't be there if there were just static links to the images available, I don't think. Tldr; the dynamic linking to images by queryMaps.php is the likely issue I think. What is the advantage of doing it the php way anyway?

stuck gale
#

Discord creates a proxy where it stores the images it will display. It has a identifier for the file name. The identifiers is made up of all the components of the original URL, as well as a unique Discord identifier.

#

what I don't understand is why you ay it's "wrong" and we're having this conversation?

undone garden
#

The thumbnails are rather small, therefore I press the "open in browser" button to open the full res image (mobile, android discord app). At that point the browser opens a popup to download the queryMaps.php file instead of showing the full res image.

Its probably a smaller issue than the effort required to fix it though..

stuck gale
#

Are you on mobile?

undone garden
#

Yes

stuck gale
#

what you describe only happens on mobile, why I don't know Here is the desktop version of clicking on the thumbnail

#

what I'd be interested in knowing is if you have knowledge of another forum where the thumbnail opens the full resolution image "natively" or as a jpeg. Then we'd have something to work with.

undone garden
#

That's what happens on mobile.

stuck gale
#

I understand. Similar things often happens to me when I browse sites on mobile.

#

in fact, it happened this morning for a restaurant menu and one other site I can't recall right now. I usually clean them up right after so I can't go back to check.

#

What we're trying to figure out is whether your assertion that it is caused by a dynamic URL or if it is standard Discord behavior

undone garden
stuck gale
#

OK, all of this is pure supposition on your part.

First off, I can't recreate this on my android (I think Android 11 or 12), my Pixel 3a does not get recent updates. In my android, there is no thumbnail image to tap on. Knucracker tried it on IOS, and for him the image opened normally, jsut as it did for me on desktop.

We then tried a static image.

This is the result that Discord returned to us.

Even that has the same behavior as far as I can tell then the original dynamic URL

https://images-ext-2.discordapp.net/external/apVoyDY-k27Cp_lbdcOON0-ffhvljnDkYumITqNXC6I/https/knucklecracker.com/images/kclogo.png

#

In fact, if I click on the above image in my mobile, it opens "normally", no download. I can then choose to "open original" and then it offers a download

#

same on my desktop

#

here is where we created it

undone garden
stuck gale
undone garden
#

That does work normally. Only the discord proxied images have issues.

#

I'll send support a message later to see if it is known

stuck gale
#

OK, so now we know, it's Disocrd proxied images that is doing it, and even if we pass a static URL, Dicord proxies it

#

I'll send support a message later to see if it is known
Let us know how you progress

undone garden
#

Thanks for putting in the effort to try it though

stuck gale
#

can I bill you? 🙂

undone garden
#

Hm, I can't seem to remember the billing address 😅

stuck gale
#

it'll be on the invoice. no worries

merry osprey
#

on PC it downloads a queryMaps.jpg file for me which points at the thumbnail

#

btw just so you know. embed description can be empty, doesn't have to be a hyphen