These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

jEveAssets 4.1.2 (2017-06-07)

First post
Author
Migal J
Liberam Tempus
#641 - 2014-01-23 14:10:08 UTC
Hi, every time I update Jeveasset with a new release the average purchase columns resets.

How can I maintain such information between updates?
Golden Gnu
Lobach Inc.
#642 - 2014-01-23 18:26:35 UTC
@Migal J
The columns: Last/Avg/Max/Min Purchase are calculated on startup/api update. So it should not reset unless the API Keys/Profile change...

I have to ask how you update?
Did you follow the HowTo: Update jEveAssets?

Of course it could happen if you run portable and does not use the same install folder each time.

I can not see anything in the code that is chained to updating to a new release... What?

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Annette Nolen
Perkone
Caldari State
#643 - 2014-01-24 03:37:15 UTC
Golden Gnu wrote:
@Norrin Ellis, Annette Nolen
I will look into it later today.

For now I suggest you change the price source:
Options > Options... > Price Data
...That is the most obvious fix, I did not try it myself ;)


In my case it seems to be an error getting price data for item types 33578 and 33579 from EVE Central. EVE Central is returning a 400 error with "A non-marketable type was given" when jEveAssets tries to fetch prices for those item IDs. I will try some of the other price sources when I get a chance...

INFO [AWT-EventQueue-0] net.nikr.eve.jeveasset.io.online.PriceDataGetter - Price data loading (Eve-Central.com):
ERROR [Price Fetching] uk.me.candle.eve.pricing.impl.EveCentral - Error fetching price
java.io.IOException: Server returned HTTP response code: 400 for URL: http://api.eve-central.com/api/marketstat?typeid=18881&typeid=28514&typeid=27557&typeid=27646&typeid=27647&typeid=27644&typeid=27779&typeid=15798&typeid=33578&typeid=18841&typeid=33579&typeid=27569&typeid=27855&typeid=19111&typeid=19109&typeid=3408&typeid=11443&typeid=19341&typeid=18853&typeid=28377&typeid=23079&typeid=18873&typeid=4058&typeid=27604&typeid=18869&typeid=27540&typeid=20110&typeid=19019&usesystem=30000142&hours=96
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at uk.me.candle.eve.pricing.AbstractPricing.getDocument(AbstractPricing.java:177)
at uk.me.candle.eve.pricing.impl.EveCentral.fetchPrices(EveCentral.java:124)
at uk.me.candle.eve.pricing.AbstractPricing$PriceFetchingThread.run(AbstractPricing.java:436)
Hel O'Ween
Men On A Mission
#644 - 2014-01-24 10:06:25 UTC  |  Edited by: Hel O'Ween
I got this error in EWA, too. The culprit was the T-shirt given out by Chribba/CCP to donators during the last PLEX for Good drive. I've contacted the guys at EVE Central and received the answer that they "will look into it ..." This was in December, though ...

The typeID in question in my case is 33578

SELECT typeName from invTypes WHERE typeID=33578

Men's 'Humanitarian' T-shirt YC 115

From the name of it, I'd guess that theres a good chance for a female version of this item.

EVEWalletAware - an offline wallet manager.

Golden Gnu
Lobach Inc.
#645 - 2014-01-24 12:48:45 UTC
@Annette Nolen
Thank you for your great bug report. It's exactly the information I needed! :)

I consider this a Eve-Central bug, not a jEveAssets bug.
All the other price data providers have the item included...
I'm not too keen on making a workaround for eve-central.
I will need to hard code it, if the items still has to work on with the other Price data sources...
Meaning I'll have to release another version when eve-central eventually fixes it.

I'm much more inclined to just have people use another price data source...

This is of course open for discussion - I can change my mind if the argument is good enough ;)


@Hel O'Ween
Thank you for the extra info.

How did EWA handle it?

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Annette Nolen
Perkone
Caldari State
#646 - 2014-01-25 04:06:40 UTC
Golden Gnu wrote:
@Annette Nolen
I consider this a Eve-Central bug, not a jEveAssets bug.


Yeah switching to the eve-marketdata.com source seems to work just fine so I'm all sorted out :)
Hel O'Ween
Men On A Mission
#647 - 2014-01-25 11:19:41 UTC
Golden Gnu wrote:

@Hel O'Ween
Thank you for the extra info.

How did EWA handle it?


Not at all, so far. I'm counting on the EC guys to fix it, after all EM does handle it. I feel like creating an "out-of-SDD-exception-list" because a 3rd party site currently throws an error in a very specific situation is a) not the right way to handle it and b) too much effort.

A very lazy approach for me/EWA could be to set the published flag in invTypes to 'false', for the time being. That would be a SQL one-liner, which could be executed in EWA's integrated DB manager. But that would hide/disable the shirt(s) from everything in EWA.

EVEWalletAware - an offline wallet manager.

Norrin Ellis
Doomheim
#648 - 2014-01-26 01:34:38 UTC
Golden Gnu wrote:
@Annette Nolen
Thank you for your great bug report. It's exactly the information I needed! :)

I consider this a Eve-Central bug, not a jEveAssets bug.
All the other price data providers have the item included...
I'm not too keen on making a workaround for eve-central.
I will need to hard code it, if the items still has to work on with the other Price data sources...
Meaning I'll have to release another version when eve-central eventually fixes it.

I'm much more inclined to just have people use another price data source...

This is of course open for discussion - I can change my mind if the argument is good enough ;)


@Hel O'Ween
Thank you for the extra info.

How did EWA handle it?

The big advantage of using the eve-central data source is that there are more options than simply picking a region for price data. Users can select things like all main market hubs, which is better than just getting the Jita price (or some other region/system), in my opinion.
Golden Gnu
Lobach Inc.
#649 - 2014-01-26 12:37:06 UTC
@Norrin Ellis @Hel O'Ween @Annette Nolen
I will release a bug fix release soon(tm)

I ended up doing extensive testing of the pricing library, as I wanted jEveAssets to still be able to use eve-central when some of the typeIDs return errors. The problem is that jEveAssets get prices in batch of 100. The entire batch will fail even though only one typeID is missing @ EC. So we need to find the error typeID(s)

My first solution was to get each ID of the failed batch one at the time: 100 requests (best/worst)
My second solution was binary search: best 14 worst 204
My current solution is exponential search: best 14 worst 110

Best = Only one typeID in the failed batch return errors
Worst = All typeIDs in the failed batch return errors

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Lord Jita
Lord Jita's Big Gay Corp
#650 - 2014-01-27 06:57:56 UTC
Does anyone know the difference between Contract > Excluded and Contract > Included flags?
Golden Gnu
Lobach Inc.
#651 - 2014-01-27 12:30:32 UTC  |  Edited by: Golden Gnu
@Lord Jita
I do (because I wrote the code :D), and you're not going to be happy:
Contract > Excluded = Buy contracts
Contract > Included = Sell contracts.

And now to the epic fail part: It doesn't matter who the owner is, so:
Included; Contracts selling items to you or your sell contracts
Excluded: Contracts buying items from you or your buy contracts

I know it's really confusing ATM. - It will get better in the next release, promise.
Until It's fixed, you can disable contracts in the Assets Tool:
Options > Options... > Assets > Include Contracts
And use the Contracts Tool to get the full picture.

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Lord Jita
Lord Jita's Big Gay Corp
#652 - 2014-01-30 00:39:56 UTC  |  Edited by: Lord Jita
Golden Gnu wrote:
@Lord Jita
I do (because I wrote the code :D), and you're not going to be happy:
Contract > Excluded = Buy contracts
Contract > Included = Sell contracts.

And now to the epic fail part: It doesn't matter who the owner is, so:
Included; Contracts selling items to you or your sell contracts
Excluded: Contracts buying items from you or your buy contracts

I know it's really confusing ATM. - It will get better in the next release, promise.
Until It's fixed, you can disable contracts in the Assets Tool:
Options > Options... > Assets > Include Contracts
And use the Contracts Tool to get the full picture.



Cool thanks, thats actually fine for my purposes, noone assigns contracts to me so its irrelevant
LemmingsOwnYou
Guild Of Few
#653 - 2014-02-03 16:16:43 UTC
Hi, I'm getting an error when updating assets.
Quote:
Price Data (Eve-central.com) Errors
Price data
Failed to update price data

I'm guessing it's because jEveAssets hasn't been updated for Rubicon 1.1 yet?
Golden Gnu
Lobach Inc.
#654 - 2014-02-03 18:22:18 UTC
@LemmingsOwnYou
The opposite, in fact. Eve-Central is returning errors for valid market items (just two items) + jEveAssets handle errors poorly ATM.

Workaround: change the price source to eve-marketdata.com or Eve.Addicts.nl
In: Options > Options... > Price Data

Of course, I still need to release an updated version of jEveAssets for Rubicon 1.1 (I'll see about getting it done soon)
The next release will be more forgiving with price data errors, making eve-central a valid options, even when it return errors for a couple of items...

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Migal J
Liberam Tempus
#655 - 2014-03-07 11:55:23 UTC
Hi, I usually use Jeve to track the average purchase of my items.

Today it was reset.

The only new things I've done is to set the API key for a new toon (the trader).

Is it normal? Is it a bug? Thank you
Golden Gnu
Lobach Inc.
#656 - 2014-03-07 12:20:19 UTC  |  Edited by: Golden Gnu
@Migal J
I'm not sure what you mean by "average purchase", could you explain in greater detail please? :)

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Migal J
Liberam Tempus
#657 - 2014-03-07 13:42:24 UTC
In the asset tab there is a column that show the avg purchase.

I thought it means the everage price I spent to buy that item. Is it thrue?

That column now only contains the prices for the items I bought today.
Golden Gnu
Lobach Inc.
#658 - 2014-03-07 15:48:21 UTC
@Migal J
No,
avg/max/min purchase columns shows the price of your buy market orders AKA the price of items have bought.
It checks each buy order and generate avg/max/min from them.

It's included because it's the actual price you paid for that item AKA the most accurate price possible.

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"

Migal J
Liberam Tempus
#659 - 2014-03-08 02:30:12 UTC
Ok, my english is orrible but that was my idea.

Anyway yesterday all prices and the market orders reset.

Is it because I added another API key or something else?

Thank you
Golden Gnu
Lobach Inc.
#660 - 2014-03-08 09:15:31 UTC
@Migal J
The market orders API only contains active orders and order completed within the last 7 days (if I remember correct)
When the orders are gone from the API and you update, they will also be removed from jEveAssets.
So, when avg/max/min purchase is calculated, there will be no orders to calculate from AKA the price reset.

That is what I think happens, but, It could also be a bug...

Creator of jEveAssets - the asset manager

"Download is the meaning of life, upload is the meaning of intelligent life"