SSForum.net is back!
-
Posts
7214 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Events
Gallery
Articles
Everything posted by rootbear75
-
i dont even see why he wants one lol...
-
if u can turn it on from a phone, i'd be happy to do it for you... (phone being while im working i can turn it on) or pc... doesnt matter.
-
Digital overload is larger.... 1000+ I did that last year remember?
-
i wouldnt even know where to start for that :/ at least for this i have some idea of where to start. If you want a bomb calculator, doesnt shanky.com have one?
-
here is what i have so far: /* Subspace Server CFG GUI Interface For ease of editing values to the Server.CFG file Author: Rootbear75 Date: Feb 2010 */ import java.awt.*; import java.io.*; public class ServerCFG //implements Runnable { static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); public static String getSelection() { System.out.print("Please enter your selection: "); String input = null; //label input; try { input = reader.readLine(); } catch(IOException e) { e.printStackTrace(); return null; } input=input.toUpperCase(); if(input.equals("EXIT")) { System.exit(0); return null; } else if(input.equals("SAVE")) { //saveFile(); System.out.println("Your file has been saved."); getSelection(); } return input; } public static void run() { String selection = null; cls(); System.out.print("\n\n\n\n\nWelcome to the ServerCFG editor. Made by Rootbear75"); try { Thread.sleep(1500); } catch(Exception e) { e.printStackTrace(); } cls(); System.out.print("Please enter a filename or hit ENTER to continue: "); selection = getSelection(); //if(!selection.equals(null) //loadCFG(selection); //else } public static void cls() { for(int i=0; i < 100; i++) System.out.println("\n"); /*try { Runtime.getRuntime().exec("cmd /c cls"); } catch (IOException e) { e.printStackTrace(); }*/ } public static void main(String[] args) { run(); } } Now, the original way i was going to do it was to have varaibles for EVERY setting however sama made a good suggestion and at least for the ships, have a category/key type of variable (i know there is such thing in java) However, for the other settings such as bomb and bullet damage and prizes etc. there are unique settings so for that idk... he said work from the inside out. get the set setting methods and the get settings methods before i work on the navigation....
-
dude... just killed my project <_<
-
im thinking of 1 simple program im working on the navigational part right now. I figure adding in the "read" part of it shouldnt be too hard. then after i get it to read a file well, im going to write it. However the problem i can see is I'd have to completely rewrite the file :/ even for 1 line. I had a thinking in my mind that the server.cfg file was layed out the same way as the template.sss file was. now that i know its NOT... it made a problem for me.
-
As a project i have decided to work on, i am thinking about making a server.cfg gui. Now, i think editing the gui via the command prompt would be the easiest to program. using a key for selections. Moving via: 1. Directory settings 2. Warbird settings ... 9. Shark settings N. Next B. Back ,. Previous menu. Please enter a selection: Or doing a gui interface with buttons to navigate and text boxes. I am thinking since i havent done java in a while, that the command prompt / terminal version would be easiest, however i am not completely sure. I would like some help doing this so i can get back into the pace of things, so if you would like to help, let me know !
-
his email is a used one for his site hosting services. i've seen it before... also: isnt it strange that average time on site increased when the ad campaign was turned off?
-
I still think having a bot read stock quotes is better however since there is all risk and no way to control it.... it'd have to be a built in HS thing
-
Nikelback, Hinder, all of em sometimes use them.
-
WOOO! Redid xog's lotto game in Java.... I feel proud of myself. Thank you Java API for the little help you did help me with. /* Xog's lotto game. Ported over to Java Author: Rootbear75 Date: Feb 7, 2010 */ import java.io.*; import java.util.*; public class Lotto { public static void main(String[] args) { //All Variables are declared here. Random random = new Random(); //Uses class random instead of hard way using Math.random... etc. int picked = 0; //Number of numbers the user is picked (Init) int[] playerPicked = new int[3]; //Array of user selected numbers int number; //The lotto number BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); //The Input handler. String name = null; //User's name. (requires null init) boolean win = false; //They haven't won as of the start of the program, therefore win = false. //Greeting System.out.println("Hello! Welcome to Rootbear's Lotto Application. Thank you for taking the time to test my application out. To play this Lotto game, I want you to pick three numbers from 1 through 5."); //Sleep for 2 seconds. try { Thread.sleep(2000); } //I don't see any exception coming out of this statement, therefore empty catch. catch(Exception e) {} //Getting to know you System.out.print("Don't get too hasty! First, I want you to tell me your name. Please type it here and press Enter: "); try { name = bufferRead.readLine(); } //Catch refers to line. if there's a problem, let me know. I dont expect one :/ catch(Exception e) { System.out.print("Could not read input. Please restart program and contact the author.. ERROR LINE 34"); System.exit(0); } System.out.println("Hello, " + name + ", my name is Rootbear."); System.out.println("Okay, now that we know each other a little bit, I think it's time we begin."); //Get lotto number number = random.nextInt(5) + 1; //Pick 3 numbers while(picked < 3) { //Adds one to picked so string displays correctly. Removes it immediately after. picked++; System.out.print("Pick a number from 1 to 5. (Choice " + picked + "): "); picked--; try { playerPicked[picked] = Integer.parseInt(bufferRead.readLine()); } catch(Exception e) { //Cancels out iterator. Will re-loop and ask for input again until correct type of input is given. picked--; } picked++; } //Reset picked to verify winning number. picked=0; //While they didnt win. while(win != true) { //Checks number picked at if(playerPicked[picked]==number) { System.out.println("The number was " + number + "! Congratulations! You've just won HS$500!"); try { //Sleep 3sec. Thread.sleep(3000); } catch(Exception e) { //If something happens, idk? System.out.println("Error Line 92"); System.exit(0); } System.out.println("Well... Okay, maybe not the money."); win = true; } if(picked==playerPicked.length-1) { //If loop goes thru array, prints statement, then breaks from loop so it does not go on infinitely. System.out.println("Sorry, the lotto number was " + number +"."); break; } picked++; } } } i know the point of this blog is python but hey... Added class file incase you guys feel like testing it if you dont know how to execute .class Command Prompt (on windows, dont know how on other OSs) navigate to folder you saved file in using the "cd" command type: java Lotto Lotto.class
-
putting that 18+ only will get the 14+ males going OMG THERES PRONS! GOTTA JOIN and they'd be extremely dissapointed How about rock songs that say shit or bitch or some other word once in a while? are those going to be censored?
-
If I had gotten a chance to rewrite it in java, I probably would have figured it out. Anywho, I overlooked that because, well, I was thinking the problem lied in the if part of the statement and the way you had it layed out.
-
I got that message too. But I assumed it was one of the people that always flamed me before.
-
I think ... String var = System.in.nextline(); ... Was what it was. Ill try it when I get home and let you know how it works... I did think I have to import java.util.* but I don't remeber ever calling an instance of a Scanner object.
-
i specifically remember a simple 1 line type of deal, that didn't require InputStream.
-
you used the wrong type of barcode scanner.... it should scan straight to text.
-
I know there's an extremely simple answer to my question, and i'll probably kick myself once i figure it out. I started looking into java again with xog's posting, and im trying to replicate his lotto program just as a warmup. However, I CANNOT FOR THE LIFE OF ME, figure out what the most simple input request is. I know its like this somehow: public static void main(String[] args) { .... System.out.print("Please type something here: "); //I CANNOT FIGURE OUT WHAT GOES HERE. I THOUGHT IT WAS: String str = System.in.getString(); //or something along the lines of that. but i can't remember the exact syntax. .... } i am going to kick myself once i get the answer because i know it is so simple.... and yes, i've tried google for the last 30min... i dont want to use JOptionPane or any other GUI.
-
its a standard text barcoded....
-
well take a look, i was editing last post when you posted.
-
xog, what programming language, because if it's java, i see a bunch of errors there Also: for simplification, i'd use an array for Playerpicked. would eliminate a lot of programming, and also, that while loop is unneeded the way you have it picked now. as for what i can see: change while picked < 3: print('Please pick a number from 1 through 5.') playerPicked1 = input() playerPicked1 = int(playerPicked1) picked = picked + 1 # print('Pick your second number, between 1 and 5, that you did not pick.') playerPicked2 = input() playerPicked2 = int(playerPicked2) picked = picked + 1 # print('Pick your third and last number, between 1 and 5, that you did not pick.') playerPicked3 = input() playerPicked3 = int(playerPicked3) picked = picked + 1 TO //Initialize an array of playerpicked with a size of three; somewhere before here. String input = null; while picked < 3: print('Please pick a number, between 1 and 5. (' + str(picked+1) + ')') input = input() playerPicked[picked] = int(input) picked = picked++ # picked = 0 also change the whole ending to: Boolean win = null; while picked < 3 if playerPicked[picked] == number: win = true; //endwhile number=str(number); if win == true: then print('The lotto number was ' + number + '! Congratulations! You\'ve just won $500 Hyperspace Dollars!') time.sleep(3) print('Well.. Okay, maybe not the money.') else print('Sorry, the last number was ' + number + '.') //endif (I think thats the correct syntax, not sure what language you are using)
-
lol its not as sinister as you think it is :/
-
i dont remember that rule :/ also: The point is, cerium has a hot head... instead of ?ignoring me (because its not like i do anything anyways), he had to get pissed cause i said i was playing via cell phone, and apparently he doesnt thing tethering counts, even though VIA means BY THE WAY OF Oh and changing names is not considering bypassing ignore. he actually tried to threaten me with a netban even though i was not harassing him via that name. (and yes i know you werent going to do it, cause i know you know it would have gotten overturned easily) Anyways, its past, i really dont care anymore so :/