Daily Info

Should I add the Tomorrow Feature? (See Post 12)

  • Yes

    Votes: 17 89.5%
  • No

    Votes: 2 10.5%

  • Total voters
    19

icon315

Member
i'll try to do these things

How does the HTML for the Font work?

I got the whole show the info automatically part down. I will post it as soon as i get the whole font info

UPDATE!

OK done...posting it now

Also if you would like some older versions just Pm me and i will see what i can do
 
Last edited:

Camber

Member
Today, running v8541 i received the following error when running relay_Daily_Info.ash:

Begin index -1 out of bounds (relay_Daily_Info.ash, line 43)

After i commented out the few lines looking up the Mr. prices, it ran fine. Then i see it uses items.ofloathing.org for prices. You should probably either change the url or remove the option. Thanks for a great script!
 

icon315

Member
once again there is a new update....now you can add more things to the price checker...check line 55 for the settings

SnapShot-http://i32.tinypic.com/2v99bg9.jpg
 
Last edited:

Theraze

Active member
Not sure if it's just me, but the prices were returning blank for me today.
Current Prices:

Item Today's Quantity Sold Today's PPU PPU Difference from Yesterday % Change

Mr. Accessory 0 0 0

twinkly wad 0 0 0

Travoltan trousers 0 0 0 -1%
 

heeheehee

Developer
Staff member
Erm, yeah. Meant to post yesterday that it seems like the Coldfront Marketplace is down, but I apparently never actually submitted it. (Also somewhat evident in your snapshot. =P) Maybe a check to see if visit_url("http://kol.coldfront.net/market/kolmarket.html") returns the empty string, at which point stop attempting to render the market data?
 

Theraze

Active member
Yeah... after I noted it being down, I checked his screenshot, blinked a few times, and pondered whether that was behaviour as designed or just not noticed. I'd thought it was working before. :) Good to know I'm not just crazy. Though it can still be a contribuiting factor.
 

icon315

Member
The marketplace is not in fact down, the snapshot was taken right after rollover so the prices where not up. i used the marketplace because that was the only thing available. i am only displaying the information from the place. it isn't really my fault that for some reason the marketplace resets
 

Theraze

Active member
Maybe it isn't down... but RIGHT NOW the marketplace is still giving me the same 0 0 0 results that I posted getting a few hours back. It hasn't been giving results for a minimum of 3 hours, if not all day. What heeheehee suggested is that if the marketplace site doesn't give data for whatever reason, just skip displaying the blank information. :)
 

icon315

Member
OOOOOOH I SEE.

The Marketplace resets after rollover. it does not update til someone buys an item. so if no one has bought that item that day it does no update....here is a new

SNAPSHOT
 
Last edited:

Winterbay

Active member
i'm a bit confused as to how this works. how do i get to that page you keep showing snapshots of?

1) Download the script in the first post to the "relay" folder in your mafia installation folder
2) Launch mafia and log in
3) Open up the relay browser
4) Pick DailyInfo from the drop down menu in the top corner
 
Last edited:

icon315

Member
While i have your attention, here is a minor fix to the %Changes thing not displaying.

Replace this, on lines 55-66
PHP:
 foreach i in $items[ 194, 1450, 1792] {
   string Mall = visit_url ("http://kol.coldfront.net/index.php/content/view/245?search="+i+"&action=Search");
string Prices = substring ( Mall, index_of ( Mall , "% Change" ) , index_of ( Mall , "</STRONG>" ) );
	 Prices = Prices.replace_string ("/images/arrowdown.gif", "http://kol.coldfront.net/images/arrowdown.gif");
	 Prices = Prices.replace_string ("/images/arrowup.gif", "http://kol.coldfront.net/images/arrowup.gif");
	 Prices = Prices.replace_string ("/images/arrowsame.gif", "http://kol.coldfront.net/images/arrowsame.gif");
	 Prices = Prices.replace_string ("% Change", "");
   write ("<br>"+Prices);

   }     
   }
   write("</STRONG></TD><TD class='sectiontableentry1' ALIGN=RIGHT>-1%</TD></TR></TABLE></CENTER>");
with this
PHP:
 foreach i in $items[ 194, 1450, 1792] {
   string Mall = visit_url ("http://kol.coldfront.net/index.php/content/view/245?search="+i+"&action=Search");
string Prices = substring ( Mall, index_of ( Mall , "% Change" ) , index_of ( Mall , "</TD></TR></TABLE></CENTER>" ) );
	 Prices = Prices.replace_string ("/images/arrowdown.gif", "http://kol.coldfront.net/images/arrowdown.gif");
	 Prices = Prices.replace_string ("/images/arrowup.gif", "http://kol.coldfront.net/images/arrowup.gif");
	 Prices = Prices.replace_string ("/images/arrowsame.gif", "http://kol.coldfront.net/images/arrowsame.gif");
	 Prices = Prices.replace_string ("% Change", "");
   write ("<br>"+Prices);

   }     
   }
   write("</TR></TABLE></CENTER>");
 
Last edited:

tOaDeR

Member
1) Download the script in the first post to the "relay" folder in your mafia installation folder
2) Launch mafia and log in
3) Open up the relay browser
4) Pick DailyInfo from the drop down menu in the top corner

thanks very much for this information. i had no idea i was supposed to move it there
 

Theraze

Active member
Just wondering, is
Code:
     print("http://kol.coldfront.net/index.php/content/view/245?search="+i+"&action=Search");
actually useful? Commenting it out appears to not affect the display: everything's showing 0/0/0 for me right now... stupid fail-buy days. Heh...

It's causing an additional server hit per item, without actually being processed in any way, if I understand it properly?
 

icon315

Member
err woops meant to remove that...put that there for testing

also the whole 0% thing isn't really my problem, my script just bring the information in from other locations
 
Last edited:

Theraze

Active member
Yeah, I know that's their site not getting anything bought yet today. :) Eventually I'll come up with some way of making it display NO DATA or (better) skipping those entries entirely. But I haven't cared about it enough to work through it yet. :)
 

icon315

Member
Well if looking at the page uses a server hit, we might as well print on the page....i was going to make it so that you can Toggle the sections
 

Theraze

Active member
Yes/no? If it's just displaying 0 as its data, that's not accurate... The actual prices of the items hasn't dropped 100%, it's just displaying that there was a lack of accurate information. If that's the case, printing NO DATA or NO SALES TODAY or even skipping those entries gives a more accurate look to someone who isn't aware (as I wasn't) of how the Coldfront's KoL marketplace tracking apparently works. :D
 

Winterbay

Active member
If you enter a valid item-ID, but one that isn't in the Coldfront marketplace system yet for whatever reason (the frisbee -ITOM for example) the script stops the print-out at the prior item and the rest of the information isn't shown (i.e. raffle prizes and food items and so on).

Would it be possible to add some kind of error handling for this case so that the script doesn't abort? The error message printed in the CLI-window said something similar to "Index out of bounds" (shall check more specifically later on today).
 
Top