Jump to content

fabio

WFG Programming Team
  • Posts

    1.078
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by fabio

  1. I like this idea. For one thing, using XML would eliminate the need for having our own custom parser, and it's a fairly flexible format. The tradeoff would be slightly less readability for people who don't understand XML, but an in-games options menu would mostly negate that concern.

    Another excuse for a separate game settings, menu and game GUI overlap @ standard windowed mode (1024x768):

    post-8891-0-90041900-1353923237_thumb.pn

  2. The forum changed the link you posted. Here are the fixed code.

    This is what happens on sauerbraten:

    <iframe width="400" height="320" src="http://www.youtube.com/embed/EsTkLZhMI0I?rel=0" frameborder="0" allowfullscreen></iframe>

    This is current 0 A.D.:

    <object style="movie" value="allowFullScreen" value="allowScriptAccess" value="http://youtube.com/v/gDndZn0YPdI?version=3" type="true" allowScriptAccess="640" height="360"></embed></object>

    This is what YouTube suggests when clicking on the previous video to watch on YouTube, right click and "copy HTML...":

    <iframe width="640" height="390" src="http://www.youtube.com/embed/gDndZn0YPdI" frameborder="0" allowfullscreen></iframe>

    This one looks like the sauerbraten, other than the missing ?rel=0. Can this last one be used rather than the current one, since it is what YouTube suggest?

  3. I want to report a problem I notice with YouTube video embedded in the forum (using latest Firefox here). It seems that the forum always force the video to be played with Flash, even if I choose to use YouTube HTML5 when available.

    Just as an example see this post with embedded video. It plays with Flash on the forum, but when clicking to see it on YouTube the video is also available in HTML5/Webm. I have this problem only on 0 A.D. forum, see for example the video embedded in sauerbraten web page, it's correctly displayed in HTML5 mode.

    A possibly related problem is that when using my slow netbook video embedded in the forum make the page hugely slow. When the video is displayed in Flash mode in YouTube is pretty fast, so I suppose it's the forum it's embedding YouTube videos, possibly related to the forced resizing applied to the video:

    <object style="height: 390px; width: 640px">

  4. That's usually a problem with overzealous email providers blocking email from us, or perhaps autogenerated emails in general. I've had issues with my WFG email account, so I haven't received the notices lately, but perhaps Aviv has. In either case, it is definitely worth trying to change the email address associated with your Trac account. (Especially if you have an @gmx.de/*.net email account as that seems to be one of the most troublesome email providers.)

    After a couple of hours after reporting this I get all mails of last week. Probably someone saw my report and fixed it, unblocking the trac mail server.

  5. Having a look at the Tutorial AI it looks this is not a real AI but rather Triggers over "Unassigned AI". Would be possible to generalize the Triggers so that they can be used with any AI on any map? I was thinking at asymmetrical maps, where the computer opponent start with a big city with an "Unassigned AI", and after you reach the city phase the AI changes to Aegis.

  6. It's unfortunate that some users won't be able to play 0 A.D. on their older system, but I totally agree here. Hardware vendors no longer support these older cards, open source mesa drivers also dropped some older chipset in 8.0. Desktop users can still buy a supported card if they really want to play on newer 0 A.D..

    Maybe you can also start to offer optional features on newer OpenGL 3.0 cards (in some recent commit I noticed however that something requiring OpenGL 3.0 was adapted to be compatible on 2.1 also).

  7. Yes, something like that. Or bring the VLC Media Player with the CD that is also available for any OS officially supported by 0 A.D. and GPL/LGPL.licensed.

    Distributing VLC may not be legally in some countries, while it's free software it include many patented codecs (this is also why Debian/Ubuntu/... don't ship it by default). But probably no one will complain with 0 A.D. since there are many others bigger sites still distributing it :)

  8. It kind of highlights why we need a real settings window, though.

    Eventually the configurable options should be removed from default.cfg and local.cfg and put in a xml file used by both the graphic engine and the option menu, so that every option could have:

    • a short description (used for screen display);
    • a long description (used in the tooltip);
    • requirements (e.g. OpenGL 1.5, ARB_XXX extension, ...); if the requirements are not respected the option should be "greyed out" definitively;
    • requirement for "enabled by default";
    • dependencies (e.g. advanced water may require water reflection); the option should be "greyed out" until the dependencies are also enabled;

    This should permits to configure these options without touching the code and also avoid syncing between the .cfg and the menu which can use the xml. Custom config can be saved in user.cfg.

    Also a couple of command line option could be added:

    • safe -> start with the minimum settings;
    • default -> start with the default setting, avoiding customized settings.

×
×
  • Create New...