MOD: Update all values from eve-central

Discuss/Upload mods to the EVE-Dev Killboard.
Post Reply
beansman
Regular
Posts: 221
Joined: Sat Jun 14, 2008 20:24

MOD: Update all values from eve-central

Post by beansman » Sun Feb 03, 2008 12:47

THIS IS A NEW VERSION - ONLY PHP5!!! YOU CAN NOW SPECIFY A LOCAL FILENAME!

UPDATE 15. april 2010 NEW VERSION WITH FACTIONPRICES! - http://eve-id.net/forum/viewtopic.php?p=31192#p31192

Hey

Ive put together this little mod, it downloads an xml file from my server.
The xml file contains cached data from the eve-central server.

Client:
3/2 2008: Now php4 and php5! php5 is MUCH faster, so use it if you can! (php5 uses compressed stream).
4/2 2008: Now updates ships too (if you want it).
5/2 2008: Check for latest update ;)
6/2 2008: PHP4 actually works now ;) Doesn't add items with less than 5 sell orders! ( You might need to empty tables)
8/2 2008: Only sell orders, don't take buy orders into account! Can be changed in fetcher.php.
8/2 2008 - 2: Fixed typo!
13/2 2008: Now using median prices as supplied by friendly poster. It is possible to change around since all data is still in the xml file! Look in fetcher.php for info!
13/2 2008 - 2: New settings page, better looking, better working, simply better :)
13/2 2008 - 3: Made some small changes to the urls, working better serverside now ;)
17/2 2008 - 1: Added "date" versioning, look at your settings page for your version number!
11/3 2008 - 1: Made the faction pricesavailable via feed! Please give feedback! Only use on test killboards for now! Disabled by default! Cronscript also included!
12/3 2008 - 1: New version, now actually works :) Faction prices made fun :D
3/4 2008 - 1: Fixed faction prices in php4 version.
5/4 2008 - 1: Fixed the problem with wrong prices from large numbers!
----
22/9 2009 -1: Updated to use new price file. You can also specify an alternative path or you can enter a local filename (untested).

Server:
21/7 2008 -1: Changed prices to be only The Forge.
28/7 2008 -1: Removed BellaTroix median price. Using eve-central instead.
---
22/9 2009 -1: Updated to use another pricelist.

Try it out:
http://assets.evsco.net/files/value_fetch.tar.gz
Place it it the mods directory, enable and click settings!

I use this in my cron:
15 14 * * * /usr/bin/php /var/www/killboard/mods/value_fetch/cron.php >> /dev/null 2>&1
Remember to edit and test it first (php cron.php).

Following is not used anymore:
If you find faction prices that are wrong, go --- and input the correct value!

I borrowed some stuff from other mods, especially the value_editor, thanks :)

Try it out and come with feedback.

/Beanie
Last edited by beansman on Mon Jul 28, 2008 14:13, edited 3 times in total.
/HyperBeanie

Author of the Value Fetcher: Get It Here
Co-owner and developer of EVSCO

Boshart
Noob
Posts: 1
Joined: Sat Jun 14, 2008 20:24

Post by Boshart » Sun Feb 03, 2008 13:07

tried here i run 319 and it seems everything is ok no problems here

hux
Greenhorn
Posts: 19
Joined: Sat Jun 14, 2008 20:24

Post by hux » Sun Feb 03, 2008 13:14

Fatal error: Call to undefined function: stream_get_contents() in /www/htdocs/v115445/igs-corp.net/killboard/mods/value_fetch/fetcher.php on line 10

Can we have this as PHP4.x compatible please?

beansman
Regular
Posts: 221
Joined: Sat Jun 14, 2008 20:24

Post by beansman » Sun Feb 03, 2008 13:31

No, it's using simpexml, only php5...
Might look into the php4... :p

Edit: php4 compatible now, look at new post !alien
/HyperBeanie



Author of the Value Fetcher: Get It Here

Co-owner and developer of EVSCO

LaMaH
Apprentice
Posts: 44
Joined: Sat Jun 14, 2008 20:24

Post by LaMaH » Sun Feb 03, 2008 17:09

How often does it update? :)

oh, and great work - worked like a charm :)
Co-Owner and developer of EVSCO

beansman
Regular
Posts: 221
Joined: Sat Jun 14, 2008 20:24

Post by beansman » Sun Feb 03, 2008 17:57

Ok, try the link in first post now, includes a php4 version, but it's slower than php5 (3.5 mb vs. 400 kb)!
I will fix a cronscript for you soon(tm) ;)

@LaMaH: it updates when you click update, and i will update the value file every day around 07:00 eve time (08:00 CET). This takes about 1 hour, so fetch it at 09:00 eve time (10:00 CET) and it should be ready.
/HyperBeanie



Author of the Value Fetcher: Get It Here

Co-owner and developer of EVSCO

Arimus
Noob
Posts: 4
Joined: Sat Jun 14, 2008 20:24

Post by Arimus » Sun Feb 03, 2008 22:01

Just tried pulling it down and the value_fetch.gz file does not appear to be a gzip archive...

Manually built the file structure and copied to the right place on my server...

[blockquote]Count: 5020

Cached on: 16:04:56 - 3/02/2008

from eve-central cached file!

They were added to the database[/blockquote]

But looking at some of the ship values they still seem way out:

Harbringer from eve-central: 32m

From my database following the sync: 80m
From my database before the sync: 80m...

not alot of change ;)

Ahhh... ship's aren't updated by this - my bad.

Anyway of getting the ship values updated from eve-central?

beansman
Regular
Posts: 221
Joined: Sat Jun 14, 2008 20:24

Post by beansman » Mon Feb 04, 2008 02:24

I have been thinking about this, will fix it this week :) Shouldn't be a big problem :)
/HyperBeanie



Author of the Value Fetcher: Get It Here

Co-owner and developer of EVSCO

LaMaH
Apprentice
Posts: 44
Joined: Sat Jun 14, 2008 20:24

Post by LaMaH » Mon Feb 04, 2008 04:05

[quote1202090633=Arimus]
Just tried pulling it down and the value_fetch.gz file does not appear to be a gzip archive...

Manually built the file structure and copied to the right place on my server...

[blockquote]Count: 5020

Cached on: 16:04:56 - 3/02/2008

from eve-central cached file!

They were added to the database[/blockquote]

But looking at some of the ship values they still seem way out:

Harbringer from eve-central: 32m

From my database following the sync: 80m
From my database before the sync: 80m...

not alot of change ;)

Ahhh... ship's aren't updated by this - my bad.

Anyway of getting the ship values updated from eve-central?
[/quote1202090633]

Turn off custom ship values :P

And beans, perfect - i'll set it to update after DT then :) - whenever the cronscript comes out :D
Co-Owner and developer of EVSCO

rpclarke
Greenhorn
Posts: 19
Joined: Sat Jun 14, 2008 20:24

Post by rpclarke » Mon Feb 04, 2008 09:00

Works great!

If you can update custom ship values, and maybe add 10% to the average value, it would be perfect!


Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 6 guests