User Tools

Site Tools


libevecache:start

libevecache

libevecache is a portable C++ library for digesting EVE-Online cache files. It also includes the “dumper” utility which can print or transform cache files into various other formats as supported by libevecache.

Support

Support is available by asking kindly. We expect you to have some basic understanding of software. Bug fixes are always welcome.

E-mail: atrus@stackworks.net

Bugs: https://github.com/theatrus/libevecache/issues

Running dumper

Included in libevecache is a utility named “dumper”, which can, amongst other things, transform cache files into EVE-compatible .CSV market export files. To use dumper:

  1. Download the source or pre-packaged binary.
  2. Open a command prompt.
  3. Run dumper
dumper --market "c:\documents and settings\....\CachedMethodCalls\*.cache" > alllogs.csv

NOTE: Windows does not do filename globbing as part of the shell. dumper.exe does not attempt to re-implement operating system functionality. To allow globbing to work, you will need to use a real shell. There is a way for windows, use command:

for %r in ("c:\documents and settings\....\CachedMethodCalls\*.cache") do dumper --market "%r" >> alllogs.csv

Windows 7:

for /F %f in ('dir /S/B/A "C:\Users\[username]\AppData\Local\CCP\EVE\c_program_files_(x86)_ccp_eve_tranquility\cache\MachoNet\87.237.38.200\328\CachedMethodCalls"') DO (dumper --market "%f" >> alllogs.csv)

Which will produce a single file for all market logs, delineated by the header in the file.

You can also run dumper with the --structure option to get an AST dump of the cache file.

Source and Binary Downloads

A copy of dumper.exe and the corresponding evecache.dll is made available for stand-alone usage. If you intend to integrate libevecache into your project, you will need to compile from source (the entry point library is not provided).

The download location is: http://dl.stackfoundry.org/libevecache/ Files are signed by the GPG key B790A0EC (Yann Ramin).

Source code can be fetched via Gitorious, which doesn't even require the use of Git. Simply hit the download link on any branch.

Compiling

Compiling on Linux

Pre-requisites:

  1. g++ (4.0 series preferable) (Debian/Ubuntu: apt-get install build-essential)
  2. Working binutils
  3. Python
  4. Python-Dev (apt-get install python-dev)
  5. Swig (apt-get install swig)
  6. scons (apt-get install scons)
  7. git (apt-get install git-core)

To compile:

scons

To run:

libevecache.so is built as a shared library. You may need to adjust your LD_LIBRARY_PATH if you want to run it locally. An example

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/libevecache/lib
util/dumper file.cache

Hint: Under Ubuntu you have to manually link the file /usr/lib/libpython.so to /usr/lib/libpython2.6.so (or whatever version of python you use). To do so just do a

sudo ln -s /usr/lib/libpython2.6.so /usr/lib/libpython.so

Compiling on Windows

Compiling pre-requisites (Windows):

  1. Visual C++ 2008 Express (Pro works too)
  2. scons (latest development snapshot) http://www.scons.org/
  3. Python 2.5, 2.6 (for scons) http://python.org/
  4. Git (if you want to keep up to date without downloading a new tarball all the time)

Open the Visual Studio 2008 Command Prompt (aka vcvars.bat), which is located at Start→All Programs→Microsoft Visual Studio 2008→Visual Studio Tools→Visual Studio 2008 Command Prompt

Navigate to the directory which contains libevecache.

Run scons:

c:\python26\scripts\scons

You should now have evecache.dll and util\dumper.exe available.

libevecache/start.txt · Last modified: 2013/07/16 05:21 by 195.94.228.26