Utility: MapStat

Originally posted by Cartouche Bee
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

:beer:

Thanks it works Greeaaaaaaaaat! Thanks chief!!!
 
I've used mapstat in my current game. I expanded until I was 2 tiles less than what the Domination limit ought to be, using mapstat and using land+coastal < 2/3 as my limit. After expanding that far I did a test, adding one town which gained me six more tiles. Voila, Domination!

So this approach works great. Thanks again Chiefpaco!
 
Originally posted by Cartouche Bee

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!

Thanks. I was considering this but it is still theory. I didn't want to include it & be wrong. It is still pretty easy to gather from the information presented. Maybe after time if the equation still holds...

BTW, I do have another Util kicking around that extracts the city statistics from the F1 screen. It outputs them in a file readable by Excel. I'm considering including it with Mapstat or maybe making it its own little program. It borrows a lot from Mapstat so I might just add a button. I'll see.

I'm not sure if anyone would want this though. I find it useful because I'm often saving or comparing city performance under different govts.
 
When I doubleclick the file in "Windows Commander", a file explorer program (or utility program, it has a built-in FTP, packer(zip, arj, rar and more...)) and when I double click the file, it's opened and I can see the class files.

I know how to run a class file as I program in Java myself... but I can't run the .Jar file in Windows Commander.


I'll try in explorer, but any ideas?
 
Just downloaded the 9 meg file, and it works!
 
Originally posted by Cartouche Bee

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!
Originally posted by chiefpaco

Thanks. I was considering this but it is still theory. I didn't want to include it & be wrong. It is still pretty easy to gather from the information presented. Maybe after time if the equation still holds...
Great Utility chiefpaco!

I'm with Cartouche Bee; it would be very useful to see the number of Land+Coastal tiles your civ can gain control of before the "Domination Win" occurs the following round. Or, at the very least, the Percentage figure.

Your best guess, with verification from SirPleb, is likely to be very useful AND very accurate. Otherwise, many players will not get the calculation right......then, all that studying of SirPleb's "Milking Tactics" will have gone to waste as the dreaded "Domination Win" box appears! ;)

AND finally, Matrix has provided his Easter Blessing for the use of MapStat in GOTM...........High Praise indeed!

:king:
 
Originally posted by EMan


Great Utility chiefpaco!

I'm with Cartouche Bee; it would be very useful to see the number of Land+Coastal tiles your civ can gain control of before the "Domination Win" occurs the following round. Or, at the very least, the Percentage figure.

Your best guess, with verification from SirPleb, is likely to be very useful AND very accurate. Otherwise, many players will not get the calculation right......then, all that studying of SirPleb's "Milking Tactics" will have gone to waste as the dreaded "Domination Win" box appears! ;)

AND finally, Matrix has provided his Easter Blessing for the use of MapStat in GOTM...........High Praise indeed!

:king:

Ok, no problem. Enough requests came in to include the domination figure. I will see if I can add 2 more boxes:

- a static box (like the world size) that has the overall domination threshold: world(land+coast) * 2/3. I assume this number will have to be rounded up.

- a civ-specific box that tells you how many more tiles you need: box_above - civ_X(land+coast).

I could also include a count for each civ's (land+coast) but am not sure if that's overkill.

One case remains that I am not sure of. If the world(land+coast) is divisible by 3, then the domination threshold will be an integer (i.e. no fraction/rounding). I am still not sure if the civ has to get to that number or pass it. I'll see if any of my tests has this criteria.

Also, I think I might throw in my little civstat util as another menu option. It dumps the city gold, corruption, production, & waste stats to a tab-separated text file readable by Excel. I find it useful for some game analysis, esp come govt switching time. It doesn't include totals or anything fancy yet, but I'll see what I can do. Usually, I use Excel after to do the analysis I wish.

BTW, anyone, feel free to make requests. As you can probably tell, I'm not too busy these days... :)

BTW2, I like what Grey Fox has done here. If anyone experienced a problem & was able to fix it, please post here. You might save someone else from trouble.

BTW3, Mapstat is a Java program. So, it should run on any Java compatible machine. I believe Macs are also Java compatible, so for Mac users, I think this program should work too! Let me know if it does.
 
Hi again. Version 1.4 is ready. New in this version:

- Added domination limit & civ-specific tiles-to-go boxes
- Added Export utility

Let me explain:

New boxes:
The domination limit was shown to be 2/3 of the world's land + coast. I included this in a new box.

There is also a new box for the civ's number of tiles before the domination will be triggered. Attention GOTMers who do not wish to trigger. You're going to aim for this to be = 1. When it = 0, domination will be triggered!

Export Utility:
My rumored "domestic dump". Mentioned before in this thread. Exports the uncorrupted and corrupted gold & shields for each city & a total at the bottom. Use as you like.

Futher exploration:
- I might see if there's a solid formula I can apply to the city stats to predict the effects of different governments. I've seen some progress on this matter, but not enough to include it yet.

Edit: 1.4 removed after 28 downloads.

-------
MapStat - 41 settlers saved, 2 domination victories saved, and 1 NOT saved because it wasn't used! (shame, shame)
 
After some consideration I have decided to make this project open source. Why not! It is now bound by the GNU public license. Basically, you're free to download it, change it, use it, redistribute it, but you can't make any money off it.

Here is the source. My next post will have Mapstat version 1.41, which includes this information in the package.
 

Attachments

1.41 is ready. There are no changes to Mapstat functionality. Merely changed the focus of the program to a GNU public license. The new package reflects the changes in the about box and readme.

Any "open source" questions, you may refer to:
http://www.fsf.org/home.html

Here is the 1.41 executable JAR package:
 
BTW, I think a C++ port (and therefore, a native windows executable) could be on its way sometime. Hopefully, I can remember how to use the MFC...

I couldn't update using the last post, trying again:
1.41 Java Executable:

Edit: v1.41 replaced after 109 downloads
 

Attachments

First, let me say chiefpaco that I think MapStat is a great time-saving utility program for use with GOTM.........AND I'm glad Matrix concurs!!

However, would it be possible to modify the program such that the stats only apply to "discovered" tiles & civilizations? :)
"Discovered" tiles would be any tile that does NOT show "No information available" when clicked upon.

This way, the GOTM player would not be tempted to "peek" and see what other civilizations are yet to be discovered AND also would not know how many and what type of tiles there are on the map until he/she has discovered them.

After all, the primary objective is to AVOID having to count the discovered tiles manually?!
 
Very nice Chiefpaco. It really helps in figuring out the domination limit. And thanks TF for the link.

Great job :goodjob:
 
Originally posted by EMan
...would it be possible to modify the program such that the stats only apply to "discovered" tiles & civilizations?...

Thanks. I will see if a GOTM version is possible. I am currently unaware of any flags to indicate whether a tile is "discovered" or under the "FOW" but I can take a look. I am aware some utilities are able to lift the FOW and I am not positive how they do it. I know that it is possible to "lift the fog" by other means than .sav manipulation.

BTW, anyone intending to use the source should still contact me via the PM or email link provided by my name or, at least post here. More for my curiosity sake than anything, really. Anyone with comments on the source is welcome to message me or post here too.
 
This great utility broke with patch 1.21 and the compressed save format.

Will you be able to make a version to work with 1.21 anytime soon?
 
Obviously, the new 1.21 save game format is incompatible with Mapstat with respect to .sav and .bic files. In the meantime, I have fixed the program to work with the new and old .BIC files. I haven't posted yet because I assumed most people would not be interested in this.

Research is currently under way concerning the new scheme and how it can be uncompressed into a readable form. Stay tuned for further details.

The C port is at the same stage as the Java version now. I didn't do it, but this time got some help. Thanks Lovro for the port. We will release both when they are ready.

Obviously, compatibility is now the first priority.

cp
 
Hi again. V2.0 is ready now. Here are the main points:

- Windows version created by Lovro
- Added 1.21f patch and backwards compatibility

This version of the program is a windows executable. So, no need for the windows Java runtimes! Also, it has been re-configured to open 1.21f .sav and .bic files as well as your old files too!

A big hand for Lovro for the C++ port and for the 1.21 compatibility! A truly magnificent effort! :goodjob:

1.21f is still young, so we don't have a lot of new maps to test, but we're confident this will hold up. If you find any problems, please post here!

Java and Mac users stay tuned. If a Mac patch is released, the Java version shall be updated where necessary.

Edit: Mapstat ver 2.0 removed after 308 downloads.
 
That's remarkable!!!

I don't have the 1.21 loaded yet, until I finish this GOTM but it seems to work fine with the 1.17. Nice to see that it automatically displays all the numbers. You have just solved my biggest worry about next months contest.

:goodjob:

Cartouche Bee
 
Back
Top Bottom