TWHL4 Discussion / Bug Reports Created 6 years ago2018-06-02 04:57:09 UTC by Penguinboy Penguinboy

Created 6 years ago2018-06-02 04:57:09 UTC by Penguinboy Penguinboy

Posted 6 years ago2018-06-10 21:04:26 UTC Post #339870
I was going to say maybe a map update should only show on the front page if the upload changes, but what would that do for externally hosted maps, and sorting in the map vault? Where does the "update" line get drawn, and how can it always be enforced?
Jessie JessieTrans Rights <3
Posted 6 years ago2018-06-10 21:38:12 UTC Post #339871
Perhaps a checkbox when editing that says, "this map has moderate to substantial gameplay/visual changes" that would put it in a cue for a mod to check (temporarily preserving the old file until the mod checks them). It would then be the mods decision if it indeed has great enough changes to show up in the vault panel on the front page again. But that could get out of hand if too many people abuse it and check the box every time they make a tiny fix.

On an unrelated note, does anyone else have problems getting to the site if they just type in twhl.info? I HAVE to type out http:// or https:// otherwise I just get the ISP search page saying the site couldn't be found (in my case, Verizon Fios). Also using Firefox, if that makes a difference.
Posted 6 years ago2018-06-10 22:33:17 UTC Post #339875
It's not like it's a big deal. You update your map? Welcome to the front page. Yeah there will be few times when somebody updates all their maps, but what's wrong with that?
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-10 23:26:55 UTC Post #339881
I just didn't like the idea that I pushed other people's maps off the front page just because I updated the license on all of them. I felt bad about knocking maps off the front with maps that already got their turn on the front.
Posted 6 years ago2018-06-11 00:12:36 UTC Post #339882
You could also end up with one (or more) maps loitering on the front page with regular updates. Potentially abuseable, too.
I dunno, I do see new maps potentially being submerged under old ones being a possible issue. Maybe have two parallel sections, one for new and one for updated?
Jessie JessieTrans Rights <3
Posted 6 years ago2018-06-11 02:58:18 UTC Post #339884
Like anything on TWHL, if it gets abused I'll just ban the offender. I don't see it being a problem, you might be overestimating the number of maps that get uploaded here.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-11 04:33:20 UTC Post #339885
You could also end up with one (or more) maps loitering on the front page with regular updates.
To be fair, wouldn't this be one of the main purposes of the front page updates? Otherwise people would have to upload separate versions of maps in response to [constructive] criticism.
Crollo CrolloTrollo
Posted 6 years ago2018-06-12 16:44:52 UTC Post #339897
I have noticed a few bugs and problems.
A user can display their birthday on their profile, however the field defaults to 01/01 instead of being blank.

This happened when I browsed on my laptop:
User posted image
I don't know if it's because of the screen resolution or the browser but I can give info if needed.

The list of threads in the forums seems to be pretty widely spaced. In general discussion, I have to scroll to get past the stickied threads to view the recently active ones.
Perhaps give the user an option to minimise threads they don't want to see, or something similar.

For some reason TWHL4 doesn't like my website:
User posted image
Also, making the post number visible may result in some unintended side effects
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 6 years ago2018-06-13 00:33:16 UTC Post #339905
  • I can't replicate your laptop issue on any screen size, is your browser up-to-date?
  • The website URL has to start with a protocol (e.g. http://).
  • I have un-stickied a bunch of old threads in general discussion.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-13 12:55:29 UTC Post #339908
In most sites that have a forum preview on the front page, there would be a link that takes you directly to the most recent post in the thread. I can't find that here.

When I click on the "replies", it just takes me to the original post in the thread, but I'd rather jump to the latest post.
satchmo satchmo“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. -- Samuel Beckett”
Posted 6 years ago2018-06-14 11:06:04 UTC Post #339917
Some CSS suggestions I had a play around with in the console. Mainly try and keep consistent with the orange, make sure border colours are the same. I still think the heading text should be smaller too :P
On the main page I'd probably have map vault after the forum too. Had some ideas on layout changes I might pass through later on if I get a chance.
User posted image
Posted 6 years ago2018-06-14 13:18:49 UTC Post #339918
Hmm, they don't look too bad, I'll experiment a bit when I have time. I do kinda like having the blue in some places to balance out the orange though...
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-15 02:36:55 UTC Post #339919
Yep, well these are just suggestions you could experiment with to see how can you hone the visual side of it. The blue is still a good colour, but I find trying to contrast blue and orange a little tricky in a pallete. You could try a different shade of blue, such as the "update preview" button colour maybe... But saying that, the blue does work pretty good on the smaller text links I think.
Posted 6 years ago2018-06-20 12:22:04 UTC Post #339976
Whatever the color scheme, it needs to be consistent, and reflect functionality. Blue should always indicate links, and orange should be non-functional screen elements.
satchmo satchmo“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. -- Samuel Beckett”
Posted 6 years ago2018-06-21 02:24:50 UTC Post #339983
@PB
I forgot to reply, I have just checked and no it is not up to date.
User posted image
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 6 years ago2018-06-21 08:52:02 UTC Post #339985
Holy vulnerability, you need to update that! Browsing with an unpatched 4-year-old browser is just asking to be infected by malware.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-23 01:36:29 UTC Post #339998
It is possible to update the server config to listen on www.twhl.info as well as twhl.info?
A few times I've just typed twhl.info into the Chrome address bar and have been redirected to www.twhl.info which doesn't resolve.
Posted 6 years ago2018-06-23 02:09:16 UTC Post #339999
Seems like a Chrome problem to be honest, but I've added a DNS record for www which should hopefully fix it.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-23 04:16:44 UTC Post #340000
No, having the same problem in Firefox too. I had mentioned it earlier in another post but the main subject was about the vault submissions on the main page so it was overshadowed.
Posted 6 years ago2018-06-23 05:47:27 UTC Post #340001
Well, it should be fixed, I just tested using www and it redirected correctly.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-06-23 06:52:29 UTC Post #340002
Works for me now - many thanks.
I agree it's a browser issue (if it looks like a URL as opposed to something to pass to a search engine and it prepends a protocol and www. - I could always type the www. but I think typing just twhl.info is easier).
Posted 6 years ago2018-06-26 23:15:34 UTC Post #340016
I don’t know if it’s practical (or aesthetically feasible) to implement, but what say you, Pebs, to differently styled links for pages in the wiki that don’t exist yet (like Wikipedia does), and/or pages that are still Review Required?
Jessie JessieTrans Rights <3
Posted 6 years ago2018-07-01 20:19:02 UTC Post #340039
Hello, I have a journal notification but there's no link to the content, and I'm not sure what this means.
User posted image
I checked my last journal entry and there's no new entry there.
Striker StrikerI forgot to check the oil pressure
Posted 6 years ago2018-07-01 23:51:21 UTC Post #340040
Darn, I thought I fixed that yesterday, it's because it's an older journal without a title. I'll take another look later.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-07-02 04:12:37 UTC Post #340041
A button to quickly un/subscribe to all pages within a category in the wiki would be nice.

Also perhaps, on a subcategory page, have a list of the composing categories. I don't actually remember why I thought this would be a good idea... but oh well!
Jessie JessieTrans Rights <3
Posted 6 years ago2018-07-02 06:51:14 UTC Post #340042
The list of categories in a subcategory is already in the big orange header though...
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-07-02 07:02:21 UTC Post #340043
Sorry, I meant, like, links to those category pages. As it stands, you either have to go through the list of categories or alter the url manually.

Subcategory page could also perhaps show the information from the lowest category page. Like, "Entity Guides > Half-Life Entity Guide" could show the content of the "Half-Life Entity Guide" page (provided the page makes it clear that the pages being shown beneath are filtered to more than one category).

I dunno, just some thoughts. I'm not sure how it'd look in practise.
Jessie JessieTrans Rights <3
Posted 6 years ago2018-07-17 11:39:35 UTC Post #340169
Thanks for the bug report, it's fixed now.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-07-17 13:41:47 UTC Post #340171
You need to clear your browser cache to get the updated JavaScript. Press Ctrl+F5.
Penguinboy PenguinboyHaha, I died again!
Posted 6 years ago2018-07-22 22:07:49 UTC Post #340230
Search doesn't search in journals?
Jessie JessieTrans Rights <3
Posted 6 years ago2018-08-04 17:26:30 UTC Post #340418
Sweeeet.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 6 years ago2018-08-08 08:36:03 UTC Post #340449
I'm just going to keep putting random site ideas here.

What about a way to tag people in forum posts and journals, Twitter-style? Maybe create a one-off notification on the thread when someone tags you. Format could be simply "@Jessie", or perhaps some other format more in line with the rest of the WikiCode, like "[user:3643]". Not sure how easy it would be to prevent re-notifications via editing and other quirks.
Jessie JessieTrans Rights <3
Posted 6 years ago2018-09-05 21:40:50 UTC Post #340797
How about having the text entry box in the shoutbox expand when you're typing a longer shout into it (text-message-style)? I don't know how easy that is to implement on a webpage. But left- or right-arrowing through the message is not always practical, especially on mobile.
Jessie JessieTrans Rights <3
Posted 6 years ago2018-09-07 12:25:31 UTC Post #340810
Thanks for all your hard work fixing the bugs and updating the site.

Clearly it's a labor of love.
satchmo satchmo“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. -- Samuel Beckett”
Posted 6 years ago2018-09-07 16:35:01 UTC Post #340813
There's a link "Formatting help" above the text area that links to a page that shows what kind of formatting you can use. That includes code blocks.
Posted 6 years ago2018-10-17 23:20:52 UTC Post #341052
I think it could be a good idea to display some of the latest Discord messages on the website. New visitors might be more inclined to stick around if they know there's more activity than just what they see on the site. I've written some quick example code for fetching the latest messages from a channel using RestCord:
<?php

// Step 0: Install RestCord (Composer: restcord/restcord)
// Step 1: Go to https://discordapp.com/developers/applications/ and register a new application
// Step 2: Create a bot for that application
// Step 3: Go to https://discordapp.com/oauth2/authorize?&client_id=502232355797204994&scope=bot&permissions=66560 (replace 502232355797204994 with your application's client id) and make the bot join the relevant server
// Step 4: Update the definitions below

define("BOT_TOKEN", "NTAyMjMyMzU1Nzk3MjA0OTk0.DqlD6w.uOnSIKcM7N0oG6srQN8vUBqsM3Q");
define("DISCORD_SERVER_ID", 502229064434712585);
define("CHANNEL_ID", null); // <- Define for one request fewer (since we don't have too look up the ID from the name)
define("CHANNEL_NAME", "general");
define("CHANNEL_TYPE", 0); // 0 for text channel (see https://discordapp.com/developers/docs/resources/channel#channel-object-channel-types)

require_once __DIR__ . "/vendor/autoload.php";

use RestCord\DiscordClient;
use Psr\Log\LoggerInterface;

class SilentLoggerReplaceWithSomethingBetterOrUseTheDefaultLogger implements LoggerInterface {
	public function emergency($message, array $context = array()) {}
	public function alert($message, array $context = array()) {}
	public function critical($message, array $context = array()) {}
	public function error($message, array $context = array()) {}
	public function warning($message, array $context = array()) {}
	public function notice($message, array $context = array()) {}
	public function info($message, array $context = array()) {}
	public function debug($message, array $context = array()) {}
	public function log($level, $message, array $context = array()) {}
};


$discordClient = new DiscordClient(["token" => BOT_TOKEN, "logger" => new SilentLoggerReplaceWithSomethingBetterOrUseTheDefaultLogger()]);


$channelId = CHANNEL_ID;
if($channelId === null) {
	$guildChannels = $discordClient->guild->getGuildChannels(["guild.id" => DISCORD_SERVER_ID]);
	foreach($guildChannels as $channel) {
		if($channel->name === CHANNEL_NAME && $channel->type === CHANNEL_TYPE) {
			$channelId = $channel->id;
			break;
		}
	}
	if($channelId === null) {
		exit("Channel not found.\n");
	}
}
echo "Channel ID: " . $channelId . "\n";

$messages = $discordClient->channel->getChannelMessages(["channel.id" => $channelId, "limit" => 5]);

echo "Messages:\n";
foreach($messages as $msg) {
	$time = new DateTime($msg["timestamp"], new DateTimeZone("UTC"));
	$author = $msg["author"]["username"];
	$content = $msg["content"];
	echo $time->format("Y-m-d H:i:s") . " " . $author . " wrote:\n" . $content . "\n\n\n";
}

?>
I'd offer to help with this beyond just this example code if you're interested in implementing this, but, you know, I'm lazy.

PS. The code formatting using backticks isn't working properly
Posted 5 years ago2019-01-09 21:57:50 UTC Post #341605
I was going to say maybe a map update should only show on the front page if the upload changes, but what would that do for externally hosted maps, and sorting in the map vault? Where does the "update" line get drawn, and how can it always be enforced?
I came here to say basically the same thing but since you guys are ok with it, no problem then. I'm just not particularly proud of some of my works and only intended to update the links for Jessie :crowbar:
Striker StrikerI forgot to check the oil pressure
Posted 5 years ago2019-01-16 23:34:19 UTC Post #341706
What if maps had some kind of edit history like wiki pages do? Not so much for actually retrieving older versions, but just as a place to note when edits were made and what they consisted of. I guess I actually mean an update log. P'raps with the most recent update visible on the map's page.

It just seems a little clumsy to incorporate edit information into the map's description, if it's done at all. People can make an edit worthy of being bumped right into the main page of the site without any indication of what that edit was. I don't really know a good solution to that.
Jessie JessieTrans Rights <3
Posted 5 years ago2019-02-25 06:06:44 UTC Post #342085
The strikethrough formatting button doesn't put the correct marks in. It places dashes, not tildes.
Jessie JessieTrans Rights <3
Posted 5 years ago2019-03-01 12:09:21 UTC Post #342103
Thanks, fixed!
Penguinboy PenguinboyHaha, I died again!
Posted 5 years ago2019-03-12 21:44:09 UTC Post #342238
I've got to say there's a potential issue with this page in that it doesn't say which game/engine each map is for.
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 5 years ago2019-03-13 02:07:45 UTC Post #342246
There's a rule in the competition that says you need a readme file that clearly states what game it's for... but it might be a good idea to add a game selector when you post a competition entry too so it's easier to spot.
Penguinboy PenguinboyHaha, I died again!
Posted 5 years ago2019-03-13 17:25:46 UTC Post #342252
but it might be a good idea to add a game selector when you post a competition entry too so it's easier to spot.
I strongly second that, I had to guess which game one of the entries was for.
You must be logged in to post a response.