Skip to content

Instantly share code, notes, and snippets.

View blitzmann's full-sized avatar

Ryan Holmes blitzmann

  • STS Aviation Group
  • Florida, USA
View GitHub Profile
Infection group 1 would deal defending group 1 185832 damage *
Infection group 1 would deal defending group 2 185832 damage
Infection group 2 would deal defending group 2 107640 damage *
Immune System group 1 would deal defending group 2 153238 damage *
Immune System group 2 would deal defending group 1 24725 damage *
Immune System group 2 would deal defending group 2 24725 damage
Infection group 2 attacks defending group 2, killing 84 units, dead: False
Immune System group 2 attacks defending group 1, killing 4 units, dead: False
Immune System group 1 attacks defending group 2, killing 51 units, dead: False
@blitzmann
blitzmann / pyfaeos.md
Last active December 27, 2018 02:41
Explanation of how eos works within pyfa, and how to use it as a standalone library

So, quick rundown on eos:

There are two datasources: game data (eve.db) and user data (saveddata.db). Tables for these databases are defined in eos.db.(gamedata/saveddata). Most of the tables also have a class mapped to them that handles the business logic of the entity. For game data, they all reside in eos.gamedata - most of them are skeleton objects, since most eve data is simply there to provide lookup of values and not necessarily do anything. The interesting objects here are Item and Effect.

The tables for the user's data are mapped to classes defined in eos.saveddata, and this is the majority of where the logic for the calculation engine lies, and many helper functions. For example, the Module class contains logic on what a module should do (for example, it has a method isValidCharge which checks to see if a passed in Charge object is valid for the module).

A quick how to stand up a bare bones Rifter fit with an Afterburner and a 200mm Autocannon with EMP S:

@blitzmann
blitzmann / gist:56132fac38adee7f6c11267e5b722e55
Created December 22, 2018 22:50
adventofcode-2018-day-17-map-print
....................................................................................#..#..................................................................................................|.............................................................................................................................................................
....................................................................................#..#..................................................................................................|.............................................................................................................................................................
....................................................................................#..#................#.........#.......................................................................|...................................................................................................................................................
- metaGroupID: 2
parentTypeID: 377
typeID: 380
- metaGroupID: 2
parentTypeID: 393
typeID: 394
- metaGroupID: 2
parentTypeID: 399
typeID: 400
- metaGroupID: 2

Optimal Range

Original: 75000

Two unscripted modules

  • Module 1: 7.5% (modifier of 1.075)
  • Module 2: 7.5% * 0.869 = 6.5175 (modifier of 1.065175)

So it's 75000 * 1.075 = 80625 (first, unpenalized module)

Windows English locale - french folder - works
Linux Mint Hebrew Locale - Hebrew folder - works
Windows Russian locale - russion folder - works
Windows english locale - russion folder - fails (cxfreeze, not pyfa)
{
"42": {
"displayName": "Armor HP bonus",
"displayNameID": 521916,
"locationGroupModifiers": [],
"developerDescription": "Erebus Effect Generator : Armor HP bonus",
"operationName": "PostPercent",
"locationModifiers": [],
"locationRequiredSkillModifiers": [],
"itemModifiers": [
{
"24": {
"displayName_zh": "疾速加农炮",
"displayName_es": "Blaster Cannon",
"displayNameID": 514402,
"tooltipText_en-us": "Standard short range attack",
"iconID": 1047,
"displayName_fr": "Canon blaster",
"disallowInLowSec": false,
"turretGraphicID": 11506,
@blitzmann
blitzmann / custom_list_draw_test.py
Last active March 12, 2016 04:08
Testing slowdown on OS X 10.11
import wxversion
wxversion.select('3.0')
import wx
SB_ITEM_NORMAL = 0
SB_ITEM_HIGHLIGHTED = 2
class LineItem(wx.Window):
def __init__(self, parent, text="", id=wx.ID_ANY, pos=wx.DefaultPosition, size=(50,16)):
#===============================================================================
# PyfaGauge is a generic Gauge implementation tailored for pyfa (the Python
# Fitting Assistant). It uses the easeOutQuad equation from
# caurina.transitions.Tweener to do animations
#
# ToDo: make SetGradient(<value, colour start, colour end)
# ToDo: make a solid gradient (not to->from and not dependant on value)
# ToDo: fix 0 range (currently resets range to 0.01, but this causes problems if
# we really set range at 0.01). Perhaps make it -1 and test percentage as
# a negative or something.