Results 1 to 30 of 79

Thread: Replay Viewer

Hybrid View

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

    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

  2. #2

    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.

  3. #3

    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

  4. #4

    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.

  5. #5

    Default Re: Replay Viewer

    Thanks for the info. Been looking at some saves from the 1.1 savegame thread, and i've found where the player's faction is specified. Not at a computer with RTW at the minute, so I can't see if swapping it works. At least the weekend is coming up, so I can slowly figure out the format.

    Also, do you know how provinces are indexed? Is it in the order listed in DESCR_FACTIONS.txt? It just really helps to have some numbers to look out for.

  6. #6

    Default Re: Replay Viewer

    Also, do you know how provinces are indexed?
    I would bet on descr_regions.txt file (in Data/world/maps/base directory )

    In this file you can also get RGB values of province that you can use to draw a map (with help of map_regions.tga).
    Check out Recruitment Viewer for nice EB map you can draw on.

  7. #7

    Default Re: Replay Viewer

    I'm getting slightly more understanding of the format, and have just changed my faction from Rome to Aedui. Cant end turn though, apparently its still Rome's turn . Slow going though. I think I saw the map data - it looked list-like, although its hard to tell sometimes.

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