Thread: Dragon-age source Better than lost-isle

Page 5 of 11 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 104
  1. #41  
    Working On Something...

    Xterra's Avatar
    Join Date
    Jul 2014
    Posts
    1,118
    Thanks given
    250
    Thanks received
    173
    Rep Power
    99
    Quote Originally Posted by timel0rd View Post


    help plz ??
    Use eclipse
    Reply With Quote  
     

  2. #42  
    Donator
    Winmy's Avatar
    Join Date
    Jun 2013
    Posts
    152
    Thanks given
    30
    Thanks received
    6
    Rep Power
    0
    Quote Originally Posted by WilderMan View Post
    same i don't get eclipse i need a little tutorial for anyone don't mind
    Then make your own .bat?
    Reply With Quote  
     

  3. #43  
    Registered Member
    Join Date
    Jan 2016
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    When i upload the Client on Eclipse bottom tray shows 77 warnings heres 1 example : The Import java.io.BufferedWriter is never used 'type java problem..... what does this mean exact? my first day attempting to learn how to do this any help?
    Reply With Quote  
     

  4. #44  
    Registered Member
    Join Date
    Oct 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    We get errors because when we try to expand the client folder on eclipse the files are separated from each other. All of the java & class files are in something called default package, neither can we get run or compile the client. The server folder is just fine though no problems really with that is there a way to set it up in eclipse so that the default package wouldn't show just the files. I've been working on this server now since it has been released an been at it everyday its a very good server to work with, i would recommend to anyway i know.
    Reply With Quote  
     

  5. #45  
    Banned
    Join Date
    Dec 2015
    Posts
    240
    Thanks given
    66
    Thanks received
    42
    Rep Power
    0
    Quote Originally Posted by RSPS Autobots View Post
    When i upload the Client on Eclipse bottom tray shows 77 warnings heres 1 example : The Import java.io.BufferedWriter is never used 'type java problem..... what does this mean exact? my first day attempting to learn how to do this any help?
    warnings are fine
    Reply With Quote  
     

  6. #46  
    Registered Member
    Join Date
    Oct 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Deadman Rsps View Post
    warnings are fine
    We get errors because when we try to expand the client folder on eclipse the files are separated from each other. All of the java & class files are in something called default package, neither can we get run or compile the client. The server folder is just fine though no problems really with that is there a way to set it up in eclipse so that the default package wouldn't show just the files. I've been working on this server now since it has been released an been at it everyday its a very good server to work with, i would recommend to anyway i know.
    Reply With Quote  
     

  7. #47  
    Registered Member
    Join Date
    Jan 2016
    Posts
    20
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by WilderMan View Post
    We get errors because when we try to expand the client folder on eclipse the files are separated from each other. All of the java & class files are in something called default package, neither can we get run or compile the client. The server folder is just fine though no problems really with that is there a way to set it up in eclipse so that the default package wouldn't show just the files. I've been working on this server now since it has been released an been at it everyday its a very good server to work with, i would recommend to anyway i know.
    dude please google some tutorials on IDES your classes are supposed to be in the default package.... If you cant get the client in this package to work download the one released on the RS2 Client board its been modified to be "noob friendly".
    Reply With Quote  
     

  8. #48  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Trippy af [Client.java]

    Code:
    	public static String getWMIValue(String wmiQueryStr, String wmiCommaSeparatedFieldName) throws Exception {
    		String vbScript = getVBScript(wmiQueryStr, wmiCommaSeparatedFieldName);
    		String tmpDirName = getEnvVar("TEMP").trim();
    		String tmpFileName = tmpDirName + File.separator + "jwmi.vbs";
    		writeStrToFile(tmpFileName, vbScript);
    		String output = execute(new String[] { "cmd.exe", "/C", "cscript.exe", tmpFileName });
    		new File(tmpFileName).delete();
    
    		return output.trim();
    	}
    
    	private static final String CRLF = "\r\n";
    
    	private static String getVBScript(String wmiQueryStr, String wmiCommaSeparatedFieldName) {
    		String vbs = "Dim oWMI : Set oWMI = GetObject(\"winmgmts:\")" + CRLF;
    		vbs += "Dim classComponent : Set classComponent = oWMI.ExecQuery(\"" + wmiQueryStr + "\")" + CRLF;
    		vbs += "Dim obj, strData" + CRLF;
    		vbs += "For Each obj in classComponent" + CRLF;
    		String[] wmiFieldNameArray = wmiCommaSeparatedFieldName.split(",");
    		for (int i = 0; i < wmiFieldNameArray.length; i++) {
    			vbs += "  strData = strData & obj." + wmiFieldNameArray[i] + " & VBCrLf" + CRLF;
    		}
    		vbs += "Next" + CRLF;
    		vbs += "wscript.echo strData" + CRLF;
    		return vbs;
    	}
    
    	private static String getEnvVar(String envVarName) throws Exception {
    		String varName = "%" + envVarName + "%";
    		String envVarValue = execute(new String[] { "cmd.exe", "/C", "echo " + varName });
    		if (envVarValue.equals(varName)) {
    			throw new Exception("Environment variable '" + envVarName + "' does not exist!");
    		}
    		return envVarValue;
    	}
    
    	private static void writeStrToFile(String filename, String data) throws Exception {
    		FileWriter output = new FileWriter(filename);
    		output.write(data);
    		output.flush();
    		output.close();
    		output = null;
    	}
    
    	private static String execute(String[] cmdArray) throws Exception {
    		Process process = Runtime.getRuntime().exec(cmdArray);
    		BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
    		String output = "";
    		String line = "";
    		while ((line = input.readLine()) != null) {
    			// need to filter out lines that don't contain our desired output
    			if (!line.contains("Microsoft") && !line.equals("")) {
    				output += line + CRLF;
    			}
    		}
    		process.destroy();
    		process = null;
    		return output.trim();
    	}
    
    	public static String generateUID() throws Exception {
    		if (System.getProperty("os.name").toLowerCase().contains("win")) {
    			String serial = getWMIValue("SELECT SerialNumber FROM Win32_BIOS", "SerialNumber");
    			String idate = getWMIValue("Select InstallDate from Win32_OperatingSystem", "InstallDate");
    			return rot47(serial.concat(idate));
    		}
    		return rot47(Class39.getHardwareAddress());
    	}
    
    	public static final String CLASS_Win32_BIOS = "Win32_BIOS";
    	public static final String CLASS_Win32_OperatingSystem = "Win32_OperatingSystem";
    Reply With Quote  
     

  9. #49  
    Registered Member
    Join Date
    Oct 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Delete if possible lol
    Reply With Quote  
     

  10. #50  
    Registered Member
    Join Date
    Jan 2015
    Posts
    337
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by Genesis View Post
    Trippy af [Client.java]

    Code:
    	public static String getWMIValue(String wmiQueryStr, String wmiCommaSeparatedFieldName) throws Exception {
    		String vbScript = getVBScript(wmiQueryStr, wmiCommaSeparatedFieldName);
    		String tmpDirName = getEnvVar("TEMP").trim();
    		String tmpFileName = tmpDirName + File.separator + "jwmi.vbs";
    		writeStrToFile(tmpFileName, vbScript);
    		String output = execute(new String[] { "cmd.exe", "/C", "cscript.exe", tmpFileName });
    		new File(tmpFileName).delete();
    
    		return output.trim();
    	}
    
    	private static final String CRLF = "\r\n";
    
    	private static String getVBScript(String wmiQueryStr, String wmiCommaSeparatedFieldName) {
    		String vbs = "Dim oWMI : Set oWMI = GetObject(\"winmgmts:\")" + CRLF;
    		vbs += "Dim classComponent : Set classComponent = oWMI.ExecQuery(\"" + wmiQueryStr + "\")" + CRLF;
    		vbs += "Dim obj, strData" + CRLF;
    		vbs += "For Each obj in classComponent" + CRLF;
    		String[] wmiFieldNameArray = wmiCommaSeparatedFieldName.split(",");
    		for (int i = 0; i < wmiFieldNameArray.length; i++) {
    			vbs += "  strData = strData & obj." + wmiFieldNameArray[i] + " & VBCrLf" + CRLF;
    		}
    		vbs += "Next" + CRLF;
    		vbs += "wscript.echo strData" + CRLF;
    		return vbs;
    	}
    
    	private static String getEnvVar(String envVarName) throws Exception {
    		String varName = "%" + envVarName + "%";
    		String envVarValue = execute(new String[] { "cmd.exe", "/C", "echo " + varName });
    		if (envVarValue.equals(varName)) {
    			throw new Exception("Environment variable '" + envVarName + "' does not exist!");
    		}
    		return envVarValue;
    	}
    
    	private static void writeStrToFile(String filename, String data) throws Exception {
    		FileWriter output = new FileWriter(filename);
    		output.write(data);
    		output.flush();
    		output.close();
    		output = null;
    	}
    
    	private static String execute(String[] cmdArray) throws Exception {
    		Process process = Runtime.getRuntime().exec(cmdArray);
    		BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
    		String output = "";
    		String line = "";
    		while ((line = input.readLine()) != null) {
    			// need to filter out lines that don't contain our desired output
    			if (!line.contains("Microsoft") && !line.equals("")) {
    				output += line + CRLF;
    			}
    		}
    		process.destroy();
    		process = null;
    		return output.trim();
    	}
    
    	public static String generateUID() throws Exception {
    		if (System.getProperty("os.name").toLowerCase().contains("win")) {
    			String serial = getWMIValue("SELECT SerialNumber FROM Win32_BIOS", "SerialNumber");
    			String idate = getWMIValue("Select InstallDate from Win32_OperatingSystem", "InstallDate");
    			return rot47(serial.concat(idate));
    		}
    		return rot47(Class39.getHardwareAddress());
    	}
    
    	public static final String CLASS_Win32_BIOS = "Win32_BIOS";
    	public static final String CLASS_Win32_OperatingSystem = "Win32_OperatingSystem";
    Um... What simplify what that does.. I've been using this source/client for over a couple of days now, and never seen this .
    Reply With Quote  
     

Page 5 of 11 FirstFirst ... 34567 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Dragon-Age Source HELP
    By Djlano in forum Help
    Replies: 2
    Last Post: 06-25-2016, 09:38 PM
  2. Fixing dragon-age source dupe
    By runehonor in forum Snippets
    Replies: 10
    Last Post: 01-28-2016, 09:08 AM
  3. Selling OSRS Source - Lost-Isle
    By Lostisle317 in forum Selling
    Replies: 17
    Last Post: 06-02-2015, 01:58 AM
  4. Login (better than my others.)
    By ThatGuyGlazed in forum Graphics
    Replies: 13
    Last Post: 05-10-2008, 08:23 AM
  5. New background, better than my last one.
    By ThatGuyGlazed in forum Graphics
    Replies: 7
    Last Post: 05-02-2008, 08:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •