Go Back

EVE Online: L4 Mission Bot

Due to being extremely busy with work, I haven't had the time that I wanted on this project. Don't worry, I will release a version of the bot. But it will most likely not be based on ISXEVE. I've had it with their slow updates on requests and the fact that after several weeks (months?) of a promised performance fix. I'm not doubting the resolve of the ISXEVE team, I just have a feeling their not able to get the update working the way they want it (which would be bug free).

With that in mind I have (re)started work on my own way to access the inner workings of EVE. Most of you probably don't know this, but I wrote a Proof of Concept innerspace extension for EVE before ISXEVE came out. It only did a few basic things, but due to time constraints I never finished it. If you search around the web, you might still find the source code. However that code is severely outdated.

To give you guys a sneak preview of the C# Python 'Access Layer' (which I have called PySharp) that I am working on, this is how easy it has become:

using (var pySharp = new PySharp())
{
    var builtin = pySharp.Import("__builtin__");
    var shipid = (long) builtin.Attribute("eve").Attribute("session").Attribute("shipid");
    var items = builtin.Attribute("eve").Call("GetInventoryFromId", shipid).Call("ListCargo").ToList();
    foreach(var item in items)
    {
        var invType = builtin.Attribute("cfg").Attribute("invtypes").Call("Get", item.Attribute("typeID"));
        var name = (string)invType.Attribute("name");
        InnerSpace.Echo(name);
    }
}

This code takes care of releasing the Python references once the PySharp instance gets released. If anything in a chain of attributes fails, the code will handle the error gracefully and will not throw an exception or crash eve. Tbh, PySharp is close to brilliant.

I will be using the above code to write an API (which I have called DirectEve) and switch the bot over to that API.

There's one downside, this code could potentially cause CCP to improve their security. I mean, seriously this is just TOO easy.

Posted by: Da_Teach on Monday, November 22, 2010  •  EVE Online C# ISXEVE Inner Space

  • Facebook
  • Twitter
  • DZone It!
  • Digg It!
  • StumbleUpon
  • Technorati
  • Del.icio.us
  • NewsVine
  • Reddit
  • Blinklist
  • Add diigo bookmark