MMO News and theorycrafting for advanced MMO gamers. News and articles that relate to your gameplay. World of Warcraft, SWTOR, Guild Wars 2, Rift, TERA, Eve Online, Star Wars the Old Republic, Diablo3, The Secret World and all Western AAA MMOs

Your login from any MMO-Mechanics forum or site will work here.

Hello There, Guest! Register

Post Reply 
DpS-Simulator for both Commando-Specs
05-04-2012, 08:48 AM (This post was last modified: 07-01-2012 07:12 AM by Fungus.)
Post: #1
DpS-Simulator for both Commando-Specs
Inspired by Qed's work I have programmed a DpS-Simulator for Gunnery and Assault Specialist Commandoes in Python 3.1.

You can find the code attached to this post.

Features:
  • supports patch 1.3
  • every ability and skill for Gunnery and Assault Specialist
  • automated statweight-calculation including expertise
  • select your own spec, rotation and other parameters
  • combat-log
  • über-complex models for almost everything to see a .2 dps difference...
  • no cleancode! Smile

Vanguards are not implemented but should not be too difficult if someone cares enough.
For Mercenaries this might work as a guideline already. To simulate them explicitely two things have to be done: offhand-abilities and heat-"regeneration" (my ammo-regeneration is specifically tailored to the 12-integer-weirdness of the Trooper).

How to use:
  • First you need a Python 3.x version from python.org.
    For anyone who does not know Python: Python is the most cool programming language ever Smile
    If you already have Python 2.x and can't be bothered with 3.x, it might work anyway. Not sure what could go wrong, print() is definitely different... Maybe importing __future__ or from it will even be enough.
  • If you'd like to run it in an interpreter you can also download Pythonwin or something.
  • Rename the attachment from .py.txt to .py (this forum does not like .py-files)
  • Now open it in Pythonwin or Notepad or something
  • some lines down you will see:
    Code:
    ######################################################
    ##USER INPUT SECTION:
    here you can select your stats, your skills, your buffs, your active cell and set how many simulations to run and a lot more. Everything is commented (comments start with #) or self-explanatory I think. If this is not the case, do not hesitate to ask here in this thread!
    There are three main things to watch out for while editing there:
    [**]do not change the indentation at the start of each line. Python lives by this
    [**]in the comments to each variable or group of varibales I have mentioned the allowed values. examples: [0,1,...] means only positive integers, [0,1] means only 0 or 1, [0..3] means positive integers between 0 and 3. Also this should mostly be obvious.
    [**]don't change the few lines of code inbetween, only change variables (they look like this: blahbla = 0).
  • Now you need to select your rotation. This is a little more hidden... I will try to make this more user-friendly in the future.
    You need to scroll down to approximately line 1220 to
    Code:
    ######################################################
                    ##ABILITY PRIORITY LOGIC:
    There are three available rotations, one for each spec and one weird one. Just uncomment the one that fits to your spec and comment out the others.
  • save file
  • Now you are ready to go.
    If you are using Pythonwin, click the run icon
    else, doubleclick the .py-file or start it from a DOS-prompt.
    You should expect approximately (!) 2 minutes calculation time per 10000 300-second-simulations.
  • If you want to experiment with your own priorities and rotations you can build your own functions or modify the ones you find at around line 1100 at
    Code:
    ######################################################
        ##ROTATIONS/PRIORITIES:

If you find any bugs or have questions or whatever, just ask here.
Since I don't play Gunnery anymore, the default rotation might be a little off.
Oh right, almost forgot: Gunnery pwns Assault Specialist so hard...


Attached File(s)
.txt  Commando dps 1.3 - 2.4.py.txt (Size: 81.92 KB / Downloads: 219)
.txt  Commando dps 1.2.2 - 2.1.py.txt (Size: 82.3 KB / Downloads: 142)
.txt  Commando dps 1.2.2 - 2.2.py.txt (Size: 81.37 KB / Downloads: 99)
.txt  Commando dps 1.3 - 2.3.py.txt (Size: 81.78 KB / Downloads: 64)
Find all posts by this user
Quote this message in a reply
05-10-2012, 01:51 AM (This post was last modified: 05-10-2012 02:54 AM by Qed.)
Post: #2
RE: DpS-Simulator for both Commando-Specs
It's so pretty!

I'm Qed and this is my favorite simulator on the trooper forums.
Find all posts by this user
Quote this message in a reply
05-13-2012, 07:16 AM (This post was last modified: 05-14-2012 07:55 PM by Fungus.)
Post: #3
RE: DpS-Simulator for both Commando-Specs
Thanks Qed.

I added a new version to the original post that stacks modifiers differently.
This change affects Gunnery much more than Assault Specialist, reducing the dps-difference of both specs to only 50 (with reference-stats and skills).

Edit: stupid me. simulated Gunnery with Plasma Cell... dps-difference is still 300
Find all posts by this user
Quote this message in a reply
06-27-2012, 06:14 AM
Post: #4
RE: DpS-Simulator for both Commando-Specs
updated for 1.3
Find all posts by this user
Quote this message in a reply
07-01-2012, 05:56 AM (This post was last modified: 07-03-2012 06:00 AM by Fungus.)
Post: #5
RE: DpS-Simulator for both Commando-Specs
I changed how armor-piercing is calculated a little in version 2.4
The effect is kinda huge. Treat build 2.4 as beta Smile

EDIT: math, my old enemy... 2.4 is now working as intended.
Find all posts by this user
Quote this message in a reply
07-07-2012, 12:19 PM
Post: #6
RE: DpS-Simulator for both Commando-Specs
Gonna try this! Awesome!
Find all posts by this user
Quote this message in a reply
10-15-2012, 03:23 PM
Post: #7
RE: DpS-Simulator for both Commando-Specs
If anyone has a good Pure PvE DPS Commando build, please I would much appreciate if you write it down in the the comments or post a link really appreciated.


it support nz
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)