1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Utility: MapStat

Discussion in 'Civ3 - Utility Programs' started by chiefpaco, Mar 12, 2002.

  1. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    This Windows or Macintosh compatible utility for Civ III offers the following:

    Track your domination victory* progress:
    MapStat can compile the map and population information of a CivIII save game. With this information, it displays precisely how many more tiles and city population each Civ needs to trigger a domination victory. Numbers may also be displayed in percentages.

    Export your city statistics:
    After opening a .sav file, you can export your city statistics (same information as the domestic advisor "F1" screen) to a tab-separated file that spreadsheet programs can read. The totals are also summed and written.

    Gather map terrain Statistics:
    The total terrain count details are also viewable for .sav files by selecting "View Terrain Counts" in the "File" menu. BIC map files are also compatible with MapStat. No Civ owns territory in a BIC map file but you can view the terrain statistics.

    *Domination victory is triggered by owning greater than 2/3 of the total world's land+coast and total world's population at the beginning of your next turn (see FAQ for more information).

    There are two versions of MapStat: Windows and Java. The windows version is the latest version and is heavily recommended for all Windows users. Mac users must use the Java version. Please note that a Java Run-time Environment must be installed on any computer to support the Java version. More details can be found in this thread.

    A PTW-compatible version of Mapstat is available now here:
    Mapstat PTW Alpha 2

    To download the non-PTW windows version, see below several posts. Or, try this link:
    Mapstat Windows Executable

    The latest Java version 2.1, JMapstat is posted far down this thread or may be found by clicking here: (note, this version created by AlanH was made to provide compatibility with GOTM modded files)
    JMapStat Java 2.1 Executable

    Here is a link straight to the Java v2.0 source code, found several posts below:
    MapStat Java Source

    IDSmoker has made a compatible spreadsheet to extend the city statistics - providing more information. Details here:
    MapStat Excel Spreadsheet

    Alternate versions of the program and/or source code may be found throughout the thread.
     
  2. Gramphos

    Gramphos Chieftain

    Joined:
    Sep 1, 2001
    Messages:
    1,139
    Location:
    Sweden
    Cool utility. A little more advance then my Map stats for BICs (and SAVs in the next version) that counts Land and Water.
     
  3. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    Thanks, Gramphos. I forgot to give you credit. You, and the others from the BIC file format thread over at Apolyton. That's why I started with the BIC. I hope the SAV format is just as straightforward :)

    Here is a screenshot of version 3.0 for Windows:

     
  4. SirPleb

    SirPleb Shaken, not stirred.

    Joined:
    Jan 1, 2002
    Messages:
    1,415
    Location:
    Nanaimo BC Canada
    This is great Chiefpaco! Works well as far as I can tell!

    I hope we can get permission to use it in future GOTMs. I just went through the process and it doesn't seem to me that anything is revealed which should not be known.
     
  5. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    I made a new version, 1.1, with only really minor changes. Since I'm not sure how long the big changes could take, I decided to let this through.

    New in version 1.1:
    - Program Renamed to MapStat (much better, I think)
    - Added "About" dialog box
    - GUI colouring & cleanup
    - Remembers last directory used
    - Added this readme to the package

    Original version 1.0 removed after 10 downloads.

    Version 1.1 removed after 14 more downloads.
     
  6. blue72

    blue72 Chieftain

    Joined:
    Dec 20, 2001
    Messages:
    14
    Location:
    Estonia
    I can't get your program to work! :cry:
    Please describe again how to make it to work
     
  7. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    Hi. Double-clicking the JAR file should work but...

    A few questions: Are you trying 1.1? What error does it give? What OS are you using? I developed using Windows ME & using Sun's Java Runtime Environment (JRE) 1.4 so I'm not 100% sure it would necessarily work on NT, 95, or XP (though I have seen 1.0 come up on a 98 machine).

    General information: you need a " Java Application 'runner' " to run MapStat (or any Java application). Microsoft's Java Virtual Machine (JVM) comes with most windows versions but not XP (a controversial move on their part, but I digress...). If MapStat does not start, you might not have a good JVM or JRE. One possible solution is to download the latest JRE from: http://java.sun.com/j2se/1.4/download.html and then pick the JRE for your platform (this program could even work on UNIX or LINUX). This should let you run any java app . It's about 8-9 megs, but free.

    Alternatively, Microsoft does have a new version of the Java Virtual Machine, which also supports Windows XP, and is also free to download. It shouldn't be too tough to find, knowing Microsoft. ;) :rolleyes:

    I'd like to make a version that doesn't require the JRE (maybe some sort of .exe or C wrapper), but I haven't found out how to do it yet. I'm sorry for your frustration.

    Edit: Clarified some of the running requirements.
     
  8. blue72

    blue72 Chieftain

    Joined:
    Dec 20, 2001
    Messages:
    14
    Location:
    Estonia
    Thank you.
    It worked after downloading the latest Java support.
    It's useful program for modders. Nice job!
     
  9. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    The new version of MapStat is ready and available now. New in this version:

    - SAV file support
    - GUI Boxing Improvements
    - Some code streamlining
    - Open starts in current directory

    It can now analyze SAV or BIC files.

    You may now download it here:

    Edit: v1.2 removed after 16 downloads.
     
  10. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    Hi. I've just finished version 1.3. Here are the new features:

    1.3 - Current Version, Mar 22, 2002
    - Added Civ-specific counts and select menu for save files
    - Patched a bug in the search algorithm, fixing an extremely rare case of an incorrect count by 1 or 2

    Basically, it now can read your save files & break down the tile counts into how much each civ has. It still includes a total count as well as an "unclaimed territory" count.

    As it stands, I can't see much that I would like to add to this utility, so this may be the final version, unless some problems arise or I get over ambitious about the look & feel or something. Anyway, it was fun :yeah:

    Edit: v1.3 removed after 331 downloads.
     
  11. SirPleb

    SirPleb Shaken, not stirred.

    Joined:
    Jan 1, 2002
    Messages:
    1,415
    Location:
    Nanaimo BC Canada
    Awesome Chiefpaco! I just ran it against the map I'm playing. Works great and shows just what I want to know, thank you!!!
     
  12. Thunderfall

    Thunderfall Administrator Administrator Moderator

    Joined:
    Oct 25, 2000
    Messages:
    12,134
    Gender:
    Male
    That's a nice little program, chiefpaco. :goodjob:

    Just posted a news about it (and SirPleb's calc too).. :)
     
  13. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    :blush: :blush: Thanks Thunderfall. :blush: :blush: (Not the first time, either. Thanks for the territory score props too! :beer: )
     
  14. Baron Rakkan

    Baron Rakkan Padisha

    Joined:
    Dec 6, 2001
    Messages:
    115
    Location:
    Back to Giedi Prime, Giedi City
    Hey it doesn`t work with me. When I click on the file the computer wants the file "Dragon.exe" to open it!?!?!?!?!?
    :cry:

    Is there another choice to open this file or not? I hope someone has an idea!!
     
  15. Thunderfall

    Thunderfall Administrator Administrator Moderator

    Joined:
    Oct 25, 2000
    Messages:
    12,134
    Gender:
    Male
    Baron, try installing the Java Plugin on this page:

    http://java.sun.com/getjava/download.html

    Here is a screenshot of the MapStat program. This is the first time I run a .jar program directly and it works. :)

     
  16. Badluck

    Badluck Chieftain

    Joined:
    Dec 15, 2001
    Messages:
    234
    good work!
     
  17. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    Thunderfall just beat me to the solution (& is even better than mine, so I'm cutting this short!) BTW, if anyone has problems opening it, can you let me know what OS you're using? If you're using XP, you will have to download the Java plugin, JRE, or windows JVM.

    If you need more help, you can send me an email using the email link by my name here & I can go into more detail. I'm unaware of what the dragon.exe is, so I can't help you that way. Is it a program you need in your computer?

    BTW, ThunderFall, the program looks way better on your screen shot than on my PC! Funny how the different Java Environments change things. That's why I was afraid to touch the GUI too much.
     
  18. Baron Rakkan

    Baron Rakkan Padisha

    Joined:
    Dec 6, 2001
    Messages:
    115
    Location:
    Back to Giedi Prime, Giedi City
    I tried the Java-Link from Thunderfall but when I tried to start the file but nothing happened! I really don`t have any idea why?? Which Java version should I download?
    I know I am a little bit tiresome with my questions, but I really like to try the mapstat!

    Thanks!
     
  19. chiefpaco

    chiefpaco Chieftain

    Joined:
    Dec 26, 2001
    Messages:
    1,381
    Location:
    Fanatika - Where did everybody go?
    You're not tiresome with your questions at all. If anyone has problems, I'm glad to help out. However, I'm afraid I know more about Java developing than distribution, but I'll try to help.

    First, your problem. From the sounds of it, I believe you don't have a way to run Java applications on your computer. Either that, or the Java Environment you have was altered or corrupted.

    The plug-in link supplied by Thunderfall looks like it might not help after all. According to the website there, this plug-in allows you to run applets in your web browser. MapStat is not an applet, but a standalone program and therefore does not run in a browser.

    So, I think the best solution for you is to install the JRE. Try the link I provided further up the page.

    Alternatively, if you think you already have Java, you must change your default ".jar" file handler. On my computer, the default program to open jar files is "javaw". "javaw" appears on my list of programs available to run files. Hold down the shift key & right click the file. Select "Open With". Find "javaw" on your list and select "Ok". If you do not see "javaw", you will have to go through the installation.

    Good luck. Let me know if it works. Also, please let me know what OS you're using. I can give more specific help & will know more about distributing Java programs in the future.
     
  20. Cartouche Bee

    Cartouche Bee Appropriations Consultant

    Joined:
    Jan 20, 2002
    Messages:
    1,731
    Location:
    Multiple Victory Avenue
    I run Win98 and the .jar program did not run because it was an unregistered extension type. I installed the link that Thunderfall supplied and the program ran fine.

    With your knowledge of domination win criteria, it would be nice if you had a little box that showed how many more squares you required for a domination win. This is absolutely a great tool!

    Many thanks.

    Cartouche Bee
     

Share This Page