Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Grand MMORPG Idea From A Small Mind (HELP!)

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.
[1527 byte] By [Sephiroth] at [2007-11-11 7:40:11]
# 1 Re: Grand MMORPG Idea From A Small Mind (HELP!)
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);
}
destin at 2007-11-11 22:37:38 >
# 2 Re: Grand MMORPG Idea From A Small Mind (HELP!)
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
Wizard1988 at 2007-11-11 22:38:44 >
# 3 Re: Grand MMORPG Idea From A Small Mind (HELP!)
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.
Sephiroth at 2007-11-11 22:39:47 >