Reply to Thread
Page 1 of 9 1 2 3 ... LastLast
Results 1 to 10 of 87

Thread: Castle Empire Combat Simulator

  1. #1
    Soldier
    Join Date
    Jul 2011
    Posts
    77

    Castle Empire Combat Simulator

    After being told that I could post this and cleaning up the interface a little and replacing the bandit icons with the ones from the fansite kit, I am ready to post this.

    Attached is the initial release of a translated Combat Simulator from the German forums. It is a windows forms application that uses .Net framework 3.5 in order to run. My programing skills are far from the best so don't expect me to do anything about making this program available to other operating systems (besides I have no way of testing it).

    Most all of the information is straight from the game itself, and from my own personal testing it seems to be pretty darn close if not right on in its simulations.

    SPECIAL NOTE - THIS SIMULATOR USES A RANDOM NUMBER GENERATOR THAT MAY OR MAY NOT BE THE SAME RANDOM FUNCTION THE GAME USES. BECAUSE OF THIS THERE WILL BE VARIATIONS TO BATTLE OUTCOMES AND THE SAME SET OF TROOPS CAN PRODUCE SEVERAL DIFFERENT RESULTS DEPENDING ON HOW THE RANDOM NUMBERS TURN OUT.

    The program is zipped and should run as is (no install needed).

    UPDATE - Current version 0.0.6.0

    Change log

    Version 0.0.6.0
    - Added the War Guide back in and edited it for readability.
    - Added the ability to include up to three attack waves (this means sending three generals to the same camp).
    - I was told about a small memory leak when running the multiple simulation option. I think I have solved this.

    Version 0.0.5.5
    - Replaced War Guide in about menu with a smaller FAQ (had to remove war guide if i want FAQ in due to forum attachment limits).
    - May contain other minor bug fixes that I may have made (my memory sucks so I cant remember if I fixed anything else or not).

    Version 0.0.5.4
    - Fixed conversion errors dealing with defending army on Mutiple Battle simulations. They are now properly converted to Doubles before finding average instead of being left as integers. This eliminates the problem with boss units that survive sometimes and die others. They no long show as 0.00 survival and 0.00 death. (thanks Aurorah)

    Version 0.0.5.3
    - Fixed sorting routines for sorting by Hitpoints for Cavalry/Guard Dog attacks

    Version 0.0.5.2
    - fixed numerous omissions or variable substitutions from original german program. Sorting the units actually should work properly now or in some case be done in the first place (half the time it was not sorting units). Sorting may still be off if using cav versus Bosses with Courageous trait (metal toothed, chuck, wild mary).

    Version 0.0.5.1
    - fixed splash damage errors pointed out by Lordebon

    Version 0.0.5.0
    - finished updating troop counters to have a max of 200
    - Added functionality to disable battle button if more than 200 troops selected (max army size is 200 and player generals do not count toward limit)
    - Added Min/Max function to Simulate Best case and Worst Case battles (best case = you do max damage and enemy does min damage
    while worst case is the opposite)
    - Added Multiple run simulation for simulating a battle several times. Note that running this simulation will only show average losses over the course
    of the specified number of battles. It will not show any further details. Current Limit is 50 battles.

    Version 0.0.1.1
    - Updated counters to all have a max of 200
    - removed non-functional web combo box above output window.

    Version 0.0.1.0
    - Initial Release

    Attached Files
    Last edited by Selak; 08-16-11 at 03:03 pm. Reason: updated version

  2. #2
    Guest Marius's Avatar
    Join Date
    Jul 2011
    Location
    KS
    Posts
    28
    Very Nice. Good Work!

  3. #3
    Former Community Manager BB_Katealyst's Avatar
    Join Date
    Jul 2011
    Location
    San Francisco
    Posts
    528
    World
    Zeus
    This is AWESOME. All capped for epic emphasis. Great job on translating it!

  4. #4
    Recruit Encognito's Avatar
    Join Date
    Jul 2011
    Location
    TN, USA
    Posts
    30
    You rock Selak.... The online german version, alongside google translate, takes so much longer.. This will make things so much easier.. Thanks alot for your hard work...
    Last edited by Encognito; 07-29-11 at 06:56 pm.

  5. #5
    Recruit
    Join Date
    Jul 2011
    Location
    Florida, USA
    Posts
    19
    Very nice. Thanks!

  6. #6
    Recruit
    Join Date
    Jul 2011
    Location
    Atlanta, GA, USA
    Posts
    26
    I suppose thanks is in order!!

    Thank You Selak!!

  7. #7
    Settler
    Join Date
    Jul 2011
    Posts
    118
    it's really cool! thanks -
    noticed that player unit has limit of 100 per troop type (does it reflect from the game?) or it's the program limit?

  8. #8
    Recruit
    Join Date
    Jul 2011
    Posts
    33
    took me a fes seconds to understand I thought it would be a simulated fight. now I see its shows the average of your # of men to bandits # of men for an Idea. I love it woth the time to check it before going into battle THANKS

  9. #9
    Soldier
    Join Date
    Jul 2011
    Posts
    77
    Quote Originally Posted by captnemo View Post
    it's really cool! thanks -
    noticed that player unit has limit of 100 per troop type (does it reflect from the game?) or it's the program limit?
    Right now the hundred units of any time is a program limit....I should go and fix that to being 200 per unit as you can send a max of 200 troops and if you so choose they could be all of one type.

    Quote Originally Posted by certifried4Him View Post
    took me a fes seconds to understand I thought it would be a simulated fight. now I see its shows the average of your # of men to bandits # of men for an Idea. I love it woth the time to check it before going into battle THANKS
    if you hit the details button it will show you what happened each round just not with pretty moving pictures like the game itself does. The results it gives though is not any sort of average as it only runs the battle one. If you hit simulate battle multiple times and watch the right most part of the window it will show different results. i have seen same battles change loses over a spread of 10 to 12 troops running the simulation several times. This occurs most though when you only send enough troops to win but not enough to win in 1 round.
    Last edited by Selak; 07-29-11 at 05:21 pm.

  10. #10
    Settler Wallstreet's Avatar
    Join Date
    Jul 2011
    Location
    Wisconsin
    Posts
    174
    Excellent, thanks for sharing Selak.

Reply to Thread

Posting Permissions

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