private JButton findMarket = null;
private JLabel resultSummary = null;
private JLabel arbitrageResult = null;
+ private int unknownPCTBcommods = 0;
private long startTime = 0;
private final static String PCTB_LIVE_HOST_URL = "http://pctb.crabdance.com/";
startTime = new Date().getTime();
resultSummary.setText("");
arbitrageResult.setText("");
+ unknownPCTBcommods = 0;
try {
runUpload();
} catch(Exception e) {
if ((uploadToPCTB && !donepctb) ||
(uploadToYarrg && !doneyarrg)) {
resultSummary.setText("trouble");
+ } else if (unknownPCTBcommods != 0) {
+ resultSummary.setText("PCTB lacks "+unknownPCTBcommods+" commod");
} else if (donepctb || doneyarrg) {
resultSummary.setText("Done " + islandName);
} else {
buySellCount[1]++;
}
} catch(IllegalArgumentException e) {
+ unknownPCTBcommods++;
if (dtxt!=null) dtxt.println("Error: Unsupported Commodity \"" + offer.get(0) + "\"");
}
}