Isxeve .net Wrapper

eurouk

Member
Hi!

Just purchased isxeve to automate some actions. I don't like scripts so i decided to use .net wrapper.

Wrapper works fine, i can see eve.QueryEntities() results and so on. But i don't understand from what base objects i need to retrieve SystemScanner instance? After retrieving valid instance i can invoke GetAnomalies() but constructor requires LavishScriptObject instance, i don't know from where i should retrieve it.

Second question is about frame locking. As i understand from forum, lock frame is bad practice, i need to sign on frame changing event. Can't find this event.

So i think that i just need simple working .net programm to look, but can't find any build here. May be i'm bad in search and anyone can provide me link to project? Or can anyone post simple skeleton of application here?

Regards
 

Amadeus

The Maestro
Staff member
As far as I know, the only .NET open source script of any sort is at http://www.isxgames.com/f/threads/opensource-evebotis-net.7270/ ..and, I don't know anything about it other than that it was posted.

You could offer to tip Stealthy (on IRC) and see if he might be willing to release a sample .NET application for everyone to see how it works since he is the only one to have released a large-scale bot in .NET. (The bot itself is closed-source.)

ISXEVE officially supports lavishscript, and that's what I prefer myself. .NET always seemed like more work than it was worth for me. But, since the wrapper is just a ".NET wrapper" of code that already exists in ISXEVE, I didn't see any reason to discourage it.
 

eurouk

Member
Thank you for reply.

I found objects to interact with so think it's not a problem now. Ihave seen in thread http://www.isxgames.com/f/threads/net-tutorial.5654/#post-35132
that: You should not be interacting with ISXEVE for game data inside UI code; you should only be doing that from within the ISXEVE_OnFrame event. Outside that event any interaction with ISXEVE will have undefined behavior.
I don't understand where should i subscribe this event?
 

stealthy

ISX Specialist
It's an event raised from lavishscript; you'll have to reference Lavish.InnerSpace.dll in InnerSpace's root directory.

You'll then call LavishScript.Events.AttachEventTarget passing in "ISXEVE_OnFrame" as the name of the event along with your event handler.

Any attached event handler will be executed every time a frame is ready - this will likely be many times per second. You'll probably want to implement some sort of frame skipping logic.
 

eurouk

Member
Thank you for reply.

Is Frame.Wait(true) mechanism is based on this event? I'm running separate thread and locking thread until Frame.Wait(true)?

Also, is there field to understand is ship in warp? I can use velocity, but interested in other solutions.
 

stealthy

ISX Specialist
No. Frame.Wait should not be used, period. It's more appropriate for manual frame locking, which isn't what we need. You shouldn't be doing any calls against ISXEVE in any threads of your own - only call it within the eventhandler for ISXEVE_OnFrame.

For determining if you're in warp - yes. Take a look at some of the existing projects (e.g. EVEBot) and how they're determining if the player's ship is in warp.
 

eurouk

Member
Hi again!

I have done total logic in 1.5 days. Now it is working as i want :)
I have two more little question:
1) What is best practice to return drones? Sometimes 1 or 2 drones are not returning to bay. By hands magic actions like returnandorbit, scopetobay and return are woking. Is there any 100% variant to automate this?
2) Sometimes i get an error while engaging target. I think that in moment of engaging targets is killed. Is there any special procedures to check status of target?
 
Top Bottom