Switch Theme:

8th Edition MathHammer-O-Matic  [RSS] Share on facebook Share on Twitter Submit to Reddit
»
Author Message
Advert


Forum adverts like this one are shown to any user who is not logged in. Join us by filling out a tiny 3 field form and you will get your own, free, dakka user account which gives a good range of benefits to you:
  • No adverts like this in the forums anymore.
  • Times and dates in your local timezone.
  • Full tracking of what you have read so you can skip to your first unread post, easily see what has changed since you last logged in, and easily see what is new at a glance.
  • Email notifications for threads you want to watch closely.
  • Being a part of the oldest wargaming community on the net.
If you are already a member then feel free to login now.




Made in gb
Legendary Dogfighter





RNAS Rockall

Yaho,

I wasted hours on the 7th ed version, 8th is ever so much simpler :|

Baked this up in perl; simulates 1-n iterations of any attacker you want shooting whatever weapons (currently known weapons included) at any Toughness, Save and Wound profile you want to a CSV file using the 8th edition shooting system. Example files provide a tricked out Leman Russ shooting a Terminator.

Shows wounds and when applicable difference in models removed in total and for each weapon.

How to use:
0. Install perl if you don't already have it. Strawberry Perl is the typical version to use for windows.
1. Download all the files to a working directory.
2. Edit config.csv to set the details of the simulation, the most important one being the 'iterations' value which decides how many volleys to run. Significant options supported include Rapid Fire and Melta, which triggers the extra roll effects of the respective weapons.
3. On Windows, right click on MathHammer-O-Maticv5.pl and choose 'run perl script' or similar.
4. Open the newly written data.csv file and VisualiserV3.ods in your spreadsheet application of choice, copy all the data as is to the 'data' sheet in VisualiserV2.ods, starting in cell A1
5. view some slightly more useful results and charts in the 'averages' sheet of VisualiserV3.ods

Advanced:
Spoiler:
All values that we think of as "roll this and higher" are represented as the number to roll, so 3+ is 3 in all instances.
To add new weapons to the armory, edit the 'weapons.csv' file. Columns marked with a * support d6 notation, so d3 d6 d12 will be calcuated. 2d6 not yet supported.
The attacker.csv file specifies the name of the attacker and the to-hit roll. Attacker can have any number of weapons and all will be calculated. each weapon must be named on a different column in the 2nd row of the spreadsheet, but must match exactly the name of the weapon in the weapons.csv file. You can have duplicate weapons here and each will be processed separately.
the defender.csv has name, toughness, save and wound values; which should be self explanatory.
Visualiser spreadsheet can support up to 100,000 iterations of 12 different named weapons. For T'Emprah's sake do not do this.
The "wounds persist through iteration" is set to default 0. If it is set to 1, any wounds caused will carry over to the next iteration; so you can see if you'd kill any extra models as a result of one of the defenders having less than full wounds from the previous volley.



Questions, comments, feature requests etc are most welcome.

No warranty offered or provided, use at own risk, etc etc. Ryza is not responsible for your computer overheating if you use too many iterations. This is free to use, modify and redistribute for any and all non commercial purposes.

 Filename attacker.csv [Disk] Download
 Description Example attacker template
 File size 90 bytes

 Filename defender.csv [Disk] Download
 Description Updated Defender template
 File size 54 bytes

 Filename visualiserV3.ods [Disk] Download
 Description Visualisation spreadsheet
 File size 46 Kbytes

 Filename weapons.csv [Disk] Download
 Description known weapons
 File size 556 bytes

 Filename MathHammer-O-Maticv5.pl [Disk] Download
 Description
 File size 9 Kbytes

This message was edited 17 times. Last update was at 2017/08/12 08:00:05


Some people find the idea that other people can be happy offensive, and will prefer causing harm to self improvement.  
   
Made in kr
Inquisitorial Keeper of the Xenobanks






your mind

Awesome

   
Made in us
Clousseau




Cool. Similar to what I did with AOS. Though my data is read-only

www.louisvillewargaming.com/AOSStats.aspx
   
Made in ch
Legendary Dogfighter





RNAS Rockall

V2 Updated to include rubric marine weapons, and a much simpler attacker/defender/weapon entry system.
V3 Tidied up warning code and added visualisation spreadsheet.
v4 Introduced configuration file and wound <-> model separation. Introduced melta and rapid fire options. added charts to visualisation spreadsheet.
v5 Updated to perl 5.26 compatible

Visualisation v3 - expanded summary chart to show 1,1+,2+,3+ result summaries
[Thumb - example.png]
Leman Russ shooting a terminator 1000 times results

This message was edited 5 times. Last update was at 2017/08/12 08:00:54


Some people find the idea that other people can be happy offensive, and will prefer causing harm to self improvement.  
   
Made in gb
Fresh-Faced New User




I'm getting this when trying to run the Perl script on Perl 5.26.0:

   
 
Forum Index » 40K General Discussion
Go to: