예제 #1
0
    #else:
    #	EVEPATH = folders[0] + "/EVE Online.app/Contents/Resources/transgaming/c_drive/tq"
    EVEPATH = glob.glob(
        expanduser(
            "~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/SharedCache/wineenv/drive_c/tq"
        ))[0]
else:
    EVEPATH = "E:/Games/EVE"

OUTPATH = "./"

#eve = blue.EVE(EVEPATH, cachepath=expanduser("~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/c_tq_tranquility"))
user = pwd.getpwuid(os.getuid()).pw_name
path = "~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/SharedCache/wineenv/drive_c/users/{0}/Local Settings/Application Data/CCP/EVE/c_tq_tranquility".format(
    user)
eve = blue.EVE(EVEPATH, cachepath=expanduser(path))
cfg = eve.getconfigmgr()


def sqlstr(x):
    t = type(x)
    if t in (list, tuple, dict):
        raise ValueError("Unsupported type")
    if t is unicode:
        return repr(x)[1:].replace("\\'", "''")
    if t is str:
        return repr(x).replace("\\'", "''")
    if t is bool:
        #return repr(x).lower()
        if x:
            return "1"
예제 #2
0
	#folders = glob.glob(expanduser("~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/SharedCache/cider-EveOnlinePremium-iso-*"))
	#folders = sorted(folders, None, None, reverse=True)
	#if len(folders) == 0:
	#	print "Error: EVE Online client not found"
	#	sys.exit
	#else:
		#EVEPATH = folders[0] + "/EVE Online.app/Contents/Resources/transgaming/c_drive/tq"
#	EVEPATH = folders[0] + "/EVE Online.app/Contents/Resources/transgaming/c_drive/sisi"
	EVEPATH = glob.glob(expanduser("~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/SharedCache/wineenv/drive_c/sisi"))[0]
else:
	EVEPATH = "E:/Games/EVE"

OUTPATH = "./"

#eve = blue.EVE(EVEPATH, cachepath=expanduser("~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/c_tq_tranquility"))
eve = blue.EVE(EVEPATH, cachepath=expanduser("~/Library/Application Support/EVE Online/p_drive/Local Settings/Application Data/CCP/EVE/c_sisi_singularity"), server="Singularity")
cfg = eve.getconfigmgr()

def sqlstr(x):
	t = type(x)
	if t in (list, tuple, dict):
		raise ValueError("Unsupported type")
	if t is unicode:
		return repr(x)[1:].replace("\\'","''")
	if t is str:
		return repr(x).replace("\\'","''")
	if t is bool:
		#return repr(x).lower()
		if x:
			return "1"
		else:
예제 #3
0
# Implant summary HTML dump - by Entity
# Spits out neat page for the EVE IGB showing implant hardwirings.
#
# usage: python implants.py >implants.html
#
# This script is freeware. Do whatever you want with it
# Disclaimer: Use at your own risk

evePath = "E:/EVE"

import sys

from reverence import blue, const
from collections import defaultdict

eve = blue.EVE(evePath)
cfg = eve.getconfigmgr()

cats = defaultdict(list)

ignoreGroups = (300, const.groupBooster)

for rec in cfg.invtypes:
	g = rec.Group()
	if g.categoryID == const.categoryImplant and rec.groupID not in ignoreGroups:
		slot = rec.GetTypeAttribute(const.attributeImplantness, 0)
		if slot >= 6 and slot <= 10:
			if rec.name.endswith("I"):
				continue
			if "test " in rec.description.lower():
				continue
예제 #4
0
EVEPATH = "E:/Games/EVE"

# where to output the dump?
OUTPATH = "./"

#-----------------------------------------------------------------------------

from reverence import blue
import os

MODE = MODE.upper()
if MODE not in ("SQL", "XML"):
	raise RuntimeError("Unknown Mode:", MODE)

#eve = blue.EVE(EVEPATH, "87.237.38.50")
eve = blue.EVE(EVEPATH)
c = eve.getcachemgr()

#cachedObjects = c.LoadCacheFolder("BulkData")
#cachedObjects = c.LoadCachedFile("/dgmoperands.cache")
#cachedObjects = c.LoadCachedMethodCall(("dogma", "GetExpressionsForChar"))
#cachedObjects2 = c.LoadCacheFolder("CachedObjects")


	
#cachedObjects.update()

#-----------------------------------------------------------------------------

def xmlstr(value):
	# returns string that is safe to use in XML
예제 #5
0
mapWidth = (WIDTH / 2) - (MARGIN * 2)
mapHeight = (HEIGHT) - (MARGIN * 2)

mapScaleFactor = min(mapWidth, mapHeight) / 2.0

print mapWidth, mapHeight

#-----------------------------------------------------------------------------
from PIL import Image, ImageDraw, ImageFont
from reverence import blue, const

import time

print "Setting up EVE resources..."

eve = blue.EVE(EVEROOT)
cfg = eve.getconfigmgr()

print "Loading map data..."

f = blue.ResFile()
f.Open("res:/UI/Shared/Maps/mapcache.dat")
mapcache = blue.marshal.Load(f.Read())

# first, separate the 2 galaxies...

print "Separating galaxies..."


class DecoDict(dict):
    pass
예제 #6
0
파일: traits.py 프로젝트: mrdepth/reverence
        elif MISC_BONUS_TYPE in typeBonuses:
            print cfg._localization.GetByLabel('UI/ShipTree/MiscBonus')
            printbonuses(typeBonuses[MISC_BONUS_TYPE])

        return True


if __name__ == "__main__":
    import sys

    if len(sys.argv) != 2:
        print "Usage: %s <typeName>"
        print "Note: typeName is case sensitive!"
        exit(1)

    what = sys.argv[1]

    eve = blue.EVE(EVEROOT, languageID="en-us")
    cfg = eve.getconfigmgr()

    typesByName = cfg.invtypes.IndexedBy("typeName")

    rec = typesByName.GetIfExists(what)
    if not rec:
        print "No such type found: %s" % what
        exit(1)

    if not printtraits(rec.typeID):
        print "No traits for %s" % rec.typeName
예제 #7
0
    eos.config.debug = False

    from eos.gamedata import *
    import eos.db

    # Get version of EVE client
    config = ConfigParser()
    config.read(os.path.join(PATH_EVE, "common.ini"))

    # Form metadata dictionary for corresponding table
    metadata = {}
    metadata["version"] = config.getint("main", "build")
    metadata["release"] = options.release

    # Initialize Reverence cache manager
    eve = blue.EVE(PATH_EVE, cachepath=PATH_CACHE, server=server)
    cfg = eve.getconfigmgr()

    # Create all tables we need
    eos.db.gamedata_meta.create_all()

    # Add versioning info to the metadata table
    for fieldname in metadata:
        eos.db.gamedata_session.add(MetaData(fieldname, metadata[fieldname]))

    eos.db.gamedata_session.commit()

    # Get table map, processing order and special table data
    TABLE_MAP = get_map()
    TABLE_ORDER = get_order()
    CUSTOM_CALLS = get_customcalls()