Temple Guard
GreenyRepublic
Well-Known Member
- Messages
- 212
- Likes Received
- 993
- Trophy Points
- 93
So, those of you who've been following my profile status updates closely may have picked up on the fact that I've made myself a new toy to play with. Having been wanting to give Age of Sigmar a go for a while (on the sole condition that I can still call my lizzies Lizardmen) and also wanting to know how well my army will stack up against the other races out there, I decided to put my expensive university education to use and write a little text-based application to test things.
Ladies and Gentleslann, I present...
The Age of Sigmar Fight-O-Matic 0.6!
Download/Clone/Fork it on GitHub!
Or just download the .exe and data folder!
Okay, let's get the boring stuff out the way first: this is very much in the early stages, the Fight-O-Matic can functionally simulate melee combat (ranged combat to come very soon) between two units to its end (one side entirely eliminated), and run a user-defined number of repetitions in order to crunch out some averages and other interesting numbers (average number of units left after a win, etc.).
There are currently no special abilities or upgrades (including weapons with weird rules), though I will try and include these at a later date. It also makes some big simplifications with regards to things like unit positioning/front size, as adding things like model positions and actual range checks would also mean having to program things like movement, pile-ins, etc. Basically it would be a nightmare, so I've kind of abstract-ified it so only a maximum number of models from each side can fight at a time.
I will stress that as a result of the above, the Fight-O-Matic is really only intended as a rough guide - something that gives you a general idea of 'how does unit x stack up against unit y'? I will accept no liability in the event of chronic embarrassment and/or upstaging at tournaments, nor the wetting of the floor at your local Gee-Dubs as a result of the Stormcast Goldfags having a super special wank ability that drowns your models in Holy Sigmajizz(tm), that the Fight-O-Matic didn't include in its calculations.
Finally (finally) I'll add that the program is, at the moment, a bit of a mess and the output it produces may not be sparklingly formatted, and it'll crash if you do some bad input. I do very much intend to tidy things up soon though.
'Alright how do I use this thing?'
To run the simulator, run the .exe, making absolutely sure you've extracted the files from the .zip and placed the 'data' folder and the .exe in the same directory. Simply enter the name of a unit (no prefixes/faction names required), the number of models you want, and repeat for the second side. Enter the number of battles you'd like to run and whack enter. The FOM will do its thing and spit out some tidy statistics at the end. Neat, right?
As-is, the FOM reads faction/model/weapon data from a series of Lua files (stored in the 'factiondata' directory), adding new models, weapons, or entirely new factions can be done yourself if you're familiar with it, and even if you aren't I've tried to make the layout as intuitive as possible. As I sadly don't have the time to add every single model myself, right now there are only a very few models from the Seraphon faction. I've linked the GitHub repository so we can turn this into a collaborative effort if anybody fancies adding their own data.
In the meantime, if you want two units to be tested against one another but don't know how to doXML Lua or any of that wank, then please leave a reply to this thread with your request and I'll sort it all out for you and post the results!
Here are some features I'm planning to add soon, in rough order of priority.
1. Ranged combat.
2. Selector for batch/individual battles. (DONE)
3. Unit upgrades.
4. Special weapons and abilities.
5. Build a GUI-based version off of the current logic.
Do have fun, and if you have any suggestions or bug reports (besides the obvious) or whatever then please let me know. Again, any contributions of model/weapon XML files would really be appreciated, both by myself, and anybody else who wants to use this thing.
Ladies and Gentleslann, I present...
The Age of Sigmar Fight-O-Matic 0.6!
Download/Clone/Fork it on GitHub!
Or just download the .exe and data folder!
Okay, let's get the boring stuff out the way first: this is very much in the early stages, the Fight-O-Matic can functionally simulate melee combat (ranged combat to come very soon) between two units to its end (one side entirely eliminated), and run a user-defined number of repetitions in order to crunch out some averages and other interesting numbers (average number of units left after a win, etc.).
There are currently no special abilities or upgrades (including weapons with weird rules), though I will try and include these at a later date. It also makes some big simplifications with regards to things like unit positioning/front size, as adding things like model positions and actual range checks would also mean having to program things like movement, pile-ins, etc. Basically it would be a nightmare, so I've kind of abstract-ified it so only a maximum number of models from each side can fight at a time.
I will stress that as a result of the above, the Fight-O-Matic is really only intended as a rough guide - something that gives you a general idea of 'how does unit x stack up against unit y'? I will accept no liability in the event of chronic embarrassment and/or upstaging at tournaments, nor the wetting of the floor at your local Gee-Dubs as a result of the Stormcast Goldfags having a super special wank ability that drowns your models in Holy Sigmajizz(tm), that the Fight-O-Matic didn't include in its calculations.
Finally (finally) I'll add that the program is, at the moment, a bit of a mess and the output it produces may not be sparklingly formatted, and it'll crash if you do some bad input. I do very much intend to tidy things up soon though.
'Alright how do I use this thing?'
To run the simulator, run the .exe, making absolutely sure you've extracted the files from the .zip and placed the 'data' folder and the .exe in the same directory. Simply enter the name of a unit (no prefixes/faction names required), the number of models you want, and repeat for the second side. Enter the number of battles you'd like to run and whack enter. The FOM will do its thing and spit out some tidy statistics at the end. Neat, right?
As-is, the FOM reads faction/model/weapon data from a series of Lua files (stored in the 'factiondata' directory), adding new models, weapons, or entirely new factions can be done yourself if you're familiar with it, and even if you aren't I've tried to make the layout as intuitive as possible. As I sadly don't have the time to add every single model myself, right now there are only a very few models from the Seraphon faction. I've linked the GitHub repository so we can turn this into a collaborative effort if anybody fancies adding their own data.
In the meantime, if you want two units to be tested against one another but don't know how to do
Here are some features I'm planning to add soon, in rough order of priority.
1. Ranged combat.
2. Selector for batch/individual battles. (DONE)
3. Unit upgrades.
4. Special weapons and abilities.
5. Build a GUI-based version off of the current logic.
Do have fun, and if you have any suggestions or bug reports (besides the obvious) or whatever then please let me know. Again, any contributions of model/weapon XML files would really be appreciated, both by myself, and anybody else who wants to use this thing.
Last edited: