Extreme Makeover Buildism Edition.
#1
We are going to tear this site down to it's foundations and make it better.

What are we going to do exactly??

Well here's a list of things that need improvement:

1. Site Design!
If you are good at CSS post in this thread if you are willing to help.
I'm not just talking about main site layout, I'm talking about a complete remodel of each page.
2. Better graphics/logos!
The current ones need a make over! Time for some shiny new ones!
3. Better in game UI
If you know Java download the current buildism source and you can help make the UI better!

Anything else? If so add it below and lets make this site AWESOME!
[Image: KbMTk.png][Image: uC9A1.png]
Reply
#2
I'll add new features, I added Density when we were making our remake, so I am boss :3
Reply
#3
(08-18-2012, 01:59 AM)Kieron Wrote: I'll add new features, I added Density when we were making our remake, so I am boss :3

NOU!
I CALL JAVA!
...except my version of Buildism source is broken...
I'll work on a game:httpGet() method.
...and maybe create a bot in singleplayer...
Alright, I successfully re-compiled Buildism.
[Image: 2eehsib.gif]
Reply
#4


I need the current website source. Jacob would you kindly upload it? :p
[Image: KbMTk.png][Image: uC9A1.png]
Reply
#5
I finished the httpGet

Root:
Code:
addFunction("httpGet", new JavaFunction()
        {

            public int call(LuaCallFrame callFrame, int nArguments) {
                if(nArguments != 2 || !(callFrame.get(1) instanceof String))
                        throw new RuntimeException("Argument to httpGet() must be a string");
                    web web=new web();
                    String url = (String) callFrame.get(1);
                   web.set(url);
                    callFrame.push(web.getNoReplace());
                    return 1;
            }
        });

dig.web:
Code:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dig;

import java.net.*;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
*
* @author roperson
*/
public class web {
    static URL url;
    
    public static void set(String URL) {
        try {
            // try {
                 //URLEncoder.encode(URL, "UTF-8");
             URL=URL.replaceAll(" ", "+");
             URL=URL.replaceAll(",", "%2C");
             if (URL.startsWith("http://")) {
                 URL.replaceFirst("http://", "");
             }
               URL url2=new URL("http://"+URL);
               url=url2;
        } catch (MalformedURLException ex) {
            throw new RuntimeException("Argument was formatted incorrectly.");
        }
  }
    
      public static String getNoReplace() {
        try {
            String buffer;
            String line;
            int responseCode;
            HttpURLConnection connection;
            InputStream input;
            BufferedReader dataInput;
            connection = (HttpURLConnection) url.openConnection();
            responseCode = connection.getResponseCode();
            if (responseCode != HttpURLConnection.HTTP_OK) {
                    throw new RuntimeException("HTTP response code: " +String.valueOf(responseCode));
            }
            try {
              buffer = new String();
              input = connection.getInputStream();
              dataInput = new BufferedReader(new InputStreamReader(input));
              while ( (line = dataInput.readLine()) != null) {
                buffer=buffer+line;
              }
              input.close();
            }
            catch (Exception ex) {
              ex.printStackTrace(System.err);
              return null;
            }
            return buffer;
        } catch (IOException ex) {
            ex.printStackTrace(System.err);
            return null;
        }
  }

  public static String get() throws Exception {
    String buffer;
    String line;
    int responseCode;
    HttpURLConnection connection;
    InputStream input;
    BufferedReader dataInput;
    connection = (HttpURLConnection) url.openConnection();
    responseCode = connection.getResponseCode();
    if (responseCode != HttpURLConnection.HTTP_OK) {
      throw new Exception("HTTP response code: " +
                          String.valueOf(responseCode));
    }
    try {
      buffer = new String();
      input = connection.getInputStream();
      dataInput = new BufferedReader(new InputStreamReader(input));
      while ( (line = dataInput.readLine()) != null) {
        buffer=line;
      }
      input.close();
    }
    catch (Exception ex) {
      ex.printStackTrace(System.err);
      return null;
    }
    return buffer;
  }
  
  public static void send() throws Exception {
      get();
  }
  
  public static void send(String url) throws Exception {
      set(url);
      get();
  }
}
[Image: 2eehsib.gif]
Reply
#6
>extreme makeover buildism edition
>not pimp my buildism
Reply
#7
(08-18-2012, 03:33 PM)Duck Wrote: >extreme makeover buildism edition
>not pimp my buildism
grr
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)