Page 1 of 2 12 LastLast
Results 1 to 10 of 47

Thread: Calculator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Ottawa, Ontario, Canada
    Posts
    101

    Default Calculator

    I think that I have implemented the current land grab formula. If it is off, please provide your land before the attack, target land before the attack, target SAs against, and land gained.

    This application requires you to have .NET 2.0 or higher installed.

    There are several improvements over my original version.

    General
    • Slightly less screen space is required for most tabs.
    • The calculator can now be made semi-transparent, so you can overlay it on the NW game.
    • The Land Grab tab is no longer required to be visible.
    • Reminder: You can, and have always been able to, select your entire Overview page (Ctrl+A), put it in the clipboard (Ctrl+C), and the calculator will parse it, filling in all the fields.
    • Fields will now select all text on focus (either through tabbing or mouse click).
    • If you enter a value that would crash the program, it will be replaced with the largest accepted value (this value will be ~2.1 billion). On the Management tab, you are limited to 13 characters (9 trillion dollars).

    Battle Simulator
    • Attack success is no longer a green or red circle, but the attacks which will succeed or fail are listed at the bottom in their common acronyms in green or red.
    • Spy ops are also listed here, but is currently inactive, as I've not put any time into trying to get the random factor for it (just remember it being really huge).
    • As you can now enter spies, the calculator will now properly determine if you have GB protection or not; in addition, your opponents GB protection will also be determined by the calculator (though this does not currently translate into a modified Land Grab prediction). As before, Military Strength is still listed as your attack strength in SAs, and the defender's defense strength to SAs.
    • War mode check box has been removed, as this information is displayed at all times.

    Casher Build
    • This tab will now tell you how many of each building to build (as opposed to just the correct number). It does not currently optimize for your BPT, as such you may waste at most one turn each time you balance your buildings.


    To Do
    • Confirm that my interpretation of the land grab formula is correct. If it's off, I will also need test data (to confirm that it is correct after trying to fix it), so please send me the pre-attack values for both yours and your target's land, as well as attacks against them. If your state is in hiding, just send it a few days later. I do not need yours or your target's state number (unless you can't count, in which case I need target's to verify number of hits).


    I am hosting my calculator at: http://nw.mattsflat.ca/NWCalculator.exe


    2008-07-02
    Land Grab should now correctly handle the attacker having significantly less land than the defender
    Corrected military strength coefficients.
    Last edited by The Legend; 07-02-2008 at 19:18.
    The Legend of Glorious Province
    Download the Nation Wars Calculator, last updated 2008-07-02 18:14 EST. See forum post for more details.

  2. #2
    Join Date
    Sep 2007
    Location
    Louisiana
    Posts
    755

    Default

    rep for this Legend, thanks


  3. #3
    Join Date
    Aug 2007
    Posts
    335

    Default

    umm why do i get a failed to initialize properly(0xc0000135) error?

  4. #4
    Join Date
    Mar 2008
    Location
    Ottawa, Ontario, Canada
    Posts
    101

    Default

    Quote Originally Posted by k959 View Post
    umm why do i get a failed to initialize properly(0xc0000135) error?
    Do you have .NET 2.0 or higher installed?
    The Legend of Glorious Province
    Download the Nation Wars Calculator, last updated 2008-07-02 18:14 EST. See forum post for more details.

  5. #5
    Join Date
    Aug 2007
    Posts
    335

    Default

    pritty sure because when i go to update my windows i dont have any updates available besides my wmp 11 that i dont want

    im going to download it and reinstall it if i dont to see it that fixs it

    edit:
    it works now strange thing is i had.net 3.5 installed and it didnt run but i install 2.0 and it runs

    just a side note u cant go over 1 billion in any troops in the calc or it crashes
    Last edited by k959; 05-31-2008 at 04:25.

  6. #6
    Join Date
    Mar 2008
    Location
    Ottawa, Ontario, Canada
    Posts
    101

    Default

    Quote Originally Posted by k959 View Post
    just a side note u cant go over 1 billion in any troops in the calc or it crashes
    2,147,483,647 is actually the maximum (32-bit integer), which applies to everything except economics, which allow for larger values (9,223,372,036,854,775,807 maximum in a 64-bit integer); which should far exceed what any state can produce with the current game settings.
    Note that military strength, and the various other variables that are created in the Battle Simulator are allocated a 64-bit integer as well.

    My next priority is the land grab formula. I will get to user input validation at some point (feels so much like bringing my work home ).
    Last edited by The Legend; 05-31-2008 at 05:10.
    The Legend of Glorious Province
    Download the Nation Wars Calculator, last updated 2008-07-02 18:14 EST. See forum post for more details.

  7. #7
    Join Date
    Feb 2008
    Location
    The Netherlands
    Posts
    763

    Default

    Great work!

    Thank you for sharing

    WLF's Territory
    To many to count x [WLF] - 1 x [www] - 2 x [SLOB] - 1 x [PAIN] - 1 x [UB] - 1 x [NS] - 1 x [SF] - 5 x [USA]

  8. #8
    Join Date
    Mar 2008
    Location
    estonia, tallinn
    Posts
    154

    Default

    nice work

    Quote Originally Posted by The Legend View Post
    This application requires you to have .NET 2.0 or higher installed.
    but what about mac or Linux users? like me


    Quote Originally Posted by OneMoreTime View Post
    ... (I was watching your state last set and it was one which impressed me prob the most along with Neeme's restart) ...
    http://www.the-new-wow.com/game/state_scores_r0508.php says:

    32 kassikas2(#352) [EE] 29.210 $64.608.122
    51 Neeme_restart(#332) [EE] 16.776 $51.599.117
    Last edited by SkyCat; 06-01-2008 at 21:56.
    pohjakiht[KIHT]; domination[EE]

    I was declared a cheater in Nation-Wars!!! @ welcome to the DARK SIDE

    NEVER STOP

    LIFT THE BAN ON POSTING STATE NUMBERS IN THE FORUMS

  9. #9
    Join Date
    Mar 2008
    Location
    Ottawa, Ontario, Canada
    Posts
    101

    Default

    There are Windows emulators for Linux, can one not install .NET inside the emulation? I considered making it in Java for cross-platform support, but I've been doing Java GUIs for four years of university and I ****ing hate them
    The Legend of Glorious Province
    Download the Nation Wars Calculator, last updated 2008-07-02 18:14 EST. See forum post for more details.

  10. #10
    Join Date
    Mar 2008
    Location
    estonia, tallinn
    Posts
    154

    Default

    Quote Originally Posted by The Legend View Post
    There are Windows emulators for Linux, can one not install .NET inside the emulation? I considered making it in Java for cross-platform support, but I've been doing Java GUIs for four years of university and I ****ing hate them
    i know, im using emulators to run landcalcs in linux and mac


    landcalcs on ubuntu linux

    but emulators mostly sucks, more native things are better!
    Last edited by SkyCat; 06-02-2008 at 05:20.
    pohjakiht[KIHT]; domination[EE]

    I was declared a cheater in Nation-Wars!!! @ welcome to the DARK SIDE

    NEVER STOP

    LIFT THE BAN ON POSTING STATE NUMBERS IN THE FORUMS

Similar Threads

  1. Guides / Calculator
    By Guy77 in forum Redemption Server Discussion
    Replies: 29
    Last Post: 03-25-2008, 17:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •