User talk:VictorJavAdore

Latest comment: 1 August 2014 by VictorJavAdore
Jump to navigation Jump to search

I'm interested in the code you used to generate block distribution data for the Altitude page. Do you still have it laying around somewhere? Orthotope 06:30, 8 January 2012 (UTC)Reply[reply]

Yes, I stil have it. But I wasn't able to upload it because both my ZIP and my TXT files were refused by the server, for resp. reasons : "Files of the MIME type "application/zip" are not allowed to be uploaded." and "This file contains HTML or script code that may be erroneously interpreted by a web browser." Could I get you email so I can send it to you directly (I don't know whether there's some kind of PM here) ? VictorJavAdore 09:32, 8 January 2012 (UTC)Reply[reply]

Sure; you can send it to Orthotope (at) comcast (dot) net . Thanks! Orthotope 05:02, 11 January 2012 (UTC)Reply[reply]

Hi! Can you also send me that code? I already made my own code to extract block distribution info, but your chart design rocks! What app/module/library you used to plot the chart? MestreLion 21:01, 19 August 2013 (UTC)Reply[reply]

I'm sorry, I think I must have lost it in a computer change. Why in the world did I not put it on my Dropbox? I have lost faith in my organization skills. :P
It used a homemade module that wrote an SVG file by hand. I'm sorry I don't have it anymore. Maybe Orthotope is still around and was cleverer than me, though. Good luck! VictorJavAdore 20:20, 23 August 2013 (UTC)Reply[reply]
Hey, if anyone is still interested, I've found the source code again, while searching in my old mail box. It is here: dropbox link. And here is the description I gave Orthotope when I gave him the code:
--------
This is the source code for the resources altitude graph - it's in Java.
- The "Main.java" class is the class which loads the chunks and counts the amount of blocks, and then calls the 'SVGPrinter.java' class, which will create a SVG image showing these amounts.
You can change the location of the 'region' directory with the File "region" (line 11), and you can change the blocks displayed, their colors, and whether they are dotted in the Block array "toPrint".
- The "Block.java" class is a type which stores the information the 'SVGPrinter.java' class will need to print the blocks in the SVG image : its name, its id, and its color (you can add the dotted property to the color String, separated with a ";"). For more information on the properties you can add to these <path> tags, I advise you to go reading a SVG tutorial.
- And the "SVGPrinter.java", given amounts of blocks and a list of blocks to print, creates the SVG image. It's very technical. The large "SMOOTHED VERSION" commented part is a part who contains a version which 'smoothes' the graph, but it often produces strange curls when there are large differences.
--------
I hope it will be useful for someone! I might move it to github some day. VictorJavAdore (talk) 09:47, 1 August 2014 (UTC)Reply[reply]