Click to See Complete Forum and Search --> : Grand MMORPG Idea From A Small Mind (HELP!)


Sephiroth
01-05-2006, 09:24 PM
Yes yes, I am another dreamer.

I don't want people to work with me (yet, maybe later, :) ), and I don't need websites to show me how to code (I'm learning it as I type this. Literally, I have the java book open to my side).

The master plan of mine is somewhat like Runescape. I plan to host a website at my house (TI connection, dont worry) with the game embedded into it. Somewhere on the site will have an ASP page, which allows people to make a new character (the character will be stored away in the file "C:/game/"username"", the password being in a txt document inside the "username" file)

All i need to know is the following:

1) How do you fill in a side of a 3D image? I was thinking of using the fill effect, but that's usually used for 2D imaging, since the fill code needs a name of an object and a 2D object has a name, whereas, a side of a 3D object DOES NOT have a name (that i know of). If someone knows a different snippet of code that should be able to color in a side of a 3D object or knows how to identify the name of a side of a 3D object, then POST!

2) How might i make it so that when the user hits the "login" button, it checks inside the directory "C:/game/"username"" for a txt file named PASSWORD, and when found, checks whether the password inside the txt file matches the one they found?

I probably will have more questions in the future, but I want to work on more 3D images (character-making, etc.) before I do so.

destin
01-05-2006, 11:56 PM
1. Are you using java 3D?

2. This is probably something alone the lines of what you want to do.

String username;
String password;

// get username and password...

try {
File pwdFile = new File("C:/game/" + username + "/password.txt");
BufferedReader in = new BufferedReader(new FileReader(pwdFile));

if (password.equals(in.readLine())) {
System.out.println("Thank you for logging in.");
} else {
System.out.println("Incorrect password.");
}
} catch (FileNotFoundException e) {
System.out.println("Incorrect username.");
} catch (IOException e) {
System.err.println("Error reading file: " + e);
}

Wizard1988
01-06-2006, 10:08 AM
I have an idea for your login.

When the user is making an account get the MD5 Digest of the password/username, and store that in the login file. When the user is loging in take the MD5 digest of the info they are trying to login with and compare it with the data in the login file. This should be much safer than storing the plaintext.

Just an idea

Sephiroth
01-06-2006, 02:22 PM
I can get java 3D easily...

Would I have to import it in the beginning like every other little add-in?

What would be the command to color in the side of a 3D object if I use Java 3D?

I'm going to attach a little bit of what my friend and I have done. We have a whole church layout, but I think you only need to see the cross to get an idea as to what we are doing.