1. Firaxis celebrates the "Asian American and Pacific Islander Heritage Month", and offers a give-away of a Civ6 anthology copy (5 in total)! For all the details, please check the thread here. .
    Dismiss Notice

News: Online xOTM Replay Utility - Beta

Discussion in 'Civ4 - Game of the Month' started by AlanH, Jul 24, 2009.

  1. Mad Professor

    Mad Professor Deity

    Joined:
    Feb 12, 2006
    Messages:
    2,648
    Location:
    Hahndorf, Australia
    Oh - veeerrrrry very nice AlanH. :goodjob:
     
  2. TheMostWanted

    TheMostWanted Chieftain

    Joined:
    Jul 23, 2009
    Messages:
    55
    Location:
    Santo Domingo, Dominican Republic
    Can I open ''Online xOTM Replay Utility'' with Mozilla Firefox?
     
  3. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    You should be able to. Have you tried and failed?

    You should be able to use any modern browser except Internet Explorer.

    Performance is dependent on the browser's Javascript engine, so if you want to see the replay animations really whizz through on the fastest speed setting, use Safari, Chrome, Firefox or Opera in that order. And make sure you have the latest version.
     
  4. patkingpin

    patkingpin Chieftain

    Joined:
    May 23, 2009
    Messages:
    26
    I love this!!! For people like me still learning the game this is a great tool! Thank you so much.
    My only complaint if I had one, and let me tell you how minor this is, but is there any way to move the play/stop/forward buttons lower? I would like to be able to see the whole log and still be able to use the stop/play buttons.
    You did such a great job with this I feel ungrateful for even asking if this could be done, lol.
    Again, awesome job!
     
  5. whb

    whb King

    Joined:
    Jan 21, 2002
    Messages:
    702
    Um, you're making heavy use of a tag that isn't in the HTML spec (but only in the drafts for HTML5 which isn't intended to be finalised for a few years yet) and you're complaining about standards compliance because IE8 doesn't support it yet?
     
  6. whb

    whb King

    Joined:
    Jan 21, 2002
    Messages:
    702
    I may be forgetting something obvious (it's late) but can't you just bundle up the HTML, CSS, and Javascript into a zip that people can download, if browser security is preventing you from letting the user open an XML replay from their own disk in the web version? (IIRC, if the original page URL is file:// then there's no problem opening files in Javascript, as you just do a load on a relative url and it inherits the file:// from the page)
     
  7. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    Umm. Have you tried moving the event log higher? You can drag the yellow title bars to move the panels around, as I was 100% certain that my layout would not appeal to everyone else.
     
  8. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    I complain about IE standard non-compliance because it's a fact. Regardless of <canvas>. Check out the bake-offs between IE and the other browsers, which show its poor compliance with W3C standards.

    When I first started writing the Replay utility about two years ago, <canvas> was supported by all modern browsers but one. I may have been able to use SVG (I didn't try), but that isn't supported by IE either. Silverlight came along later, but that and Flash are proprietary technologies that I prefer to avoid. So MS have had plenty of time to add support for what had already become a de facto standard, but they prefer to push Silverlight and fight a battle with Adobe instead.

    Even back then, there had been valiant attempts by independent developers to emulate <canvas> on top of VML. I tried to take advantage of that to support IE, but there was no support for erasing selective areas of the canvas, making animation very clunky. I ended up rendering the animation frames on the server in PHP instead on in the browser. You can still see the vestiges of that support if you try to run Replay in IE.

    Since Replay-compatible browsers are free, and only people stuck in corporate straitjackets are unable to install them, I don't see that my non-support for IE is a major issue. IE is the only major browser I can't run in Mac OS X, apart from Chrome which is new and getting there. They don't support me - why should I support them?
     
  9. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    If it were just HTML, CSS and Javascript, then you could just download it all now, as those files are all sent to your browser anyway. Use the development tools in your browser to see all that, but don't examine my crabby code too closely.

    I shall not be offering a tool you can download and run locally. It is based on the compiled C saved game file parser we use for GOTM competition management and security, plus a number of PHP scripts. That stuff stays on our server.

    Also, as I have said elsewhere, a web service is infinitely easier to maintain than a downloadable package, as I can fix a problem or enhance the system, and everyone automatically gets the new version next time they use it. It also runs on any platform with a compliant browser.

    There's no technical problem that's stopping me from producing a web service that will allow you to upload your own saves to the server and deliver the replay display. I just have to re-factor the system for that purpose, and I'm working on it. But since I also have a life, this work will not happen instantly.
     
  10. Obormot

    Obormot Old warmonger

    Joined:
    May 2, 2005
    Messages:
    1,781
    Location:
    Russia
    There appears to be a bug with the tech discovery messages in the log. For example for team CFR log in the last SGOTM there is a "you have discovered pottery" message on turn 18, but no messages for agriculture & wheel which we learnt before pottery.
     
  11. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    The replay event log just includes everything from the file, so I imagine they didn't show up in the save file's log. I'll investigate.

    [UPDATE] I did find a script error that was "losing" some events. However, I am not seeing your Pottery discovery at turn 18. It is definitely in the save file log - you can even see it if you click the Replay link in the results table. So I still need to track that one down, but the other techs are now listed.
     
  12. TheMostWanted

    TheMostWanted Chieftain

    Joined:
    Jul 23, 2009
    Messages:
    55
    Location:
    Santo Domingo, Dominican Republic
    Ok, thanks Alan. Now, I wait to use this program with Mozilla, Internet Explorer comes with many errors.:lol:
     
  13. patkingpin

    patkingpin Chieftain

    Joined:
    May 23, 2009
    Messages:
    26
    NO I didn't :blush:
    I was too much in awe of the greatness of the page. I didn't mean any negativity towards the page and I certainly hope you didn't take it that way.
     
  14. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    I certainly didn't take it that way. I appreciated your comments, and should have said so, but I was focused on helping you with the problem you had.
     
  15. dr_s

    dr_s Prince

    Joined:
    Dec 27, 2006
    Messages:
    538
    This looks like a great tool, thanks Alan.

    I'm seeing some drawing glitches in Safari 4.0.2. I've attached a screenshot.
     

    Attached Files:

  16. AlanH

    AlanH Mac addict, php monkey Moderator Hall of Fame Staff Supporter GOTM Staff

    Joined:
    Jan 9, 2003
    Messages:
    29,431
    Gender:
    Male
    Location:
    England
    Thx, that's interesting, Safari 4.0.2 is my primary browser. I guess I need to look harder at how it deals with varying text size settings.
     
  17. dr_s

    dr_s Prince

    Joined:
    Dec 27, 2006
    Messages:
    538
    I thought it was kind of ironic :).

    Investigating, I see that this results from my use of the "Never use font sizes smaller than 12" option in the advanced preferences. Without that checked, the problem goes away. So that's an easy way to reproduce the problem.
     
  18. TheMostWanted

    TheMostWanted Chieftain

    Joined:
    Jul 23, 2009
    Messages:
    55
    Location:
    Santo Domingo, Dominican Republic
    Cool, I can use in Opera 9.64 (web browser).:D
     
  19. SteelHorse

    SteelHorse Deity

    Joined:
    Sep 4, 2004
    Messages:
    2,313
    Location:
    New Jersey, USA
    AlanH,
    Very well done:thumbsup: Especially like the side by side to see how others approached and progressed on the same map.
     
  20. RFHolloway

    RFHolloway Analyst in the UK

    Joined:
    Apr 8, 2004
    Messages:
    860
    Location:
    Cambridge, UK
    is it possible to use this on HOF games as well?
     

Share This Page