#Suggestions for improvement
58 messages · Page 1 of 1 (latest)
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
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.
two things from me
- the map ID should probably be part of the thread title
- 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:
There seems to be zero discord information on that field.
This is not happening on the 2nd post. Kind of weird
The images for maps in the thread titles don't load on mobile, is that just me or Discord?
It's somehow happening in Danger Island By thumb_dude
Yes, they loaded in some cases that we tested
The thumbnail is truncated. The "GIF" always appear on it (possibly in error) but depending on the underlying map size, it's cut off from display.
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?
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.
The image links in the map posts seem to link to an url with a wrong filename: https://images-ext-2.discordapp.net/external/pSLJDEEGT1FpOz2O_e5LvE3l97FfG6NjuQ0g36nsPWg/%3Fquery%3Dthumbnailid%26id%3D3346/https/knucklecracker.com/creeperworld4/queryMaps.php
How do you determine "wrong" in this case?
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?
Well, I wouldnt really blame Discord, but KC's love for php 🙂
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.
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?
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?
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..
Are you on mobile?
Yes
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.
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
No, sorry. You could try uploading a thumbnail with an url that is anything static eg. https://knucklecracker.com/creeperworld4/images/cw4logo.png to see if that's the whole deal. (preferably anything with some extra resolution, https://knucklecracker.com/creeperworld4/background.jpg is probably better)
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
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
Ok, I'm out, this also returns a download 🥲
Your next stop: https://support.discord.com/hc/en-us
here is the static URL we used: https://knucklecracker.com/images/kclogo.png
That does work normally. Only the discord proxied images have issues.
I'll send support a message later to see if it is known
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
Thanks for putting in the effort to try it though
can I bill you? 🙂
Hm, I can't seem to remember the billing address 😅
it'll be on the invoice. no worries