Skip to content

Commit 030dd6b

Browse files
committed
Post-scylla update to catch up with reverence changes
1 parent b665b33 commit 030dd6b

File tree

4 files changed

+16
-23
lines changed

4 files changed

+16
-23
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
#Phobos
1+
# Phobos
22
Phobos is script for dumping EVE client data into JSON format.
33

4-
###How to use
4+
### How to use
55

6-
python run.py --eve=<path to EVE client> --cache=<path to EVE client cache> [--translate=<language>] --json=<output folder> [--list=<comma-separated list of containers to dump>]
6+
python run.py --eve=<path to EVE client> --res=<path to shared resource cache> --cache=<path to EVE client cache> [--translate=<language>] --json=<output folder> [--list=<comma-separated list of containers to dump>]
77

8-
###Example
9-
(or, how I usually launch it on Linux)
8+
### Example
9+
(or, how I usually launch it on Linux)
1010

11-
$ python run.py --eve="~/.wine_eve/drive_c/Program Files/CCP/EVE/" --cache="~/.wine_eve/drive_c/users/"$USER"/Local Settings/Application Data/CCP/EVE/c_program_files_ccp_eve_tranquility/" --translate=en-us --json=~/Desktop/phobos_dump_tq --list="invtypes, marketProxy()_GetMarketGroups(), phbmetadata"
11+
$ python run.py --eve="~/.wine_eve/drive_c/Program Files/CCP/EVE/" --res="~/.wine_eve/drive_c/users/Public/Application Data/CCP/EVE/SharedCache" --cache="~/.wine_eve/drive_c/users/"$USER"/Local Settings/Application Data/CCP/EVE/c_program_files_ccp_eve_tranquility/" --translate=en-us --json=~/Desktop/phobos_dump_tq --list="invtypes, marketProxy()_GetMarketGroups(), phbmetadata"
1212

13-
###Arguments:
13+
### Arguments:
1414

15-
* --eve and --cache: just paths to eve client and to folder which contains client cache and settings.
15+
* --eve: path to EVE client, on Windows usually C:\Program Files (x86)\CCP\EVE\;
16+
* --res: path to shared cache with resources, on Windows usually C:\ProgramData\CCP\EVE\SharedCache\;
17+
* --cache: path to client-server specific data (which contains client cache and settings), on Windows usually C:\Users\<user_name>\AppData\Local\CCP\EVE\c_program_files_ccp_eve_tranquility
1618
* --translate: specify language to which strings will be translated. You can choose either individual languages (for a list - invoke script with --help argument) or 'multi' option. For individual language, translation will be done in-place (replaces original text with localized text), for multi-language translation - original text is not modified, but new text fields are added, named using <field name>_<language code> convention. Multi-language translation mode is default.
1719
* --json: output folder for JSON files.
1820
* --list: you can provide list of comma-separated 'containers' to dump, it uses names script prints to stdout. For list of all available names you can launch script without specifying this option (by default it dumps everything it can find).
1921

20-
###Phobos-specific data
22+
### Phobos-specific data
2123
Besides raw data Phobos pulls from client, it provides two custom containers.
2224

23-
####phbmetadata
25+
#### phbmetadata
2426
Contains just two parameters: client version and UNIX timestamp of the time script was invoked.
2527

26-
####phbtraits
28+
#### phbtraits
2729
Traits for various ships. Data has following format:
2830

2931
Returned value:

miner/cached_calls.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ class CachedCallsMiner(AbstractMiner):
3535
"""
3636

3737
def __init__(self, rvr, translator):
38-
# Get path to folder with cached method calls
39-
cache = rvr.getcachemgr()
40-
self._path_cachedcalls = os.path.join(cache.machocachepath, 'CachedMethodCalls')
38+
self._path_cachedcalls = os.path.join(rvr.paths.machocache, 'CachedMethodCalls')
4139
self._translator = translator
4240

4341
def contname_iter(self):

miner/rescache/resbrowser.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#===============================================================================
1919

2020

21-
from itertools import chain
22-
23-
2421
class ResourceBrowser(object):
2522
"""
2623
Class, responsible for browsing/retrieval of resources.
@@ -34,11 +31,7 @@ def get_filelist(self):
3431
Aggregate filepaths from all resource files and return
3532
them in the form of single list.
3633
"""
37-
resfilepaths = chain(
38-
self._rvr.rot.res._nameMap.keys(),
39-
*(stuff.files for stuff in self._rvr.rot.efs.stuff)
40-
)
41-
return sorted(resfilepaths)
34+
return sorted(self._rvr.rescache._nameMap.keys())
4235

4336
def get_file(self, resfilepath):
4437
"""

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
path_json = os.path.expanduser(args.json)
6565

6666
rvr_language = args.translate if args.translate != 'multi' else 'en-us'
67-
rvr = reverence.blue.EVE(path_eve, respath=path_res, cachepath=path_cache, server=args.server, languageID=rvr_language)
67+
rvr = reverence.blue.EVE(path_eve, cachepath=path_cache, sharedcachepath=path_res, server=args.server, languageID=rvr_language)
6868

6969
pickle_miner = ResourcePickleMiner(rvr)
7070
trans = Translator(pickle_miner)

0 commit comments

Comments
 (0)