Results 1 to 30 of 79

Thread: Replay Viewer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Replay Viewer

    I'm making on a replay viewing program for EB, to replay the progression of factions on the campaign map, which I mentioned over the AAR forum.

    The current version grabs the screen, and cuts out the map, saving it to a .png file. It then works out the turn and season, and writes it on the image. However, this relies on the player taking a print screen every turn and toggling fow. If you dont take a printscreen one turn, it will go out of sync. Obviously this is a problem. This problem wouldnt exist if I could have access to the turn number and map data.

    V.T. Marvin suggested integrating it with the script, so I looked into it. I was wondering if there was any way at all to get output from the script - such as a log file. I looked around on google and read about the command line switch fplog, which may be able to specify a log file, and I was wondering if it works ( I tried, but I may be doing something wrong ). I also found some info on console commands called dump_fac_score/dump_fertility, which aparrently get routed through to the log/output window. However, no such log is created as far as I can see. Even though these seem completely irrelevant, I would be able to represent turn numbers and map data with them ( albeit a long-winded way ).

    If it's not possible to get information out using any built in functions, I do have a workaround, but it's a bit of a fudge, and I would prefer to avoid having to do it.

  2. #2

    Default Re: Replay Viewer

    Iff you pull this off you will be my favouritest person ever. If you need someone for general bitch-work (ie, editing lots of stuff, etc.), PM me.

    Have a Cookie *offers Jar*

  3. #3

    Default Re: Replay Viewer

    *Takes Cookie* Thanks

    Just been nosing around a .sav file, and I might be able to get the information from there (hurray for hex editors!).

    Update : Slowly, very slowly figuring out the file format for savegames. Although its quite interesting/fun, it might take a while.
    Last edited by Chris_; 07-23-2008 at 22:34. Reason: Update

  4. #4

    Default Re: Replay Viewer

    I cant think of anyway to make script communicate with external software.

    Few ideas I had how this can be done:

    1. Hooking windows so you can monitor mouse and key events in RTW ( to detect end turn ).
    Only problem with this are battles that can cause false positives.

    2.Using autosave. Checking out when autosave file is changed would be enough for simple implementation. You can also read a date from this file but not season unfortunately.

    Second problem is lifting fow. I guess some good timed EB script could help here but I guess this will be tricky.

    Edited:
    Best way would be to use only save file to generate custom map. Not using RTW at all to capture screenshots.
    Unfortunately this would require fairly well understanding of save file format so you can extract all necessary data from it.
    Last edited by LorDBulA; 07-24-2008 at 08:25.

  5. #5

    Default Re: Replay Viewer

    Yeah, those are the same kind of possibilities that I came up with if it couldn't be done with script. At the minute, it detects keystates, and grabs the screen based on that. And yes, it does generate false positives ( because it watches Print Screen - but I can change that ).

    The save file does seem to be the way to go. Which is why I stayed up till 3am reading one and comparing it with another. I managed to get some understanding of it - I noticed a couple of the faction indexes - 06 for Romani, 0A for Aeudi, and so on. I also changed Roma to Smeg, but thats not really useful. However, I think i'm getting close to being able to figure out ownership of a province, which would in turn allow me to figure out who owns what.
    Last edited by Chris_; 07-24-2008 at 09:28. Reason: Typo

  6. #6

    Default Re: Replay Viewer

    Check out descr_sm_factions.txt file. I think you can get faction table from this file.
    At lease examples given by you match this file.
    Also faction colors can be obtained from this file.
    Last edited by LorDBulA; 07-24-2008 at 09:52.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO