-
-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: show upload date in the network content window #8902
Conversation
Re: date formatting stuff. There already exists a setting for default date formats in savegame names, see |
Sounds good, I'll do that, but first I need to implement a function to parse the date as it comes and convert it to a Date object. I will work on that first and once that works I'll use date_format_in_default_names to decide how to display it and potentially rename it to something more generic as you suggest. Thanks! |
I finally managed to make it work through passing a UNIX epoch timestamp. |
Hi all! I am still looking for more devs to look into it. Based on conversations with @TrueBrain they seem to agree with this but we need other devs to comment on this. Here is the PR in bananas-server that will get sent first if this moves forward: OpenTTD/bananas-server#43 |
Adding the upload-date size (4 bytes) to the packet size validation that makes sure packets don't exceed OpenTTD packet size. This change pairs up with OpenTTD/bananas-server#43 and OpenTTD/OpenTTD#8902 which aim to pass the content upload-date to OpenTTD so it can be used to display it and for being able to sort by upload date in the network content window.
Adding the upload-date size (4 bytes) to the packet size validation that makes sure packets don't exceed OpenTTD packet size. This change pairs up with OpenTTD/bananas-server#43 and OpenTTD/OpenTTD#8902 which aim to pass the content upload-date to OpenTTD so it can be used to display it and for being able to sort by upload date in the network content window.
What's the advantage to sorting by upload date? |
That's the question I was expecting :D I can see a use case when as a user I want to browse random NewGRFs and know if they are fairly new or years old. In my case particularly, let's say I wanted a nice industry set to spice the game up and I get a few options, it is nice to know if it has been recently updated or the last release was 10 years ago. I am not saying old NewGRFs are implemented poorly or are bad quality or anything like that, I just think it's a feature some players will benefit from. At least to me, it's important to know I am using NewGRFs that are newer and fairly maintained. https://bananas.openttd.org/package/newgrf seems to sort by default as well. |
That's all true, but I don't feel there's any benefit to actually sorting by upload date - displaying it in the general info is perfectly fine though |
Oh I remember why I added that to this PR, I did it given that #8903 was opened and deduped against this one. |
It's been a while. @LordAro what do you think about this feature at this point? should we move forward without the ability to sort or want to include it? I'm inclined to as the player would benefit from the ability to find latest releases. |
I think this is still worth considering, but it needs a rebase. 🙂 |
I think we should just do this. Not the sorting, as that will give annoying problems with people rating newer content as better than older, etc. But having the information in there, should lovely. I wouldn't call it And yes, this needs a chain of changes in other services too, which all have open PRs, but just untouched for .. 2 years? now (sorryyyyyyyyyy). But in general, I think this is just a nice addition. |
Although I am still a fan of this change, I think we can also reasonable deduce that this PR has stalled to the point it is not moving forward. And no developer has picked it up. So I am sorry, and I do appreciate the effort, but I am going to close up this PR. Again, sorry for the long delay, and I do appreciate the effort you put into this. If you ever feel like picking this up again, please start here, and once we are okay with this, we will do the backend work. |
Motivation / Problem
Upload date is present in every content in BaNaNaS but not used in OpenTTD since it's not sent to the client. OpenTTD/bananas-server#43 changes it so it gets sent.
Description
This code change makes OpenTTD show the upload date for a given NewGRF in the online content window. In addition, a column in the content list has been added to sort by upload date as well.
Limitations
See OpenTTD/bananas-server#43 for full details, but in particular I've focused on making sure this doesn't break older versions. Here is what I have successfully tested:
Bananas not returning the new field, OpenTTD expecting it -> OpenTTD tries to read it but does not actually read it. I used CanReadFromPacket() to verify and make it safe in case we have to rollback Bananas and newer OpenTTD clients still want the value.finally didn't end up including this, see conversation below.Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.