Page 1 of 1

News about news about news

Posted: 24 Jan 2013, 17:12
by o11c
I finally implemented unified news generation for the game and the front page.

From now on, to news entry, copy the template in world/map/news.d to a filed named ##-shortdescription.txt, then run 'make news'. The ## should increment; it will be automatically displayed in reverse order. I started the in-game news about news entry as 10, so that the 00-old-news.txt can be expanded into multiple entries properly (currently it's all dumped in one file as if it's a single entry); future news should start at 11.

I also edited news.php to change the minimum client version and reject all TMW-based clients, I've also set up a can't-happen-yet infrastructure for rejecting less than Mana/0.5.0 - which we can easily change once we decided to drop support for 0.5. Note that 0.5.1 is the one that will finally allow us to use CSV maps ... Since ManaPlus sends a more complicated version string, I haven't implemented any out-of-date checking for it.

Note that:
  • I can't actually pull this onto the web server account until the next game data update.
  • The HTML file actually served from updates.themanaworld.org/news.html does not include <html> or <body> tags.
  • This requires a request via http to the same physical machine. This could probably be improved by using a cron cache.
  • The ManaPlus client is still buggy and refuses to display a blank line in news.txt, so I have to put trailing whitespace. I put a .gitattributes file to silence the warning, but it should still be fixed.
  • Some of the old news entries display suboptimally in html mode because they don't put a blank line between paragraphs.
  • I've probably forgotten something.

Re: News about news about news

Posted: 25 Jan 2013, 07:09
by Nard
o11c wrote:I also edited news.php to change the minimum client version and reject all TMW-based clients, I've also set up a can't-happen-yet infrastructure for rejecting less than Mana/0.5.0
Wouldn't it be nice to direct older client users to download a more recent version of the client and help them to come back?

Re: News about news about news

Posted: 25 Jan 2013, 12:17
by Crush
I hope the frontpage won't stay that way for long:
tmw_frontpage.png
tmw_frontpage.png (102.67 KiB) Viewed 4976 times

Re: News about news about news

Posted: 25 Jan 2013, 13:14
by tux9th
o11c wrote:Note that:
  • I can't actually pull this onto the web server account until the next game data update.
@Crush: I've heard somewhere that the next content release will be in the next few days. I can't verify that though.
This will be only bugfixes afaik.

Re: News about news about news

Posted: 25 Jan 2013, 17:36
by o11c
tux9th wrote:
o11c wrote:Note that:
  • I can't actually pull this onto the web server account until the next game data update.
@Crush: I've heard somewhere that the next content release will be in the next few days. I can't verify that though.
This will be only bugfixes afaik.
Yeah, Jenalya plans to do the next content release sometime this weekend, with no new in-game features. It has this and the global variable thing, as well as some minor things.

Re: News about news about news

Posted: 25 Jan 2013, 18:18
by o11c
cody wrote:What does "rejecting" exactly mean? I use Mana 0.5 and it still works very well (except for magic). Of course it won't get supported for ever. But there should at least be a good reason for rejecting it. CSV is not a good reason, because it makes no difference neither for players nor artists.
I mean, it displays a nagging message about having an old client, like was previously done for less than TMW/0.0.29.1

And you seriously underestimate the benefit of having CSV maps, from a developer's point of view. The benefit to have human-readable wdiffs is incalculable.