Author Topic: Offline Access to Battles...  (Read 4960 times)

Offline Rubino

  • Friends
  • The Pantheon
  • **
  • Posts: 1172
    • View Profile
Re: Offline Access to Battles...
« Reply #15 on: November 02, 2008, 12:28:31 PM »
Oooo - looking good.
Move over each zone for a breakdown per race?



Wii Console: 8123-9969-5753-1865

Offline Baptiste

  • Friends
  • Lurkers
  • **
  • Posts: 53
    • View Profile
Re: Offline Access to Battles...
« Reply #16 on: November 02, 2008, 02:32:50 PM »
Nice job (= what it spits out is a bit depressing though )=

Offline Envicta

  • HoJ Members
  • Lurkers
  • ***
  • Posts: 67
    • View Profile
Re: Offline Access to Battles...
« Reply #17 on: November 02, 2008, 07:52:52 PM »
I've made another little gimmick,  this one is for the Forum or Homepage if Beo is happy with it..

http://www.amagad.co.uk/marq.php

Beo:  In order to add this code you'll need to add the following code

Code: [Select]
    <?php

    $url 
"http://www.amagad.co.uk/marq.php?squig=".rand(0,10000);
    
$fp fopen$url'r' );
    
$result "";
    
    while( !
feof$fp ) ) {
       
$buffer trimfgets$fp4096 ) );
       
$result .= $buffer;
    }
   echo 
$result;

   
?>


The squig is just a random value that gets around browser-caching :)

Any problems just shout :)

« Last Edit: November 02, 2008, 07:57:07 PM by Envicta »




Offline Mangala

  • Administrator
  • League of Extraordinary Gentleman
  • *****
  • Posts: 7534
  • WTF did I do??
    • View Profile
    • My EVE Blog
Re: Offline Access to Battles...
« Reply #18 on: November 02, 2008, 09:25:06 PM »
Nice.

A little sauced - and still in the land of inactive sub (Not even an automated response to my ticket yet) - so I'll look at adding that tomorrow :)
"May God stand between you and harm in all the empty places you must walk."


Offline Envicta

  • HoJ Members
  • Lurkers
  • ***
  • Posts: 67
    • View Profile
Re: Offline Access to Battles...
« Reply #19 on: November 04, 2008, 11:25:45 AM »

Ok I've had a go at the Battleground statistics Db, but its proving to be very buggy!

The core issue is that WARDB is inconsistant and sometimes does not display all of the Battleground zones, or misses out some objectives.

When I looked through the JS-source, its all prefixed with WOW stuff and has lots of WoW-references,  so I imagine they pretty much "Copy/Pasted" it from wowhead.com and "bodged" it to work.

Anyhow...

http://www.amagad.co.uk/bgstats.php

Red = Destruction controlled
Blue = Order controlled
Pink = Destruction owned but under attack by Order
Light Blue = Order owned but under attack from Destruction
Purple = Unknown due to bug
Grey = Neutral (not owned by either side)

I'm going to keep working on this,   as i'm not 100% confident on its accuracy..

Once i've got it working,  I welcome anyone to do some kind of "summary" based on results :)

PS.  Its got 2 pixels for every 5 minutes.

Envicta.




Offline Jarkko

  • MAADI
  • The Pantheon
  • ***
  • Posts: 1050
    • View Profile
Re: Offline Access to Battles...
« Reply #20 on: November 04, 2008, 11:39:33 AM »
This looks amasing to me  :)  I don't understand a single word of the technical mumbo jumbo in this thread, but I do like what I see in the outputs :)

Great work, Envicta!
« Last Edit: November 04, 2008, 11:41:28 AM by Jarkko »

Offline vacuum

  • Friends
  • Cogniscenti
  • **
  • Posts: 278
  • half man, half biscuit
    • View Profile
Re: Offline Access to Battles...
« Reply #21 on: November 06, 2008, 10:34:04 AM »
this code you'll need to add the following code

Code: [Select]
    <?php

    $url 
"http://www.amagad.co.uk/marq.php?squig=".rand(0,10000);


Just a suggestion, but instead of rand(x), why don't you use a substring of date in the form YYMMDDHHmm - this way the value gets cached for a minute. You could do the same but make the MM values 00,15,30,45 and have the checks at 15m intervals. Might make the hits on your server fewer if you're worried about it.


Offline Envicta

  • HoJ Members
  • Lurkers
  • ***
  • Posts: 67
    • View Profile
Re: Offline Access to Battles...
« Reply #22 on: November 06, 2008, 01:55:06 PM »

The server is a swedish 100Mbit, so it'll be fine :)

In the end its to stop the Browser from caching the result of the link, which you think it should do, since the result is different!

Also,  the Battleground DB is far too buggy (and broken!) and I really can't see any useful statistics coming off it, due to the inconsistent nature of the WARDB.com site,  so therefore i'm going to turn it off and remove it.

I'll keep a backup incase WARDB ever fixes the problems (which is doubtful as they did a straight copy/paste from WoWhead.com)




Offline Caradir

  • HoJ Members
  • League of Extraordinary Gentleman
  • ***
  • Posts: 3568
    • View Profile
Re: Offline Access to Battles...
« Reply #23 on: November 06, 2008, 01:59:59 PM »
seems to not be working at the mo

heres what im getting

Quote
Warning: simplexml_load_file() [function.simplexml-load-file]: (null)bg.xml:88494: error: (null) <objective id="2035" name="Druchii Barracks: Merchant\s Gift" status="90" /> in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: bg.xml:88495: parser error : out of memory error in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: <objective id="2036" name="Hatred\s Way" status="104" /> in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 5

Warning: Invalid argument supplied for foreach() in /homepages/4/d216384808/htdocs/amagad/bgstats.php on line 15

was just going to have a quick look before asking if you could make it look "nicer" big blocks of colour and me eyes dont go so well, maybe space it out a bit more, apart from that critique its nice to see the info in an easy manner.
"Banking was conceived in iniquity and was born in sin. The bankers own the earth. Take it away from them, but leave them the power to create money, and with the flick of the pen they will create enough deposits to buy it back again. However, take away from them the power to create money and all the great fortunes like mine will disappear and they ought to disappear, for this would be a happier and better world to live in. But, if you wish to remain the slaves of bankers and pay the cost of your own slavery, let them continue to create money." Josiah Stamp (Governor Bank of England 1928-41)

Offline Envicta

  • HoJ Members
  • Lurkers
  • ***
  • Posts: 67
    • View Profile
Re: Offline Access to Battles...
« Reply #24 on: November 06, 2008, 05:00:03 PM »

Aye it would seem the XML functionality in PHP has a memory limit and i've exceeded it!

I'm going to can it for now :)

But feel free to give suggestions/feedback for

http://www.amagad.co.uk/battlegrounds.php4

and the Signature under my name :)

Envicta.




Offline Gunnarr

  • Friends
  • Cogniscenti
  • **
  • Posts: 476
    • View Profile
Re: Offline Access to Battles...
« Reply #25 on: November 07, 2008, 09:04:53 AM »
Is it possible to sort the maps on that page by realm?

So Empire-Chaos would look like:
[tic][the maw][...][...][...][...][Praag][Reikswald][Altdorf] without the dwarf and elf maps in between.
"There is no Planet B." (Seen on a banner at Copenhagen)
Quoted for brilliance.

Offline Rubino

  • Friends
  • The Pantheon
  • **
  • Posts: 1172
    • View Profile
Re: Offline Access to Battles...
« Reply #26 on: November 09, 2008, 01:18:01 PM »
It would good to see the groupings by Race - ie DE/HE - as zone control at lower tiers contributes to the tiers above.
It would help us co-ordinate tier battles to aid switching higher tiers - something we should start planning.



Wii Console: 8123-9969-5753-1865